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: 6)
.html   OWM-JSON V0.92 Documentation.html (Size: 51.98 KB / Downloads: 5)
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
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 55 05-24-2020, 06:23 AM
Last Post: gReatAutomation
  Samsung SmartTV Driver George M 0 24 05-20-2020, 09:04 AM
Last Post: George M
  RainMachine Sprinkler Irrigation Controller Driver kblagron 48 2,103 05-18-2020, 03:42 AM
Last Post: kfly
  Tesla Driver Driver kfly 10 679 05-08-2020, 08:49 AM
Last Post: gReatAutomation
  JVC D-ILA Driver jokermac 34 3,744 04-13-2020, 01:28 AM
Last Post: Mark Stega
  Ambient Weather simplextech 2 343 01-10-2020, 05:37 PM
Last Post: simplextech
  LIFX Driver bobskie708 15 5,811 01-05-2020, 11:00 AM
Last Post: simplextech
  Weather Drivers simplextech 10 1,027 01-05-2020, 10:51 AM
Last Post: simplextech
  Universal Devices ISY Insteon Driver wuench 369 173,944 12-28-2019, 05:15 PM
Last Post: simplextech
  RunTimer2 driver rbroders 18 7,569 10-17-2019, 04:38 PM
Last Post: rbroders

Forum Jump:


Users browsing this thread: 1 Guest(s)