Sensecap One 3D visual web page, that runs on Raspberry Pi.
- SenseCAP One
- Raspberry Pi 3B/3B+/4
- Seeed RS-485 Shield for Raspberry Pi
First of all, the shield needs to be properly plugged in and powered.
- SenseCAP One Configuration Tool
Connect PC and "SenseCAP One" through a Type-C cable, and then set Sensecap One's protocol to RS485-ASCII by using the software.
- Node.JS v10.22.x
If there is not installed on Rapi, try to run the script below, to install a new one.
curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n bash n 10
Using raspi-config
, to enable the hardware serial /dev/ttyS0
.
SSH into Raspberry Pi and execute the following command.
[email protected]:Seeed-Solution/SenseCAP-WeatherStation-Raspberry-Pi-Visualization.git
mv SenseCAP-WeatherStation-Raspberry-Pi-Visualization /opt/SenseCAP-WeatherStation-Raspberry-Pi-Visualization
cd /opt/SenseCAP-WeatherStation-Raspberry-Pi-Visualization
cd server && install --unsafe
cd website && install --unsafe
# pm2 start
npm install -g -y --unsafe pm2 http-server
pm2 start run-server.sh
pm2 start run-website.sh
pm2 save
pm2 ls
Keep your PC and Raspberry Pi under the same LAN, and then access url http://{Rapi IP}:8080 through your browser.