Sign inSign up

feilner/plcwatchd

By feilner

•Updated about 6 years ago

Observe plc state of a simatic plc and send push notifications via pushover.

Image
0

6.9K

feilner/plcwatchd repository overview

⁠Environment variables
  • PUSHOVER_KEY pushover.net user key (mandatory)
  • PUSHOVER_TOKEN pushover.net appliacation token (mandatory)
  • PLC_IP address of the plc (mandatory)
  • CLI_ARGS optional command line interface args to plcwatchd (optional)

Optional arguments to plcwatchd can added by the optional CLI_ARGS

 -v    verbose
 -p    polling rate of the PLC state in seconds, default 10
 -c    retry - pushover.net retry parameter in seconds, default 60
 -e    expire - pushover.net expire parameter in seconds, default 600
 -u    user - pushover.net comma seprated device list e.g. "deviceOne,deviceTwo", default all devices
 -r    rack - rack of the plc, default 0
 -s    slot - slot of the plc, default 2
⁠Run from command line:
docker run -it --rm -e PUSHOVER_KEY=pushoverKey -e PUSHOVER_TOKEN=pushoverToken -e PLC_IP=plcIP -e CLI_ARGS "-u pushoverDeivce"  feilner/plcwatchd
⁠Example docker-compose.yml:
  plcwatchd:
    image: feilner/plcwatchd
    container_name: plcwatchd
    restart: always
    environment:
    - PUSHOVER_KEY=pushoverKey
    - PUSHOVER_TOKEN=pushoverToken
    - PLC_IP=plcIP
    - CLI_ARGS=-u pushoverDeivce

Tag summary

Content type

Image

Digest

Size

63.5 MB

Last updated

about 6 years ago

docker pull feilner/plcwatchd