Skip to content

Server and RPi code to send temperature readings to IoT hub from a Raspberry Pi

Notifications You must be signed in to change notification settings

iamgroot42/azure_mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Azure MQTT

About

Server and RPi code to send temperature readings to IoT hub from a Raspberry Pi (every minute), and use that data to plot a timeseries graph of temperature readings of the last one hour using Google Charts API. Server code ready to be pushed to Azure.

Running it

  • Run npm install from rpi/ folder on the raspberry pi device. Then, run npm start to start sending readings to Azure central hub via MQTT protocol.
  • Run npm install from azure/ folder on any machine. Then, run npm start and navigate to localhost:3000 to view a graph of temperature readings of the last one hour (collected at a frequency of one reading/10 seconds from the mqtt node, ie, Raspberry Pi).

About

Server and RPi code to send temperature readings to IoT hub from a Raspberry Pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published