Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattsimoessilva/weather-pi
A smart weather station software designed to run on a Raspberry Pi Zero W
https://github.com/mattsimoessilva/weather-pi
Last synced: about 2 months ago
JSON representation
A smart weather station software designed to run on a Raspberry Pi Zero W
- Host: GitHub
- URL: https://github.com/mattsimoessilva/weather-pi
- Owner: mattsimoessilva
- License: mit
- Created: 2023-10-16T18:02:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-21T13:35:08.000Z (about 1 year ago)
- Last Synced: 2023-11-21T14:38:03.582Z (about 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WeatherPI
WeatherPI is a Python project that reads temperature and humidity data from a DHT11 sensor connected to a Raspberry Pi. This project provides a simple way to monitor and record environmental data, making it ideal for weather monitoring or home automation applications.
## Features
- Reads temperature and humidity data from a DHT11 sensor.
- Provides accurate and up-to-date information for your weather monitoring needs.
- Easily configurable for different GPIO pins and sensor types.
- Lightweight and easy to use.## Prerequisites
Before using WeatherPI, ensure you have the following:
- A Raspberry Pi (or similar single-board computer).
- A DHT11 sensor connected to your Raspberry Pi.
- Python 3.x installed on your Raspberry Pi.## Installation
1. Clone the repository to your Raspberry Pi:
```bash
git clone https://github.com/yourusername/weather-pi.git2. Navigate to the project-directory:
cd weather-pi
3. Install the required dependencies:
pip install -r requirements.txt
## Usage
1. Run the `sensor_read.py` script to read temperature and humidity data:
python sensor_read.py
2. View the real-time temperature and humidity information displayed in the terminal
## Configuration
- You can configure the GPIO pin and sensor type by modifying the variables in the `sensor_read.py` script.
```python
# Define the type of the sensor (DHT11 or DHT22)
sensor = Adafruit_DHT.DHT11# Define the GPIO pin to which the sensor is connected
pin = 4 # You can adjust the pin number according to your setup## Contributing
Contributions are welcome! If you find any issues or would like to add new features, please open an issue or submit a pull request.
## License
This project is licensed under the MIT License. See the license file for details.
## Acknowledgments
- The WeatherPI project is inspired by a passion for weather monitoring and Raspberry Pi tinkering.
- We appreciate the open-source community for their valuable contributions and resources.