Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenWeatherMap Weather Driver Using OneCall API
#1
OpenWeatherMap.org has released a new API (named OneCall) that provides current weather information based on your lat/long along with 7 days of forecast data in JSON format.  It allows 1000 calls per day to the free account that you will have to set up on their website (which is the same API key that the shipped OWM driver used).

I will build a help file once a few things gets finalized, but I think the driver fields are self explanatory and you can look at the shipped OpenWeatherMap driver for most of them.

All of the Current Weather Data from the website is captured, but there are a number of fields that could be added for Days 1 - 7::

  • Day 1-7 Feels Like Temps - Morning, Day, Evening and Night
  • Day 1-7 Humidity
  • Day 1-7 Dew Point
  • Day 1-7 Wind Gust
  • Day 1-7 Wind Direction
  • Day 1-7 Cloudiness
  • Day 1-7 Rain Precipitation
  • Day 1-7 Snow Volume

Let me know if you would like to see these added.

A couple of quirks/limitations:

  • The Day 1 data is the remaining data for the current day.  There is Day 8 data that could be added to give a full forecasted week of data.
  • The Current Visibility is not always visible (all pun intended).  On some Lat/Longs it shows up, on others it doesn't, it will show 0 if it isn't there.
  • Not totally confirmed, but feel confident that the dates shown for Days 1-7 (which are Noon Standard Time for your time zone), cover that date from Midnight to 11:59pm.  There is always a possibility that it covers from Noon to 11:59am, but from what I can tell it doesn't, and the documentation does not indicate that is the case.
  • I wrote this driver to be V2, but it doesn't pass the validation check in the CML test harness, so will ask Dean about that in a separate post.
  • There is no Precipitation Probability available for the current data or forecast days.
Let me know how it works.

** Updated to V0.91 that includes a total of 8 forecast days (Day 1 is the remainder of the current day, and Days 2 thru 8 are the next 7 days.  All of the fields listed above were added except for the "Feels Like" forecast temperatures, mainly because that would of added 4 new fields for each forecasted day.  If someone really needs these, let me know.

I also included a help file in this update.

** Updated to V0.92 to allow barometric pressure to be shown in either Inches of Mercury or Millibars at initialization.


Attached Files
.cqcdrvpack   OpenWeatherMapJSON V0.92.CQCDrvPack (Size: 14.02 KB / Downloads: 22)
.html   OWM-JSON V0.92 Documentation.html (Size: 51.98 KB / Downloads: 21)
Reply
#2
Thanks for getting this together. The added fields that these drivers include is great.

(I've been using kblagron's Dark Sky driver that he made and it has been great. With the announcement that Dark Sky was closing it's API next year, I was concerned about what I would use in the future. I'm glad there appears to be a valid replacement for the Dark Sky option).
Brian - a long time user that rarely messes with the system now
Other systems used:
SageTV w/ cablecard tuner & multiple extenders for viewing
BlueIris and IP cameras for CCTV
Incredible PBX for home phone
Reply
#3
I updated the driver to 0.91 and added the driver documentation.  Everything should be V2 compatible.  it now includes a total of 8 forecast days (Day 1 is the remainder of the current day, and Days 2 thru 8 are the next 7 days).  New fields were added as well, and they are described in the .html documentation.
Reply
#4
Thanks!! Much appreciated.
Reply
#5
(05-14-2020, 09:04 PM)kblagron Wrote: I updated the driver to 0.91 and added the driver documentation.  Everything should be V2 compatible.  it now includes a total of 8 forecast days (Day 1 is the remainder of the current day, and Days 2 thru 8 are the next 7 days).  New fields were added as well, and they are described in the .html documentation.
Your the man... Thanks for doing this. 
Kevin
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#6
I have been using this for the precipitation (last hour) and also forecasted precipitation in the future, as Darksky only gives a probability but does not give an estimate of how much rain.  It doesn't snow but once every 10 years here, but knowing how much it is planning on snowing in upcoming days is nice as well.
Reply
#7
(05-16-2020, 08:16 AM)kblagron Wrote: I have been using this for the precipitation (last hour) and also forecasted precipitation in the future, as Darksky only gives a probability but does not give an estimate of how much rain.  It doesn't snow but once every 10 years here, but knowing how much it is planning on snowing in upcoming days is nice as well.

You can set an alert to text you when the snow fall is expected to be greater than 0.20"  That way you know to swing by the store to pick up milk and bread before the rush.  Wink
Brian - a long time user that rarely messes with the system now
Other systems used:
SageTV w/ cablecard tuner & multiple extenders for viewing
BlueIris and IP cameras for CCTV
Incredible PBX for home phone
Reply
#8
This is great - thanks for making it available! One thing I noticed - and you may not be able to do anything about this - is that the pressure is being reported in millibars rather than inches.
Reply
#9
(05-16-2020, 04:37 PM)dlmorgan999 Wrote: This is great - thanks for making it available!  One thing I noticed - and you may not be able to do anything about this - is that the pressure is being reported in millibars rather than inches.

Appreciate the effort in making this driver available.  I think a full week's forecast would be optimal.  1 millibar=.40147 inches of water.
Reply
#10
(05-16-2020, 05:17 PM)keepersg Wrote:
(05-16-2020, 04:37 PM)dlmorgan999 Wrote: This is great - thanks for making it available!  One thing I noticed - and you may not be able to do anything about this - is that the pressure is being reported in millibars rather than inches.

Appreciate the effort in making this driver available.  I think a full week's forecast would be optimal.  1 millibar=.40147 inches of water.
 I can do that, I already adjusted the rainfall amount as they reported it in mm and for most in the US, we expect it in inches.  Will get a new version out soon.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Onkyo/Integra Receiver Driver sic0048 6 503 01-08-2023, 10:24 PM
Last Post: kblagron
  RainMachine Sprinkler Irrigation Controller Driver kblagron 60 24,030 07-17-2022, 08:36 PM
Last Post: kblagron
  SmartThings API V1 driver kfly 5 1,382 02-22-2022, 07:55 AM
Last Post: kfly
  Tesla Driver Driver kfly 14 6,795 02-21-2022, 10:11 AM
Last Post: kfly
  Help on editing existing Driver Spot 5 1,101 02-03-2022, 06:50 PM
Last Post: kblagron
  New to driver development - where to start? jokermac 2 1,002 09-22-2021, 04:01 PM
Last Post: Spot
  Yamaha RX-V673 IP control Driver jdmevo123 22 12,411 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 945 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Sage Media Server driver (beta) Fonceur 698 360,276 07-26-2020, 04:59 PM
Last Post: sic0048
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 3,232 05-24-2020, 06:23 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)