Skip to content

Commit 4c28858

Browse files
authored
Update README.md
1 parent 97df231 commit 4c28858

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# sensor-server-monitor
2-
Python program to check of bluetooth sensor data is being received in MQTT, if not send PushOver alert and reboot the server doing the BLE advertising monitoring
2+
Python program to check if sensor data is being received in MQTT, if not send PushOver alert and reboot the server doing MQTT publishing.
3+
4+
target server IP address, user and password are currently hard coded in application, see these variables in code:
5+
6+
```
7+
REBOOT_SERVER = "192.168.1.42"
8+
REBOOT_USER = "pi"
9+
REBOOT_PASSWORD = "raspberry"
10+
REBOOT_COMMAND = "sudo reboot"
11+
```
12+
13+
The MQTT server IP address and MQTT topic are stored in a .yaml file. Also the login info for 'pushover' notification service is stored here as well. If you do not have a rsyslog server, you can either set a blank IP address, or just leave, the program will write local log files, either way.
314

415
The BLE c program to receive the BLE advertising packets from the temperature sensors has been pretty reliable, however there are events that seem to make the bluetooth stack burp. And the c program does not recover. So this Python 3 program monitors the output of that c program to MQTT. If no MQTT data is received from any of the sensors under the MQTT topic, then action is taken.
516

0 commit comments

Comments
 (0)