// www.i-weather.org JavaScript instructions file
// Copyright (c) 2010 fabric | ch
Notes:
I-Weather is an architecture and art project.
It is not a light therapy software and must not be used as such.
We do not and will not collect any information about I-Weather's users with this Javascript library.
1. Introduction.
This file explains how to use the Javascript library of I-Weather.
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
Have you noticed the color vibrations of the I-Weather pages? They are part caused by the Javascript library.
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:
loading...
loading...
loading...
loading...
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
Programmers can download the Javascript library to edit it:
//www.i-weather.org/i-weather.js
To get current values, use this code:
get values
Lausanne, Switzerland
June 2010