Visual Crossing weather lookup

From Domoticz
Jump to navigation Jump to search

Visual Crossing

Available from Domoticz Stable 2023.2

Visual Crossing (https://www.visualcrossing.com/) 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://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/%22+Location+%22?key=%22+APIKey++%22&unitGroup=metric&include=current

Integration in Domoticz

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) device into three separate virtual devices. The instructions are exactly the same as for the former Weather Underground solution and Darksky/forecast.io.

Installation

Get a free Visual Crossing API key

  • Go to https://www.visualcrossing.com/ and create an account


Add Visual Crossing hardware in domoticz

  • From the hardware setup, add the Visual Crossing (Weather Lookup) 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)


Replace Darksky by Visual Crossing and keep current weather devices

  • Go to the hardware tab
  • Click on your DarkSky hardware
  • Replace API key
  • Change type to Visual Crossing (Weather Lookup)
  • Click "update" button