atmohome

command module
v0.0.0-...-61d9cfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 13 Imported by: 0

README

Atmohome - telegram bot that measures temperature and humidity written in golang

Rapbserry Pi crontab -e
*/5 * * * * python3 /home/pi/dht22.py > /dev/null 2>&1
Build telegram bot for ARM arch
$ go mod download
$ GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=1 go build -v -o atmohome main.go
Bot commands
  • / - show keyboard
  • last - presents last measurement
  • day - renders graph with measurements during last 24 hours
Systemd service /lib/systemd/system/atmohome.service
[Unit]
Description=Atmohome
DefaultDependencies=no
After=network.target

[Service]
WorkingDirectory=/home/pi
Type=simple
RemainAfterExit=yes
ExecStart=/home/pi/atmohome
Restart=on-failure
RestartSec=30s

[Install]
WantedBy=multi-user.target
Example

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL