Skip to content

Small piece of code that runs on the pi to control lizard enclosure temperatures.

Notifications You must be signed in to change notification settings

majordoobie/kahlitos_way

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

khalito_client

Small piece of code that runs on the pi to control lizard enclosure temperatures.

psycopg2 error

There is a dependency issue with the pi, you need to install libpq5 as well

sudo apt install libpq5
sudo apt-get install libgpiod2

Persistence

Set up docker

sudo systemctl enable docker

Set up systemd unit file

[Unit] 
Description=Kahlo FastAPI 
 
[Service] 
Type=simple 
ExecStart=/home/pi/code/khalito_client/.venv_khalito_client/bin/python /home/pi/code/khalito_client/kahlitos_way.py 
Restart=on-failure 
RestartSec=5s 
 
[Install] 
WantedBy=multi-user.target

(.venv_khalito_client) pi@khalito:~/code/khalito_client $ cat /lib/systemd/system/kahlo_daemon.service
[Unit] 
Description=Kahlo Daemon
 
[Service] 
Type=simple 
ExecStart=/home/pi/code/khalito_client/.venv_khalito_client/bin/python /home/pi/code/khalito_client/kahlo_daemon.py 
Restart=on-failure 
RestartSec=5s 
 
[Install] 
WantedBy=multi-user.target

Then enable them

sudo systemctl daemon-reload
sudo systemctl enable kahlo_daemon.service
sudo systemctl enable kahlo_api.service

About

Small piece of code that runs on the pi to control lizard enclosure temperatures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published