Skip to content

hyper-prog/smtherm

Repository files navigation

SMTherm logo

SMTherm - Smart Manageable Thermostat daemon

SMTherm is a thermostat daemon written in C that monitors the ambient temperature using DHT22 sensors. It designed to run on Raspberry Pi and can even take into account the data of several thermometers and make complex decisions about starting or stopping the heating. The program communicates via a TCP interface and, in addition to controlling the heating, stores the temperature data of the last 3 days in a ring buffer.

The SMTherm only have TCP interface, the GlowDash: https://github.com/hyper-prog/glowdash can controls it.

SMTherm architecture

Compile / Install

Require wiringPi and CURL libraries

$make
#make install

Run as systemd daemon

Create systemd start file /lib/systemd/system/smtherm.service

[Unit]
Description=SMTherm thermostat daemon
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/bin/smtherm /etc/smtherm.conf
Restart=always
User=root
Group=root

[Install]
WantedBy=multi-user.target

After the file created, edit a sample config file and place into /etc/smtherm.conf Eenable and start the service

systemctl daemon-reload
systemctl enable smtherm.service
systemctl start smtherm.service

Author

  • Written by Péter Deák (C) [email protected], License GPLv2
  • The author wrote this project entirely as a hobby. Any help is welcome!

paypal

Releases

No releases published

Packages

No packages published