PWS Data access via API

  • 4
  • Problem
  • Updated 6 months ago
with the now 4 month old decision to discontinue free API access, as a PWS owner I am without a way to easily pull data from my own station, and am specifically trying to leverage my Alexa to display and report this data. 

Any assistance you can offer in accessing the data I'm freely sharing with you is much appreciated.
Photo of MattSTKC

MattSTKC

  • 4 Posts
  • 1 Reply Like

Posted 10 months ago

  • 4
Photo of bitwalker

bitwalker

  • 9 Posts
  • 3 Reply Likes
Matt, as PWS owner you will get free access to a new API soon.

If will offer:
  • Current observations from the PWS network
  • 5 day daily forecast
  • PWS historical data
  • PWS lookup by geocode, zip code and location
  • Call volume: 1500/day, 30/minute
So, you can still pull data from your own station and report/display it somewhere else.
Exact details should be announced soon. The old API will stay available for a while longer.
(Edited)
Photo of George Buce

George Buce

  • 1 Post
  • 0 Reply Likes
Is there any timetable on when this will be released?    And will the current API continue to function until then?
Photo of bitwalker

bitwalker

  • 9 Posts
  • 3 Reply Likes
1) Based on what was posted in other threads, something is probably going to be announced this week and then we will hopefully know. They've obviously missed their deadline for the new PWS API before. The risk of announcing an end date for an old legacy product before having a replacement ready for production.
2) Yes and afterwards for a while, so there will be overlap once it is live.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 618 Posts
  • 87 Reply Likes
I have a clone!  Thanks guys!

Victoria Gardner
victoria.gardner@ibm.com
Photo of Al Macklin

Al Macklin

  • 1 Post
  • 0 Reply Likes
As a paid member and a supplier of accurate WS data for 10 years I hope there will be a free key soon. If there is a free key available how does one go about getting it? 
Photo of Paul Grace

Paul Grace

  • 18 Posts
  • 3 Reply Likes
If you are uploading from your PWS go here...

If you have any issues, contact Victoria in the comment just above yours...


https://www.wunderground.com/member/api-keys
(Edited)
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 618 Posts
  • 87 Reply Likes
Al, you can find directions for getting a new API key in the first response to this post:  https://apicommunity.wunderground.com/weatherapi/topics/end-of-feb-wu-api-update

If you have difficulties, please let me know.

Victoria Gardner
victoria.gardner@ibm.com
Photo of MattSTKC

MattSTKC

  • 4 Posts
  • 1 Reply Like
Great. If I didn’t have an api key before now though I’ll have to wait for the new one yes?
Photo of bitwalker

bitwalker

  • 9 Posts
  • 3 Reply Likes
yes, I am also waiting for that.
There are some other ways to get your data without using the old legacy or not-yet-available new API.
Photo of MattSTKC

MattSTKC

  • 4 Posts
  • 1 Reply Like
@bitwalker thanks for that update. I'm essentially looking for API access so I can leverage the following Alexa skill to connect my PWS to Alexa and report out weather to me that way. 
https://www.amazon.com/Personal-Weather-Underground-PWS/dp/B07234WJ9B

Thanks,
Matt
Photo of Roxie Muzic

Roxie Muzic

  • 2 Posts
  • 0 Reply Likes
@Matt, my issue as well, if I hear of anything or, gadzooks, decide to create another skill using a different system's API (if that can be done on my weather devices since they appear to be tied into WU), I will let you know.  Currently my system is still running under the old WU API and reports the weather without issues. 

I am contemplating creating another skill using either Dark Sky or OWM, I also understand from the Acurite forum that a Raspberry PI can be used with a script that was written to report as well from the WeeX system.  I have some work to do, and I have to learn how to create the script as well for Alexa if I migrate to another source.

New things are good, or so I have been told for the last 66 years of my life, HAH LOL :)
Photo of Glennon Poirier

Glennon Poirier

  • 2 Posts
  • 0 Reply Likes
My Ambient Weather WS2000 works directly with Alexa, Google Home, and IFTTT. It has its own Alexa skill. I can say, Ask Ambient Weather for the current observations, and I’ll get a current reading of each of the sensors read out to me. No extra fee
Photo of MattSTKC

MattSTKC

  • 4 Posts
  • 1 Reply Like
Yeah Glennon and with the WU API there was a skill that worked for my Rainwise but with the impending shutoff it’ll neuter it until there’s another data call option.
Photo of Glennon Poirier

Glennon Poirier

  • 2 Posts
  • 0 Reply Likes
I use https://www.pwsweather.com/ to send information to my Rachio sprinkler controller. Maybe that works with Rainwise?
Photo of Austin Ward

Austin Ward

  • 2 Posts
  • 0 Reply Likes
ok I didn't know about.... or I forgot about an api key. I have a pws and an api key that I accessed with the link that paul grace provided above.... sooooo what does it do... I see packages..... am I suppose to use the key and to purchase a package that I would desire? Guess I am late to the party. 
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 642 Posts
  • 91 Reply Likes
