Measure the temperature in your room!
Report Bug
·
Request Feature
This is a simple project using C# and a DHT22 sensor to measure temperature and humidity. The data that we will gather from the sensor will be stored in a MongoDb database. So you will need a raspberry pi and a DHT22 sensor for this project.
To get a local copy up and running follow these simple steps.
-
.net core 3.1 Follow the steps explained here.
-
A MongoDb database
You can get a free database here. -
DHT22
-
Male/Female Jumper Wires
- Clone the repo
git clone https://github.com/BramEsendam/Temperature-monitoring.git
- Publish the project
dotnet publish -r linux-arm
-
Create a
configs
directory in your runtime directory -
Create a
databaseConfig.json
file in the config folder
{
"ConnectionString": "Your MongoDb conntion string goes here"
}
- Connect your DHT22 sensor to the raspberry pi
You can draw graphs with your data if you are hosting your database on MongoDb Atlas.
You can view the documentations here.
Here is a little preview on what my graphs looks like.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.