stephen
(stephen krywenko)
8
well I have a pl script listening to topics from Mqtt and when something comes in it writes it directly to rrd container (rrdtools) . then I have cron setup to generate to historical data every 5 minutes or so depending on when or how big of sample if it one month sample every 60 minute is good enough … i have example of every thing up loaded here for people to use if they like it in the the iot.zip i believe - example 8hrs in the iot.zip is for creating graph file of 8 hrs of historic data but you will find 10min - 1year scripts in the zip
Simple daughter board to transmit emontx shield data, web, mqtt etc - #7 by stephen
and all the graph building scripts i adapted from my earlier ted project which is included in the same zip all you need to do is edit the sh script to point to your rrd container instead of my old ted containers and adjust cost amount or what have to match your needs ( after extracting do not forget to make then executable)