josecastroleon / pimatic-openweather

Pimatic Plugin that retrieves the forecast on several devices
GNU General Public License v2.0
2 stars 9 forks source link

"Forecast" from yesterday and today #33

Open doopeldedoo opened 8 years ago

doopeldedoo commented 8 years ago

Hello.

I want to configure my Pi as a smart garden pump device so if it has rained yesterday or today that the pumps won't open. I'm controlling the pumps via the GPIO pins on the Pi.

Could you make it possible to tell if it rained yesterday?

mwittig commented 8 years ago

Please also use our User Forum https://forum.pimatic.org/ to discuss such matters on a wider basis with other users.

One way of accessing the information ou're looking for is to use the historical data API which is currently not supported by pimatic-openweather - http://openweathermap.org/history. You can file a feature request for this in our User Forum.

Generally, for what you're a trying to achieve, you may get better results by using soil moisture sensors which are very cheap - see http://computers.tutsplus.com/tutorials/build-a-raspberry-pi-moisture-sensor-to-monitor-your-plants--mac-52875 for example, but there are also more advanced plug-and-play solutions available on the market

mwittig commented 7 years ago

Note, if the day property of the OpenWeatherForecastDevice is set to 1 the forecast of today is obtained.