Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Chart displaying floats as ints
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Chart displaying floats as ints

by vkichline on Sat Jan 23, 2016 12:25 am

I have four feeds posting temperatures as floats.
I have a dashboard displaying all four feeds in one line chart. My app had been down for a few days, I changed it today, and now my chart display rounds the floats to ints. If I hover over a datum, it shows the float value, but all deltas snap to full degree increments in the chart.
If I view the feed, I see data like:
73.4 less than 10 seconds ago
...but if I hover over the datum in the chart at the top of the feed display, it shows:
January 22, 2016 08:08 73
I've tried converting the float value to a string with one decimal place (as above) with the same result.
A few days ago I was seeing very fine grain changes in temperature, now I see only large, blocky swings.
All four feeds post once every 30 seconds.
How can I troubleshoot this and display fine-grain charts again?
Thanks for any suggestions. The feeds and dashboard are public, see:
vkichline/feeds/multitemp-t1
vkichline/feeds/multitemp-t2
vkichline/feeds/multitemp-t3
vkichline/feeds/multitemp-t4
vkichline/multitemp

vkichline
 
Posts: 2
Joined: Fri Jan 15, 2016 2:50 am

Re: Chart displaying floats as ints

by vkichline on Sat Jan 23, 2016 12:44 am

The error appears to be mine.
Using a finer vertical scale, I see the chart is displaying the data accurately. For some reason the deltas being published is chunkier than before.
Tip: if your deltas look rounded, set the vertical axis to a very small value to verify accuracy, or examine your data more carefully than I did.
Sorry my first post was a misdirect.

vkichline
 
Posts: 2
Joined: Fri Jan 15, 2016 2:50 am

Please be positive and constructive with your questions and comments.