beep-projects / SystaPi

Adding WiFi and a REST API to Paradigma SystaComfort units
GNU General Public License v3.0
16 stars 3 forks source link

No Dashboard ?! #11

Closed fhroland closed 2 years ago

fhroland commented 2 years ago

After the installation and some rework, the server started without any problems and all data is delivered as described. Good job!!! Except for the dashboard: The server does not return a response to the request http://systapi:1337/SystaREST/dashboard.

beep-projects commented 2 years ago

How do you retrieve the data from the server? I assume systapi is resolved to the correct IP in your network. Otherwise you could try using the IP. Does curl http://systapi:1337/SystaREST/dashboard return some HTML? Can you ssh into the raspberry pi and call journalctl -u SystaRESTServer.service? That should show if the server is having any failures

beep-projects commented 2 years ago

one thing that came to my mind is that I use net.ifnames=0 in my /boot/cmdline.txt to make Raspberry Pi OS to use the classical interface names. If you don't use that, the interfaces might be messed up.

fhroland commented 2 years ago

All REST Api functions work as expected, only the "dashboard" function returns no result. In debug mode, the browser shows that there is no response to the "dashboard" request. There is no reaction to the request.

Addendum: After checking the log files, I found two problems: (a) the systapidashboard.html file in directory bin was missing; then I copied the missing file from the src directory to the bin directory (b) after trying again, the helpers directory was missing; I did that manually as well Now calling http://systapi:1337/SystaREST/dashboard delivers a dashboard, unfortunately only with a history of the last 10 minutes. I'll wait and see how this continues next 24 hours. Unfortunately, I couldn't find out why the files weren't copied during the automatic installation.

beep-projects commented 2 years ago

Thanks again for the debugging! I will also look into the copying issue. The dashboard calls the REST API, and does not have access to a database or so. Every time you load the page, it will start with an empty history. It will then add data points for each message received from your Systa Comfort. After 24h it will start removing the oldest data point when adding a new one. The dashboard was just meant as proof of concept, for people that want to integrate it into their existing home monitoring system

beep-projects commented 2 years ago

Closing this issue as it seems to work now. If there are still issues, we can discuss them in #10