opendata-stuttgart / madavi-api

api for rrdtool graphics per sensors + graphics from archive.luftdaten.info
19 stars 11 forks source link

Support for PMS7003 (and other PMS) #5

Open Adorfer opened 7 years ago

Adorfer commented 7 years ago

perhaps i overlook something, but it looks to me that there is no handling of sensors of type PMS7003 is included yet. (despite the fact that it is included in airrohr sensor's firmware since a few weeks.)

https://github.com/opendata-stuttgart/sensors-software/commit/95ec2e8f05562b74807d0c436ea2c9e3ca7539c6

Adorfer commented 7 years ago

P.S. this applies probably not only to https://github.com/opendata-stuttgart/madavi-api/blob/master/graph.php but as well for the rrd-graph generation.

ricki-z commented 7 years ago

Should work now. I had to add PMS support to data.php, graph.php and image_graph.php. Graphs in archive_luftdaten_info may need some more work as the archived files are empty.