This service monitors an industrial ASRS stacker for mode changes (Auto -> Manual) and sends alerts via Audio, Local Email, or GSM SMS.
- No Internet Required: Works entirely on local network or via offline GSM.
- Multi-Channel Alerts:
- Audio: Text-to-Speech broadcast on server speakers.
- Email: Sends to internal SMTP server.
- SMS: Uses USB GSM Dongle (AT Commands).
- Robust: Auto-restarts on failure (Systemd).
- Host Machine: Industrial PC (Linux recommended for service stability) or Windows.
- Network: Connection to Stacker PLC (Modbus TCP).
- Optional: USB GSM Modem for SMS.
Edit config.py to set:
PLC_IP: IP of your Stacker.ENABLE_AUDIO_ALERT = True/FalseENABLE_GSM_SMS = True/False
-
Transfer: Copy this entire folder to the industrial PC.
-
Install: Open a terminal in this folder and run:
chmod +x install.sh sudo ./install.sh
This will install the service to
/opt/stacker-watchdogand ensure it runs automatically on boot. -
Manage:
- Stop:
sudo systemctl stop stacker-watchdog - Start:
sudo systemctl start stacker-watchdog - Logs:
tail -f /opt/stacker-watchdog/service.log
- Stop:
- Install Python 3.9+.
- Install dependencies:
pip install -r requirements.txt. - Use Task Scheduler to run
main.pyon system startup ("On System Start").