pjcalvo / monstera Goto Github PK
View Code? Open in Web Editor NEWHumidity Sensor Application (IOT)
Humidity Sensor Application (IOT)
# Raspberry Pi Pico Plant Humidity Monitoring This project aims to create a Raspberry Pi Pico-based solution for monitoring the humidity levels in plants and sending the data wirelessly to a Flask server. The project consists of two main components: an API server built with Flask and the code for the Raspberry Pi Pico. ## See it working The project has been deployed to fly, so you could see live values at: [latest](https://monstera.fly.dev/) [historic](https://monstera.fly.dev/historic) ## Folder Structure The project follows a 2-folder structure: - `/api`: Contains the Flask server code responsible for receiving and storing the humidity metrics from the Raspberry Pi Pico. - `/pico`: Contains the code for the Raspberry Pi Pico that reads humidity values from the sensor and sends them to the Flask server. ## Getting Started To set up the project, follow these steps: ### API Setup 1. Navigate to the `/api` directory: `cd api` 2. Install the required Python packages: `pip install -r requirements.txt` 3. Start the gunicorn server (flask prod server): `gunicorn app:app` The Flask server will start running on `http://localhost:8000` and will be ready to receive humidity metrics from the Raspberry Pi Pico. ### Raspberry Pi Pico Setup To get started with the installation of the firmware please follow [this guide](https://www.tomshardware.com/how-to/raspberry-pi-pico-setup) 1. Connect the humidity sensor to the Raspberry Pi Pico according to the wiring instructions provided. 2. Copy the code from the `/pico` directory to your Raspberry Pi Pico board. 3. Adjust the code if necessary to match the pin configuration and sensor type you are using. 4. Power up the Raspberry Pi Pico. The Raspberry Pi Pico will start reading the humidity values from the sensor and send them wirelessly to the Flask server. ## Contributing Contributions are welcome! If you have any improvements or suggestions, feel free to open an issue or submit a pull request. ## License This project is licensed under the [MIT License](LICENSE).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.