I'm playing around with infinitude after not using it for a while. I noticed once I pointed my thermostat to it, I no longer get updates to carrier. 24 hours now and counting. I have tried a couple of different values in pass_req. I don't see any errors when I run it in debug mode. I see a lot of GET "status.json" and POST /systems/XXXXX/status".
I think this is why I stopped using it a while back. Am I doing something wrong, or expecting something wrong?
Edit:
I do see things like this sometimes:
[Sat Dec 17 03:33:36 2016] [debug] GET "/systems/XXXXXXX/utility_events".
[Sat Dec 17 03:33:36 2016] [debug] Template "not_found.development.html.ep" not found.
[Sat Dec 17 03:33:36 2016] [debug] Rendering template "not_found.html.ep" from DATA section.
[Sat Dec 17 03:33:36 2016] [debug] 404 Not Found (0.026696s, 37.459/s).
Edit 2:
I am seeing this:
[Sat Dec 17 04:39:11 2016] [debug] No cache for systems-XXXXXXX-status. Make Carrier request
This in the res-systems-XXXXX-config.txt
HTTP/1.1 404 Not Found
Date: Sat, 17 Dec 2016 04:13:40 GMT
Content-Length: 0
Edit 3:
If I use the use the Advanced Rest Client from google and issue a GET with information from the req.txt file, I get values back.
Edit 4:
I think this can be discarded. I think I got something messed up and I am not able to resolve the url on my pi. I'll confirm later.
Nope, nevermind. I can take the data from the req.txt file and issue a curl request and I get data back. So something isn't playing nice in infinitude.
Edit 5:
....and this is the line that is causing me problems:
$o_url->scheme('https');
If I change it to http it works fine. When I execute it with curl -v it also works http or https. I even pulled the latest Mojolicious. I wonder if there is another package I need to update.
If it matters, I am running in it an docker.
Edit 6:
Woot, figured it out. I needed to update IO::Socket::SSL
sudo apt-get install libssl-dev
cpanm Net::SSLeay
cpanm IO::Socket::SSL
Now to wipe it all out and start from scratch with my notes.