nebulous / infinitude

Open control of Carrier/Bryant thermostats
MIT License
225 stars 50 forks source link

Json file not as expected, Auto start #194

Open interested1204 opened 1 day ago

interested1204 commented 1 day ago

Been using infinitude for quite a while, great piece of software! This time its on its own raspberry pi so I can connect up the RS-485 and get even more data. Issue is, when I go to edit the json file, it only has 1 line, "app_secret" etc, with "pass_reqs" later on.

Additionally I've followed the rest of the directions, but it does not start upon startup. Works a treat if I go in and manually start it!

Rasp Pi B v 1.2, with full Raspbian latest version.

nebulous commented 21 hours ago

Can you provide any more details? In particular, what directions are you following? Any error messages when it doesn't start? I'm not sure if Raspbian provides docker, but that's the easiest way to run Infinitude.

interested1204 commented 13 hours ago

Sure thing! I'm following these instructions: https://github.com/nebulous/infinitude/wiki/Installing-Infinitude-on-Raspberry-PI-(Raspbian)

If I run: cd ~/infinitude ./infinitude daemon -m production

It fires up great! As I follow through to:

nano ./infinitude/infinitude.json

The file it brings has 1 line:

{"app_secret":"Pogotudinal","pass_reqs":300}

sudo nano /etc/systemd/system/infinitude.service

I have a file that I've modified to the following..

[Unit] Description=Infinitude HVAC control After=network-online.target

[Service] Type=simple WorkingDirectory=home/carrier/infinitude ExecStart=home/carrier/infinitude/infinitude daemon -m http://:3000 Restart=always RestartSec=17

[Install] WantedBy=multi-user.target

Then I run: sudo systemctl enable infinitude

Returns no errors

Then: ps -ef | grep 'infinitude'

to see if its running.

avahi 358 1 0 19:34 ? 00:00:05 avahi-daemon: running [infinitude.local] carrier 2888 1549 28 20:34 pts/0 00:00:00 grep --color=auto infinitude

My Raspbi that could run docker got destroyed unfortunately so I was trying older hardware to get it running. Hoping its something simple I'm missing.