29 May 2009

Javascript sample program

OYASAI.com has gateway function with Json method.
You can modify your data from sensor on your Web site. For example, if you wish to convert temperature unit from C to F, you can calculate with Javascript.
Following link shows past data for 1 hour from now.
Original sensor terminal data is shown below;
Web thermometer

Next example is about graph and table. OYASAI.com publish graph image as well as text data. Let's see the example. This example uses manual entry data.(not automatic entry data)
Test3 table shows selected data (above 28C only) and all data table.
Graph(using same data) is shown below;
Web thermometer

Web data link test

OYASAI.com has unique data gateway function. It connect real world and Web world.
Data from sensor can be shown on Web page.
It publishes data as dynamic link and static link. Within a dynamic link, you can choose current data or past data. You can also choose image format and text format.


It is easy for everybody to use image format because you just copy and paste scripts on your Web page. Let's see the example.
2 types of gateway method can be provided by OYASAI settings. Following examples are dynamic link from the sensor located in Tokyo, Japan.

a) Script


b) image
Web thermometer

You can also show the past data. It is convenient if you wish to compare your data in the time scale.
c) past data
Web thermometer