Announcement

Collapse
No announcement yet.

Reduce wu api calls

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Reduce wu api calls

    i'm playing with the wu forecast. I use the development api license. I know got some warnings from wu that the application has to many api call . 500 is aloud but the amount of call is eg 508. Is it possible to reduce the amount of calls a day?

    #2
    I just saw this. Forecast data requests should be low rate of perhaps 50 per day. Current conditions are more frequent, especially if wind is used as an inhibit. When I get back next week I will evaluate myself.

    Comment


      #3
      I monitored each request to WeatherUnderground and WeatheUnderground Forecast with the following. Forecast every 30 minutes. Current conditions every minute.

      Code:
      WU  5/23/2017 3:08:01 PM
      WU  5/23/2017 3:09:01 PM
      WU  5/23/2017 3:10:01 PM
      WU  5/23/2017 3:11:01 PM
      WU  5/23/2017 3:12:01 PM
      WU  5/23/2017 3:13:01 PM
      WU  5/23/2017 3:14:01 PM
      WU  5/23/2017 3:15:01 PM
      WU  5/23/2017 3:16:01 PM
      WU  5/23/2017 3:23:01 PM
      WU  5/23/2017 3:24:01 PM
      WU  5/23/2017 3:25:01 PM
      WU  5/23/2017 3:26:01 PM
      WU  5/23/2017 3:27:01 PM
      WU  5/23/2017 3:28:01 PM
      WU  5/23/2017 3:29:01 PM
      WU  5/23/2017 3:30:01 PM
      WU  5/23/2017 3:31:01 PM
      WUF 5/23/2017 3:34:01 PM
      WU  5/23/2017 3:37:01 PM
      WU  5/23/2017 3:38:01 PM
      WU  5/23/2017 3:39:01 PM
      WU  5/23/2017 3:40:01 PM
      WU  5/23/2017 3:41:01 PM
      WU  5/23/2017 3:42:01 PM
      WU  5/23/2017 3:43:01 PM
      WU  5/23/2017 3:44:01 PM
      WU  5/23/2017 3:45:01 PM
      WU  5/23/2017 3:46:01 PM
      WU  5/23/2017 3:47:01 PM
      WU  5/23/2017 3:53:01 PM
      WU  5/23/2017 3:54:01 PM
      WU  5/23/2017 3:55:01 PM
      WU  5/23/2017 3:56:01 PM
      WU  5/23/2017 3:57:01 PM
      WU  5/23/2017 3:58:01 PM
      WU  5/23/2017 3:59:01 PM
      WU  5/23/2017 4:00:01 PM
      WU  5/23/2017 4:01:01 PM
      WU  5/23/2017 4:07:01 PM
      WUF 5/23/2017 4:07:01 PM
      WU  5/23/2017 4:08:04 PM
      WU  5/23/2017 4:09:01 PM
      WU  5/23/2017 4:10:01 PM
      WU  5/23/2017 4:11:01 PM
      WU  5/23/2017 4:12:01 PM
      WU  5/23/2017 4:13:01 PM
      WU  5/23/2017 4:14:01 PM
      WU  5/23/2017 4:15:01 PM
      WU  5/23/2017 4:16:01 PM
      WU  5/23/2017 4:17:01 PM
      WU  5/23/2017 4:23:01 PM
      WU  5/23/2017 4:24:01 PM
      WU  5/23/2017 4:25:01 PM
      WU  5/23/2017 4:26:01 PM
      WU  5/23/2017 4:27:01 PM
      WU  5/23/2017 4:28:01 PM
      WU  5/23/2017 4:29:01 PM
      WU  5/23/2017 4:30:01 PM
      WU  5/23/2017 4:31:01 PM
      WU  5/23/2017 4:38:01 PM
      WU  5/23/2017 4:39:01 PM
      WU  5/23/2017 4:40:01 PM
      WUF 5/23/2017 4:40:01 PM
      WU  5/23/2017 4:41:01 PM
      WU  5/23/2017 4:42:01 PM

      Comment


        #4
        Thnx . I will try to find it in my log files to see if it is the same

        Comment


          #5
          I attached the debug file . What it looks like that the service GetWUForecast is called every minute. I'm not sure that it is this service. mcsSprinklers_GeneralDebug27-5-2017_00_00_00.zip

          Comment


            #6
            It tries every minute until a successful download occurs. If it is not then it will try again one minute later. Take a look at \data\mcsSprinklers\download1.txt for the following:
            Code:
            observation_time_rfc822":
            In the debug I can see the first 100 characters of the download. I cannot determine if the segmentg is present. Here is a segment of one that I recently downloaded with the observation time text at the bottom

            Code:
             "features": {
              "conditions": 1
              ,
              "forecast7day": 1
              }
            	}
              ,	"current_observation": {
            		"image": {
            		"url":"http://icons.wxug.com/graphics/wu2/logo_130x80.png",
            		"title":"Weather Underground",
            		"link":"http://www.wunderground.com"
            		},
            		"display_location": {
            		"full":"Ottawa International Airport, Ontario",
            		"city":"Ottawa International Airport",
            		"state":"ON",
            		"state_name":"Ontario",
            		"country":"CA",
            		"country_iso3166":"CA",
            		"zip":"00000",
            		"magic":"75",
            		"wmo":"71628",
            		"latitude":"45.31999969",
            		"longitude":"-75.66999817",
            		"elevation":"114.0"
            		},
            		"observation_location": {
            		"full":"Ottawa International, ",
            		"city":"Ottawa International",
            		"state":"",
            		"country":"CA",
            		"country_iso3166":"CA",
            		"latitude":"45.31999969",
            		"longitude":"-75.66999817",
            		"elevation":"374 ft"
            		},
            		"estimated": {
            		},
            		"station_id":"CYOW",
            		"observation_time":"Last Updated on May 27, 10:00 PM EDT",
            		"observation_time_rfc822":"Sat, 27 May 2017 22:00:00 -0400",
            		"observation_epoch":"1495936800"

            Comment

            Working...
            X