I would like to run a, preferably Linux bash or Python script, every time a temperature sensor changes value passing the new temperature as an argument - can somebody propose the simplest way of doing this on the HS3-Pi?!
What I REALLY would have liked to do is to update an environment variable in the Pi with the temperature value read from the sensor (this is what my script would do) so that another periodic script (run by crontab) that is polling a heat pump (using a REST service API) also could include the current indoor temperature in the log entries it sends to the AWS cloud (where I analyze it further).
The only solution I have thought about so far is to use a plugin that send the HomeSeer log to syslog, direct the syslog to a minimal syslog server local on the Pi (there are 20 line Syslog implementations in Python that I could modify) that would parse the log entries as they are received and update the environment variable as soon as it finds entries related to temperature readings - was however hoping there may be a simpler way....
What I REALLY would have liked to do is to update an environment variable in the Pi with the temperature value read from the sensor (this is what my script would do) so that another periodic script (run by crontab) that is polling a heat pump (using a REST service API) also could include the current indoor temperature in the log entries it sends to the AWS cloud (where I analyze it further).
The only solution I have thought about so far is to use a plugin that send the HomeSeer log to syslog, direct the syslog to a minimal syslog server local on the Pi (there are 20 line Syslog implementations in Python that I could modify) that would parse the log entries as they are received and update the environment variable as soon as it finds entries related to temperature readings - was however hoping there may be a simpler way....
Comment