You can find the website here
Web application for monitoring and measuring the room's temperature & light level with a Microbit placed inside the room.
- The website can read/show live data from the Microbit and updates every 1-3 seconds without the need to reload the page.
- The webpage "statistics" showes stored data for every hour, and show it on a table.
- If the Microbit isn't connected or the needed software not running, then the website will show a warning.
- The user can login and change the room's/Microbit's name from the webpage.
- Only one MicroBit is supported on one system.
- The used can register new useres from the provided link: https://microtemp.vercel.app/users/register
1- you need to install React's library in the website file
To install React!
- Open a terminal in the file "website" and run the command:
npm install next react react-dom
To run the website on localhost:3000
- Use
npm run dev
2- you need to install Python from here
Packages you need to install for the Microbit program:
-
Run all these comaneds in Windows CMD.
pip install firebasepip install pyserialpip install firebase-adminpip install python_jwtpip install --upgrade gcloudpip install sseclientpip install pycryptopip install cryptographypip install pycryptodomepip install pycryptodomex
3- Update the "COM Port" based on your system
- Open
database_sync2.pyin a text editor program and change line 21 to what ever COM Port numer the chip is using by replacing "COM3":
ser.port = "COM3"- You can find which COM Port numer the chip is using by following the steps:
- Open Device Manager (Start → Control Panel → Hardware and Sound → Device Manager)
- Look in the Device Manager list, open the category "Ports" and find the matching COM Port.
- Take the number in the bracket behind the port description.
4- you need to copy the code from "MicrobitCode.py" and put it inside the Microbit by using the Micro Code Editor
- Create a new projet.
- Select Python from menu bar at the top in the editor page.
- Paste the code.
- Click on Download.
5- To register a new user in the website Click here
1- Open the website
2- conect the microbit via USB.
3- Run the file database_sync2.py in the folder Main
For further questions, you can contact me at Ausama95@yahoo.com
Developed by: Osama Khalid Walid Ahmed