Hi, Austin!

The new PWS API key does this:
• Current observations from the PWS network
• 5 day daily forecast
• PWS historical data
• PWS lookup by geocode, zip code and location
• Call volume: 1500/day, 30/minute

The documentation for the APIs are here:  https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit

The key is free of charge.  No packages to purchase, no fees to pay, nada, nunca, hichi, nothing.  Just write the calls and use the data.

Victoria Gardner
victoria.gardner@ibm.com
Photo of Austin Ward

Austin Ward

  • 2 Posts
  • 0 Reply Likes
Did the update speed change on the wunderground dashboard? it used to update every 18 seconds. But now I have to hit refresh for it to update. 
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 643 Posts
  • 91 Reply Likes
If you have a PWS uploading to Weather Underground, but do not have an API key, you can send me your PWS id and let me know you'd like to get added to my email list to hear when the new keys are available.  

Victoria Gardner
victoria.gardner@ibm.com

Photo of Richard Nasto

Richard Nasto

  • 1 Post
  • 0 Reply Likes
I am new to the forum, so please excuse the lack of continuity.  I have been using my PWS for about 2 years and it's been uploading to WU for that time as well.  I wanted to pull info from my PWS for use on a personal "kiosk" to display my calendar, weather, etc.  Do I need an API for that?  If so, I will need one...how can I get one (since it seems there's been a lot of back and forth on this)...and, since it's just for my pulling data, is it free?  Thanks for the help...Rich
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 618 Posts
  • 87 Reply Likes
Hi, Richard!

One way to access that data is through the API, yes.  And yes, it is free for PWS uploaders.

To see how to get a key, please see the first response to this post on the forum:  https://apicommunity.wunderground.com/weatherapi/topics/end-of-feb-wu-api-update

Victoria Gardner
victoria.gardner@ibm.com
Photo of GlassBird Productions

GlassBird Productions

  • 1 Post
  • 0 Reply Likes
Hi

I am a PWS uploader and after check api documentation I find something strange. There is no decimal data for metric measures? temperature in celsius with no decimal info is absolute useless. Maybe  I not realize and I am not understanding well api documentation. For another hand, if I want to get max or min data for a entire month the only way is make a request to each day of the month and then check day by day.

Could you help me with this?

Thank you so much
(Edited)
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 618 Posts
  • 87 Reply Likes
Yes, there has been some discussion about this in one of the other threads.  We're hoping to have added precision for at least temperature to the API by the end of April.  

If you're trying to do monthly min/max on your own PWS, wouldn't it be easier to capture this on the way out?  Are you storing your own data?  

But if you're not capturing your own data on the way out, there is a 7-day historical data (see https://docs.google.com/document/d/16OCuOFUWG0CaZL3MjrvZhyZ4Y5zRsZ6otVInRPzPnFs/edit), which gives a high/low for the period.  

But if you want the exact high/low for the exact day in a calendar month for your own PWS, I would store it for each day and then compute as you go.  But perhaps I'm not grasping your use case.

--Victoria
Photo of Claude Felizardo

Claude Felizardo

  • 30 Posts
  • 6 Reply Likes
I use WU to confirm that my data is actually getting out.  I do capture data as it is collected but if there's a problem reaching the internet due to a router or ISP problem then checking my database won't help.  I also have a cronjob that runs in the late afternoon sends me a text and email of the HI/LO which includes links to check CWOP and WU web sites.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 618 Posts
  • 87 Reply Likes
The new PWS API is not going to be everything for everyone.  This may be one instance in which there isn't going to be a quick API call to answer the question.

--Victoria
Photo of Tom Rebman

Tom Rebman

  • 3 Posts
  • 0 Reply Likes
Hi Victoria,

Also a newbie here, so excuse if this has been already addressed.  In the API document you reference above, it indicates that PWS API should allow us to get forecast... however, when I send that request, I am getting 401 Unauthorized response.   Any insight as to why I'm not able to get forecasts?


Thanks,
-- Tom

Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 618 Posts
  • 87 Reply Likes
The PWS API has access to the 5-day forecast.  Many people have been confused by the documentation also mentioning other time lengths.  Only 5-day will work.  

If you are already only calling 5-day, please feel free to send me your call directly (with your API key removed), and I can help debug it.  Be sure to tell me why you're sending it, as I get a lot of mail and I don't always connect the dots between conversations in different platforms.

Or you can ask here (again, without exposing your API key).  

--Victoria
victoria.gardner@ibm.com
Photo of Tom Rebman

Tom Rebman

  • 3 Posts
  • 0 Reply Likes
Worked like a champ.  Thanks for the quick reply.  Of course I had tried the 7 day and 3 day previously :)

Warm regards,
-- Tom
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 618 Posts
  • 87 Reply Likes
=)  Always.  There must be a rule:  no matter what you try, the correct result is the last one.

--Victoria