Hi
I'm currently using a bespoke windows app to harvest values from Velbus networks and append a CSV file (one file per sensor).
These files are then uploaded once an hour to a webserver, where a JSCanvas script creates interactive graphs.
http://www.cuedup.biz/VGraphing/demoui/
I'd like to migrate everything to a slim Linux server and host the JSCanvas scripts locally. Assuming the OR webserver supports the JSCanvas scripts.
(Which will also save the FTP transfer every hour, resulting in more up to the minute graphs)
So my question today is...
If an Echo command like :-
Echo $date,$sensor_value >> energy1.csv
Was used in a SH file, could a rule in OR be used to pass a sensor value to the SH script (whenever the sensor changed?)
I might take it a bit further and use a regex query so that the name of the sensor is used to determine which SH script is used.
Examples :-
Sensor name :- electric_current
SH script :- electric_current.sh
CSV file :- electric_current.csv
Sensor name :- electric_total
SH script :- electric_total.sh
CSV file :- electric_total.csv
Sensor name :- water_current
SH script :- water_current.sh
CSV file :- water_current.csv
Sensor name :- GP01
SH script :- GP01.sh
CSV file :- GP01.csv
Just for reference, I've tried getting the RRD4J graphs to work, but I have the following issues
The sensors aren't being consistently recognised. (Each reboot works with different sensors. Of 4 I'm testing with, it never works with all 4 at the same time)
The graphs that are created are static PNG files, rather than interactive graphs that JSCanvas creates.
Any ideas?