Ecohackerfarm / powerplant

Optimize and assist planning your garden
Other
85 stars 21 forks source link

Collect weather data from Dark Sky API and store it to farmOS #99

Open petteripitkanen opened 5 years ago

petteripitkanen commented 5 years ago

Accurately detecting weather warnings for rain, frost and drought depends on recent weather data (#2, #98). Make powerplant server to poll the Dark Sky API every 5 minutes and store the data by sending it to farmOS sensor listener interface.

For now the weather variables that we are interested in are temperature and rain. Temperature should be in celsius, that looks easier for frost detection. For now rain should be 0 if there is no rain and 1 if there is rain.

Include the timestamp property when sending temperature and rain to farmOS, when we are later processing the data it needs to be relevant to powerplant's clock.

Configure garden location in secrets.example.js in variables LATITUDE and LONGITUDE.

Easiest way to install farmOS seems to be with Docker, see https://farmos.org/development/docker/, for example on Debian:

$ apt-get install docker-compose
$ mkdir farmos; cd farmos
$ wget https://raw.githubusercontent.com/farmOS/farmOS/7.x-1.x/docker/docker-compose.development.yml
$ mv docker-compose.development.yml docker-compose.yml
$ sudo docker-compose up
j12i commented 2 years ago

dark sky is going dark at the end of the year... here's a project that aims to replace the api compatibly: https://pirateweather.net

R2DEV0 commented 1 year ago

I found this issue on https://ovio.org/projects and would love to contribute! I am looking for a project for my college report. I have experience working with Node/Javascript and with APIs.

aimeejulia commented 1 year ago

@R2DEV0 very happy to see new contributors to this project