TomFaulkner / SenseMe

Python Library for Haiku SenseMe app controlled fans/lights
GNU General Public License v3.0
21 stars 10 forks source link

Background monitor will stop running when _get_all_bare causes an exception. #25

Closed mikelawrence closed 6 years ago

mikelawrence commented 6 years ago

There needs to be a try/except block around code in _get_all_bare() or _loop() in background_monitor. A good example of this is to simply cut the power to the fan and a "Host not reachable" exception should occur.

TomFaulkner commented 6 years ago

Hadn't thought about network disconnects. This does need to be fixed. I don't turn my fan off, but I would imagine many do, along with all of the other random wifi related issues that could occur.

TomFaulkner commented 6 years ago

Merged, and 0.1.2 has been uploaded to PyPI. Let me know how it works for you!