Data visualization

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Data visualization

AdrienB
Hi,

Is there a way to set the date / time in absiss of the graph instead of the number of readings ?

It would also be convenient to have all the reading in one page rather than typing the URL of each sensor ...
Reply | Threaded
Open this post in threaded view
|

Re: Data visualization

AlfredC
Administrator
Data visualization in LiV is done with matplotlib. (e.g. for co2 graph - lines 173-190 here https://github.com/FirstCypress/LiV/blob/S_development/software/liv/livAPIs/livAPIs.py)

If I remember correctly, I tried to put the measurement time stamps on the x axis, but there was some text overlap between adjacent points and it didn't look good.

I also tried to put all graphs on the same page using different colours, but I had issues with scaling (values for co2 and airpressure are in the hundreds, values for temp and humidity are in the tens, so you could only tell the variation of co2 level and airpressure, while temp and humidity showed as constant lines in the graph.)

Once I started writing IoT connectors for LiV (thingspeak, sparkfun, emon, etc..), I did not put any effort into improving the data vizualization on LiV, because all these platforms have some nice capabilities (scaling, zoom, etc.). If I were to re-do this work, I would probably look into some javascript graph libraries.
     



Reply | Threaded
Open this post in threaded view
|

Re: Data visualization

AdrienB
ok thanks for that. I will look into it ... after the IoT option...
If I come up with somthing I will post the code section here.