Skip to content

AliBigdeli/MicroPython-WeatherStation-MQTT-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython ProMake WeatherStation MQTT App

a simple mqtt application to connect the module to broker and control and monitor data though wifi connection

micropython easy-iot gigapardaz expressif mqtt

Overview

Features

  • MicroPython
  • DHT
  • Relay
  • umqtt
  • ESP32

Assemble

as i am using the easy iot boards for development all i needed to do was to mount 2 modules on the board and get ready to use it.

Setup

first of all you need to set the variables inside the code which includes ssid and password for connecting to a wifi as station in boot.py.

SSID = "wifi ssid"
PASSWORD = "wifi pass"

also you need to se the credentials for the mqtt broker

# MQTT Server Parameters
MQTT_CLIENT_ID = "promake-demo"
MQTT_BROKER    = "test.mosquitto.org"
MQTT_USER      = ""
MQTT_PASSWORD  = ""
MQTT_TOPIC     = "promake/receive"

in my usecase i have used iot mqtt panel to control the board, you can use your own application as the choice of control but based on the topics.

you can see the measurements update for every 3 seconds and you can also control the relay with the button assigned to it.

Demo

a little demonstration of the the board workflow can be found here:

License

MIT

Bugs or Opinion

Feel free to let me know if there are any problems or any request you have for this repo.

About

a sample code for interacting with mqtt to read sensor data and also control relay

Topics

Resources

License

Stars

Watchers

Forks

Languages