The central device (server) has been tested with a Raspberry Pi Zero W.
For whatever reason, RPIs dislike setting themselves up properly. Before continuing, make sure you can
ping google.comsucessfully. If something seems off, try the following solutions:Make sure your hostname has been properly changed, especially if this is a newly installed PI. Type in
sudo nano /etc/hostsand make sure that the line starting with127.0.1.1has the proper hostname and thatsudo nano /etc/hostnamealso shows the proper hostname (source).Sometimes the default DNS servers are just bad. Run the command
echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf.headto add google.com to the list of nameservers to use (source).
To install the HFS library in /usr/local/src/, run the following command:
wget -O hfs.zip "https://github.com/LESA-RPI/hfs.main/archive/refs/heads/main.zip" && sudo unzip -o -j hfs.zip 'hfs.*/sensor/server/*' -d /usr/local/src/hfs/ && rm hfs.zip
Then to build the server dependencies and begin server setup, run:
sudo sh /usr/local/src/hfs/install.sh
To start the server, simply reboot the PI and both the webpage and bluetooth capabilities will automatically launch.
Finally, one might want to simply update the code on the server. To do so, run:
wget -O hfs.zip "https://github.com/LESA-RPI/hfs.main/archive/refs/heads/server-ui.zip" && sudo unzip -o -j hfs.zip 'hfs.*/sensor/server/*' -d /usr/local/src/hfs/ && rm hfs.zip && (cd /usr/local/src/hfs && sudo mkdir -p public && sudo mv -v *.html public/ && sudo mv -v *.css public/ && sudo touch public/public.log && sudo npm install)
The user name and password for Raspberry Pi Zero W
hfsserver-password
Raspberry Pi System has been upgraded to the Raspberry Pi 4, and the username and password are the same.