Weather forecast from DarkSky in Domoticz

From Domoticz
Jump to navigation Jump to search

!!! DEPRECATED !!! Use Visual Crossing as a direct successor. See wiki page Visual Crossing.

DarkSky

DarkSky (formaly forecast.io) is a weather forecast service where up to 1000 requests per day are for free. The service delivers data for each individual geo-location using an URL request.

https://api.forecast.io/forecast/APIkey/LAT,LON?units=ca&exclude=currently,minutely,daily,alerts,flags
http://forecast.io

Integration in Domoticz

!!! DEPRECATED !!! Use Visual Crossing as a direct successor. See wiki page Visual Crossing.

The weather forecast data can be shown in Domoticz using virtual devices like:

  • Temperature
  • Humidity
  • Windspeed
  • Wind-direction / bearing
  • Rain
  • Prediction
  • Air-pressure

Refer to Virtual weather devices#Scraping only temperature for instructions on how to split out the combined THB (Temperature + Humidity + Baro) virtual device provided by forecast.io into three separate virtual devices. The instructions are exactly the same as for the former Weather Underground solution so forecast.io is a drop-in replacement for WU which no longer provides free API keys.

Installation

Get a free DarkSky key

Enter the URL and request a free API key. [1] https://developer.forecast.io/

Warning: DarkSky has joined Apple resulting in stopping the API key requests from march 2020 (source)

Our API service for existing customers is not changing today, but we will no longer accept new signups. The API will continue to function through the end of 2021.

Add DarkSky hardware in domoticz

  • From the hardware setup, add the DarkSky (Weather Lookup) (previously called forecast.io) hardware
  • Enter the above registrated API key
  • For location you can use latitude/longitude coordinates like 52.520007, 13.404954
  • or you could use a location name like 'Naarden', if this is not working use the coordinate method

After a few minutes you will get new devices in the devices tab, and you can add them to the system

(Make sure you have "Accept new Hardware Devices" ticked or "Allow for 5 minutes" active in the settings page when you setup the hardware item or no device will be added)