letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.25k stars 2.2k forks source link

Weather information from WeatherStack as a plugin #2838

Open Grovkillen opened 4 years ago

Grovkillen commented 4 years ago

https://weatherstack.com/documentation

Weatherstack has given us a big thumbs up to use their API. The free plan allow for 1000 requests per month (we should monitor this) and you can fetch it using HTTP.

API Token is 32 characters long

Grovkillen commented 4 years ago

Scope of plugin

current endpoint:

I have asked them to provide a timestamp in epoch (now it's a AM/PM string) as well.

Grovkillen commented 4 years ago

weather should be fetched using the internal lat/long or plugin set lat/long

TD-er commented 4 years ago

Free plan per user I assume?

It looks like you can convert the units your receive by adding the requested unit of measure in the API call. So the selector should also include that.

Maybe we can include this to use an async http call, like the planned async sendtohttp we plan to have in the rules.

Grovkillen commented 4 years ago

Yep it's per user.

Grovkillen commented 4 years ago

Historical/Forecast is paid plan so perhaps that can be added as a selector as well?