Skip to content

basmeerman/otmonitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

otmonitor

Monitor tool for the OTGW (http://otgw.tclcode.com/)

Build instructions: http://otgw.tclcode.com/otmonsrc.html

Deployment scenario

  • OTGW (see Hardware)
  • Connected through TTL-USB
  • OTMonitor running on Raspberry PI Zero W (Headless)
  • OTMonitor publishes to MQTT (that I consume with OpenHAB MQTT Binding)

Environment settings

  • running Raspian headless
  • sudo apt-get update
  • sudo apt-get install -y git
  • sudo git clone https://github.com/basmeerman/otmonitor.git /opt/otmonitor
    • make sure to chmod 755 otmonitor and build.sh
    • make sure to have ./kit/runtime symbolic link to ./kit/tclkit
  • build otmonitor by executing sudo ./build.sh
  • manually create otmonitor configfile /opt/otmonitor/otmonitor.conf
  • make sure to install otmonitor as a system service
    • sudo cp ./initd/otmonitor /etc/init.d/
    • sudo chmod 755 /etc/init.d/otmonitor
    • sudo update-rc.d otmonitor defaults
    • sudo reboot
    • verify working systemctl status otmonitor
  • extra create MOTD
    • sudo nano /etc/motd remove all lines and add "Device: Opentherm Gateway" save and exit
    • sudo nano sudo nano /etc/update-motd.d/80-overlay
      #!/bin/sh
      str=$(mount | grep ' on / ')
      if echo $str | grep -q 'overlay'; then
         printf "\n------ INFO: / MOUNTED WITH OVERLAY ------\n\n"
      elif echo $str | grep -q 'rw'; then
         printf "\n++++++ INFO: / MOUNTED READ-WRITE ++++++\n\n"
      else
         printf "\n!!!!!! WARNING: / UNKNOWN STATE !!!!!!\n\n"
      fi
      
    • sudo chmod 755 /etc/update-motd.d/80-overlay
  • extra backup
    • sudo mkdir /backup
    • sudo nano /root/.smbcredentials and add credentials for SMB share access
    • sudo /etc/fstab and add mountpoint to SMB share
      //192.168.100.99/NeuralHomeBackups/BackupRPIOpenThermGateway /backup cifs credentials=/root/.smbcredentials 0 0 comment=systemd.automount
      
    • sudo mount -a
    • curl -sSLO https://www.linux-tips-and-tricks.de/raspiBackupInstallUI.sh && sudo bash ./raspiBackupInstallUI.sh
    • configure backup in menu
  • extra readonly filesystem
    • sudo raspi-config
    • under Advanced enable Overlay FS
    • save / close / reboot
  • test http://:8080

Hardware

About

Monitor tool for the OTGW (http://otgw.tclcode.com/)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Tcl 93.0%
  • JavaScript 2.9%
  • HTML 2.5%
  • Other 1.6%