I have followed your google gauge tutorial and added to gauges to my channel at
It displays either the pool gauge or the panel gauge immediately but the other seems to take around 15 seconds to display.
(16 second delay)
(16 second delay)
This is because I am using will nue's seriot application to tether the Arduino to the PC. His app does not send the data as one post but rather sends one individual sensors data per post. meaning it takes 32 seconds to send both records. I am trying to get in touch with him to see if he is prepared to update it.
For the time being however, is there something that can be amended in the query
Which will allow it to display the gauges instantly or am I on the wrong track altogether?
Following on from my above post I have been doing some investigation. I still have no solution so would appreciate any help
It seems that because I am using seriot I am forced to send individual sensor updates with each post rather than both at once. This means the JSON query being read by the google gauge reads
then 15 seconds later
Now here is the interesting part. If the google gauge receives a null then it doesnt display the gauge. I have set the interval to 1 second for the gauge which means it constantly checks. As soon as a value becomes available, I then get a gauge displayed.
So trying to code around this, I logically thought, ok
i.e if the JSON query returns null then trap that and change it to a null. However it seems that for some reason this implementation of the gauge code wont display a gauge if the value is zero. -1 is fine 1 is fine but you try sending it a zero and the need stays where it is. So for that reason, even if I trap data.field1 and turn it to a 0 the gauge still wont display on first load. similary if my temperatures fall to 0 its never going to show a gauge reading of 0.
here is the snippet of code from the google gauge example
// variable for the data point
// get the data point
p = parseFloat(data.field2);
Most Users Ever Online: 114
Currently Online: cstapels
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee