Skip to content

dkoustubh/EmailService

Repository files navigation

Industrial Stacker Watchdog Service

This service monitors an industrial ASRS stacker for mode changes (Auto -> Manual) and sends alerts via Audio, Local Email, or GSM SMS.

Features

  • 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).

Hardware Requirements

  1. Host Machine: Industrial PC (Linux recommended for service stability) or Windows.
  2. Network: Connection to Stacker PLC (Modbus TCP).
  3. Optional: USB GSM Modem for SMS.

Configuration

Edit config.py to set:

  • PLC_IP: IP of your Stacker.
  • ENABLE_AUDIO_ALERT = True/False
  • ENABLE_GSM_SMS = True/False

Deployment (Linux)

  1. Transfer: Copy this entire folder to the industrial PC.

  2. Install: Open a terminal in this folder and run:

    chmod +x install.sh
    sudo ./install.sh

    This will install the service to /opt/stacker-watchdog and ensure it runs automatically on boot.

  3. Manage:

    • Stop: sudo systemctl stop stacker-watchdog
    • Start: sudo systemctl start stacker-watchdog
    • Logs: tail -f /opt/stacker-watchdog/service.log

Deployment (Windows)

  1. Install Python 3.9+.
  2. Install dependencies: pip install -r requirements.txt.
  3. Use Task Scheduler to run main.py on system startup ("On System Start").

About

Email Service , an attempt to send email without internet using intranet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors