How to obtain weather data?

A couple of ways to do this..

If you just want rain (yes/no) then there are lots of homebrew ‘hacks’ to modify water sensors to use then as rain sensors.
Here’s one I made for smartthings but I now use it on HE

If you want other features and don’t own a PWS (personal weather station) then probably the quickest way to get the data is with an ‘Apixu’ driver.

You just use this code and create a new virtual device using this driver.

If you do have a PWS then you can use weewx (weewx.com) or you can push your data to Weather Underground (weatherunderground.com) then use my driver:
[Updated] Weather Underground Driver - New API

All of these weather devices can be used with one of my apps: ‘Weather Switch’ to turn on/off a switch at a certain rain level or just if there is any rain (or not)

http://hubitat.uk

Andy