Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Latest commit

 

History

History
59 lines (45 loc) · 2.4 KB

README.md

File metadata and controls

59 lines (45 loc) · 2.4 KB


Build Status MIT License


PigProject - Watering Guess

Source code of the PigProject. Calculates the irrigation time of a plant based on weather conditions such as wind, rain and temperature. The project is still under development but will be released soon.

Monitoring / Data Log

This script provide a webserver that provide access to log of retrieved data and the calculated irrigation time after every fetch. The webserver runs on port 9000 just to avoid to keep busy other ports (maybe you want to run other services). You can reach the server by connecting to:

YOUR_DEVICE_IP:9000

Along with that it prints the log in the console too, here is and example:

______ _      ______          _           _   
| ___ (_)     | ___ \        (_)         | |  
| |_/ /_  __ _| |_/ / __ ___  _  ___  ___| |_ 
|  __/| |/ _` |  __/ '__/ _ \| |/ _ \/ __| __|
| |   | | (_| | |  | | | (_) | |  __/ (__| |_ 
\_|   |_|\__, \_|  |_|  \___/| |\___|\___|\__|
          __/ |             _/ |              
         |___/             |__/               

Starting server...
weather_fetcher ready
making request...
Server up and running on port 9000


---------DATA---------
Time: 0
Temperature: 1.70 (Celsius)
Watering time per degree set as: 0.67 (minutes)
Wind incidence: 0 (1=Yes 0=No)
Watering multiplier: 1.00
Weather is: CLEAR SKY
________________________________
|  WATERING TIME: 1 (minutes) |
--------------------------------

Internet connection

This script uses third-party WebAPI from OpenWeatherMap to fetch weather data. Needless to remember that it needs 24/7 internet connection.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details