Skip to content

aryanboss/Zenatix_Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temprature Sensor Data Logger

IoT based temperature data logger on cloud over MQTT protocol

Steps:
1)Creat a Channel on Thingspeak.
2)Enter the name of Channel name and Filed 1 as "Temperature".
3)Keep the Writing API key safe.
4)We are using MQTT Protocol to publish data to cloud, via MQTT API Key.
5)sever.py script is used for connection.
6)edge.py scipt contains program that reads each points every-60 sec delay and publish to the cloud.
7)for random Connection Success/failure, a simple program is used. A random int is generated between 0 to 5, if the int is less than 3, the data will be published to cloud otherwise it will be stored in local text file.
8)A threaded program bufferdata() that runs every 5 seconds to check if there is any data stored in buffer.txt file,if so it will publish that data and cleans the buffer.

==> A Sample Video of project is Uploaded that reads data every 5 seconds (for realization)

Flowchart of ProgramBlank diagram

About

Temperature Sensor data logger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages