-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json file not as expected, Auto start #194
Comments
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. |
Sure thing! I'm following these instructions: If I run: 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..
Then I run: Returns no errors Then: to see if its running. avahi 358 1 0 19:34 ? 00:00:05 avahi-daemon: running [infinitude.local] 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. |
thanks. Looks like somebody wrote detailed Raspbian instructions. Hooray wikis :) The one thing that sticks out for me from that service file is a missing slash in the WorkingDirectory. If infinitude starts from the cli, the issue is most likely something simple like that in the service file. You can check systemd logs with |
Unfortunately I couldn't ever get it working even with the slash. I reflashed the drive and started completely from scratch. Same results, json file only has the one line, and the systemctl enable shows no errors, but also doesn't run it. I wonder if the instructions are possibly for an older version? |
One line in the json file is fine. it starts from the cli afterall. But, just to update docs/help others if they're confused, what are you expecting to see in the json file that seems to be missing? sounds like the only issue is with systemd config. I would expect the following to work, or at least log errors, provided it's placed into [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 |
SUCCESS! I started over from the beginning and this time was able to get it to fire up. I had copied the file the way its listed above, but then when running: Then: ps -ef | grep 'infinitude' It wouldn't show running. But then it dawned on me that the first command was telling the system to run it on boot, and the second was seeing if it was running. So I rebooted it, and it fired up. I was missing that it needed the reboot in between the two. Now I just have to figure out how to configure the RS-485 with the json file having only one line. Do I need to configure that in the json, or does the Using the UART category cover it? |
To configure your rs485 adaptor you can either set the json doesn't care if it's one or multiple lines. That is to say, {"foo": "bar", "baz":123} is the exact same thing as {
"foo": "bar",
"baz":123
} |
This issue has not been active in a while. It will be automatically closed soon absent further activity. |
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.
The text was updated successfully, but these errors were encountered: