Skip to content

Files

Latest commit

 

History

History

Sense_Temp_Humidity

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

IoT - Sense_Temp_Humidity (https://github.com/tangowhisky37/RaspiPythonProjects/tree/master/Sense_Temp_Humidity)

  • This project has evolved to Log data to CSV on the RaspberryPi and also upload data to the ThingSpeak/IoT Platform
  • Components required for the programs in this folder include
  • Python Adafruit DHT Library - https://github.com/adafruit/Adafruit_Python_DHT
  • Data directory to log captured data in CSV form in /opt/data.
    • The folder /opt/data will need to be created.
    • Permissions on the folder to be granted to user executing the program.
  • To log data at the ThingSpeak IoT platform, create an account at ThingSpeak (https://thingspeak.com).
    • This program uses the DHT11 and logs both Temperatury, Humidity
    • Create a new channel at Thingspeak. Create two new fields at ThingSpeak i.e. field1, field2
    • Copy your API key to the program and update the WriteDataThinkSpeak() function.
    • This program has now been updated to pull data from a local Arduino Mega 2560 over http. The Arduino has a DHT11 connected to it.
    • The Arduino also includes an Ethernet module based on the enc28j60 chip allowing it to connect over the network.
    • For details on connecting up the Arduino and configuring the ethernet module please refer to my contribution at ArduinoProjects here on Github.