// Copyright (c) 2010 fabric | ch
I-Weather is an architecture and art project.
It is not a light therapy software and must not be used as such.
It is not necessary to download i-weather.js on you server to use it.
2. Basic use on a web page.
To diffuse i-weather through a web site, simply copy/paste the following code into the HEAD section of your pages:
This will automatically set the background color of the web page to the current I-Weather color.
3. Adjust twinkles parameters
If necesary, it is possible to adjust these parameters.
To do so, copy/paste the following code ABOVE the script call.
The code of the page should look like this (values by default):
To swith on/off the twinkles, set iweatherTwinkle to 0 or 1:
iweatherTwinkle=0; // off
iweatherTwinkle=1; // on
To modify the number of twinkles, adjust iweatherTwinkleCount according to your desires:
iweatherTwinkleCount=200; // twinkles will last a few secconds
iweatherTwinkleCount=5; // twinkles will be barely noticeable
To modify the number of seconds between twinkle events, set iweatherTwinkleDelay:
iweatherTwinkleDelay=60; // 1 minute between two twinkle events
4. Display I-Weather and local time
To display the number of days since the launch of I-Weather, local time or I-Weather time (as a cycle lasts 25 hours 7 minutes and 40 seconds, I-Weather time differs from local terrestrial time...), insert SPAN tags (or another tag) with the following IDs:
To display "i-weather time: 3021 days | 05:37:35", use the following code:
i-weather time: loading... days | loading...
To display "local time: 24.06.2010 | 16:38:35", use the following code:
local time: loading... | loading...
5. Advanced functions
To get current values, use this code: