EasyManua.ls Logo

SunFounder TS7-Pro - Page 114

Default Icon
235 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TS7-Pro 7-inch Touch Screen
cp -r /home/pi/ts7-pro/iot/
*
/home/pi/cloud4rpi-raspberrypi-python
Temperature and Humidity Acquisition
In this project, we use DHT11 to read the surrounding temperature and humidity, and then display them on Cloud4RPi.
Experimental Procedures
Build the circuit.
Open the code.
cd /home/pi/cloud4rpi-raspberrypi-python
sudo nano temperature_and_humidity_acquisition.py
Find the line below and fill in the correct device token.
DEVICE_TOKEN = '__YOUR_DEVICE_TOKEN__'
Run the code.
sudo python3 temperature_and_humidity_acquisition.py
Go to Cloud4RPi, add a new Control Panel named project1, and click Add Widget.
110 Chapter 5. PROJECTS AND ACTIVITIES

Related product manuals