![python code for raspberry pi weather display python code for raspberry pi weather display](https://bc-robotics.com/wp-content/uploads/2018/07/4.jpg)
#Python code for raspberry pi weather display install
Now we install the library to read the DHT11/22 sensors: git clone https : ///adafruit/Adafruit_Python_DHT.git & cd Adafruit_Python_DHT Sudo apt - get install build - essential python - dev python - openssl git
![python code for raspberry pi weather display python code for raspberry pi weather display](https://david.gyttja.com/wp-content/uploads/2016/02/wh1080.jpg)
Some packages are needed for that: sudo apt - get update If you have never used the sensor before and the library is not yet installed, we need to install it first. I have already discussed the two sensors in detail here, so this is only the connection as a reminder (10kΩ resistance): If you do not want to use the DHT11 or DHT22, you can skip this chapter. The two values of “ Write API Key” as well as “ Read API Key” are equally needed so that we can write or retrieve data.Ĭonnecting and setting up the Temperature Sensor We will need them soon.Īfterwards, we switch to the tab “API Keys”. Further up you will find the “ Channel ID“. Here the assigned fields are displayed as a diagram. All these assigned names are still changeable later.Īfter you have saved the channel below, you will automatically be redirected to the tab “Private View”. The names given have no influence on the transmission of the data, as we only specify “field1”, “field2”, etc.
![python code for raspberry pi weather display python code for raspberry pi weather display](https://aws1.discourse-cdn.com/business7/uploads/sws/original/2X/2/25c6fa1d496d5a0fb4504392188e5f2112762ed9.png)
Here you give a name to the channel as well as which fields you want to use. Create an account here if you do not have one yet. Then, create a new channel at . Before we start, you need an account at ThingSpeak.