Skip to content

BrammyS/Temperature-monitoring

Repository files navigation

Contributors Forks Stargazers Issues MIT License .NET Core Build


Logo

Temperature monitoring

Measure the temperature in your room!

Report Bug · Request Feature

Table of Contents

About The Project

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.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • .net core 3.1 Follow the steps explained here.

  • A MongoDb database
    You can get a free database here.

  • DHT22

  • Male/Female Jumper Wires

Installation

  1. Clone the repo
git clone https://github.com/BramEsendam/Temperature-monitoring.git
  1. Publish the project
dotnet publish -r linux-arm
  1. Create a configs directory in your runtime directory

  2. Create a databaseConfig.json file in the config folder

{
  "ConnectionString": "Your MongoDb conntion string goes here"
}
  1. Connect your DHT22 sensor to the raspberry pi

wiring

Usage

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. wiring wiring wiring wiring

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements