I have successfully finished editing the RuuviTag firmware for my purposes and now is is time to move to the receiving end.
I have a Raspberry Pi 3B+ with Raspbian Stretch in Full Desktop mode and Python 3.5.3, and the ruuvitag-sensor installed according to the install_guide_pi.md works fine - sensors are found and their data is printed to the display.
The target now is not to print the sensor data but to generate alarms when the received values are outside of the set limits, and more severe alarms if this continues for a longer period of time.
Raspberry Pi and Python are not familiar to me, so I am wondering what is the best approach.
Would it make sense to modify ruuvitag_sensor by opening it in the Python 3 (IDLE) IDE that is already installed in the Pi, and then first Save As with another name and start editing - or is there a better way?
Does ruuvitag_sensor (ruuvitag-sensor) include timers that could be used for monitoring how long the received values have been outside of the set limits? If not, what would be a good way for implementing the timer functions in Python?