05 ‐ Setting up the Lighttpd webserver - ronbuist/remeha-can-interface GitHub Wiki
Setting up the Lighttpd webserver
To access the JSON file generated by the remeha.sh
script, I've set up the Lighttpd webserver on the Raspberry Pi. Install it using the following command:
sudo apt-get install lighttpd
Now we only need to create a symbolic link to /run/remeha/remeha.json
:
cd /var/www/html
sudo ln -s /run/remeha/remeha.json .
The JSON file can now be retrieved from the Raspberry Pi through the following URL: http://<Raspberry Pi IP-address>/remeha.json
. We can now configure Home Assistant to use this as a REST call.