Jump to content

Rain accumulation missing in forecast?


Andy P
Go to solution Solved by bpwwer,

Recommended Posts

Posted (edited)

Seems that the rain accumulation is always showing zero? Should be 68.7 mm. Must be lost somewhere? The other values all seem ok.

Here is the result of the direct api which uses the same values as the configuration of the node server. Not sure why rain is given in mm instead of inches but it is the same on the web page (I added that picture later so the values don't match exactly):

api.openweathermap.org/data/2.5/onecall?lat=39.xxx&lon=-75,xxxx&appid=xxxxxxxxxxxxxxxxxxxxxxxx&units=imperial

            "dt": 1702915200,
            "sunrise": 1702901961,
            "sunset": 1702935620,
            "moonrise": 1702918200,
            "moonset": 1702959240,
            "moon_phase": 0.21,
            "temp": {
                "day": 48.61,
                "min": 36.73,
                "max": 56.57,
                "night": 36.73,
                "eve": 43.52,
                "morn": 55.53
            },
            "feels_like": {
                "day": 41.38,
                "night": 28.69,
                "eve": 36.77,
                "morn": 55.38
            },
            "pressure": 990,
            "humidity": 85,
            "dew_point": 44.24,
            "wind_speed": 22.21,
            "wind_deg": 297,
            "wind_gust": 36.62,
            "weather": [
                {
                    "id": 502,
                    "main": "Rain",
                    "description": "heavy intensity rain",
                    "icon": "10d"
                }
            ],
            "clouds": 100,
            "pop": 1,
            "rain": 68.7,
            "uvi": 0.21

 

Screenshot 2023-12-17 075941.png

Screenshot 2023-12-17 080734.png

Edited by Andy P
Posted

Are there any warnings or errors in the log?

I think the only reason it would be displaying 0 is if something failed in the parsing.

Posted

Yes, there is an error in the debug log

Here are the relevant pieces of the log:

'daily': [{'dt': 1702828800, 'sunrise': 1702815524, 'sunset': 1702849199, 'moonrise': 1702830120, 'moonset': 1702868400, 'moon_phase': 0.17, 'temp': {'day': 48.83, 'min': 42.01, 'max': 54.05, 'night': 54.05, 'eve': 52.65, 'morn': 43.57}, 'feels_like': {'day': 44.42, 'night': 53.76, 'eve': 52.07, 'morn': 39.13}, 'pressure': 1021, 'humidity': 98, 'dew_point': 48.25, 'wind_speed': 13.78, 'wind_deg': 76, 'wind_gust': 33.51, 'weather': [{'id': 502, 'main': 'Rain', 'description': 'heavy intensity rain', 'icon': '10d'}], 'clouds': 100, 'pop': 1, 'rain': 15.32, 'uvi': 0.43}, 

2023-12-17 15:38:46,897 Thread-4   udi_interface      INFO     query:_query_forecast: Day = 0 - Forecast dt = 1702828800 2023-12-17 11:00:00
2023-12-17 15:38:46,897 Thread-4   udi_interface      WARNING  query:_query_forecast: Failed to parse forecasted rain/snow data.

2023-12-17 15:38:46,897 Thread-4   udi_interface      WARNING  query:_query_forecast: list indices must be integers or slices, not str

2023-12-17 15:38:46,916 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'CLIHUM', 'value': '98.0', 'uom': 22, 'text': None}]}
2023-12-17 15:38:46,916 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'BARPRES', 'value': '1021.0', 'uom': 117, 'text': None}]}
2023-12-17 15:38:46,917 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'DEWPT', 'value': '48.2', 'uom': 17, 'text': None}]}
2023-12-17 15:38:46,917 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV0', 'value': '54.0', 'uom': 17, 'text': None}]}
2023-12-17 15:38:46,917 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV1', 'value': '42.0', 'uom': 17, 'text': None}]}
2023-12-17 15:38:46,917 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV2', 'value': '44.4', 'uom': 17, 'text': None}]}
2023-12-17 15:38:46,917 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV14', 'value': '100.0', 'uom': 22, 'text': None}]}
2023-12-17 15:38:46,918 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV4', 'value': '13.8', 'uom': 48, 'text': None}]}
2023-12-17 15:38:46,918 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV19', 'value': '0.0', 'uom': 25, 'text': None}]}
2023-12-17 15:38:46,918 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV13', 'value': '502.0', 'uom': 25, 'text': None}]}
2023-12-17 15:38:46,918 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'UV', 'value': '0.4', 'uom': 71, 'text': None}]}
2023-12-17 15:38:46,919 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV8', 'value': '0.0', 'uom': 105, 'text': None}]}
2023-12-17 15:38:46,919 Thread-1   udi_interface.interface DEBUG    interface:_send: PUBLISHING {'set': [{'address': 'forecast_0', 'driver': 'GV9', 'value': '0.0', 'uom': 105, 'text': None}]}

Posted

I see the problem.  Should be fixed in version 3.1.7.  If you refresh the store listing it should show the new version and allow you to reinstall/update.

Thanks for reporting the problem.

  • Like 1
Posted

Thanks, Bob - Got the new version and the number is no longer zero! However, there is that problem with the units of measure I mentioned. It is not UOM 105 apparently, it is UOM 106 that is coming back from the openweathermap API even though imperial is specified, for some reason the api returns mm/day. Or else I am in trouble with 31 inches of rain coming tomorrow!

image.png.53842a2524220f810cab2555b4363d62.png

Posted

Bob, I didn't notice this yesterday, but now all three days are showing the same forecast number for rain. Looks like forecast day 0 has rain, forecast day 1 has snow and that causes a parse error which also causes the same value for rain to show up in the other two forecast days and the snow value shows up as zero.

Sorry, not high priority, but I'm sure you want this working right.

Andy

2023-12-18 06:10:23,119 Thread-4   udi_interface      INFO     query:_query_forecast: Day = 0 - Forecast dt = 1702915200 2023-12-18 11:00:002023-12-18 06:10:23,119 Thread-4   udi_interface      INFO     query:_query_forecast: Day = 1 - Forecast dt = 1703005200 2023-12-19 12:00:00
2023-12-18 06:10:23,119 Thread-4   udi_interface      WARNING  query:_query_forecast: Failed to parse forecasted rain/snow data.
2023-12-18 06:10:23,119 Thread-4   udi_interface      WARNING  query:_query_forecast: 'rain'

 

{'dt': 1702897822, 'sunrise': 1702901961, 'sunset': 1702935620, 'temp': 54.5, 'feels_like': 54.21, 'pressure': 986, 'humidity': 97, 'dew_point': 53.67, 'uvi': 0, 'clouds': 100, 'visibility': 4023, 'wind_speed': 16.11, 'wind_deg': 290, 'weather': [{'id': 501, 'main': 'Rain', 'description': 'moderate rain', 'icon': '10n'}], 'rain': {'1h': 3.16}}, 'daily': [{'dt': 1702915200, 'sunrise': 1702901961, 'sunset': 1702935620, 'moonrise': 1702918200, 'moonset': 1702959240, 'moon_phase': 0.21, 'temp': {'day': 47.37, 'min': 35.28, 'max': 57.52, 'night': 35.28, 'eve': 42.42, 'morn': 54.41}, 'feels_like': {'day': 39.97, 'night': 26.92, 'eve': 35.11, 'morn': 54.1}, 'pressure': 990, 'humidity': 83, 'dew_point': 42.44, 'wind_speed': 21.3, 'wind_deg': 313, 'wind_gust': 41.45, 'weather': [{'id': 502, 'main': 'Rain', 'description': 'heavy intensity rain', 'icon': '10d'}], 'clouds': 100, 'pop': 1, 'rain': 57.24, 'uvi': 0.74}, {'dt': 1703005200, 'sunrise': 1702988396, 'sunset': 1703022042, 'moonrise': 1703006040, 'moonset': 0, 'moon_phase': 0.25, 'temp': {'day': 36.9, 'min': 29.7, 'max': 37.58, 'night': 29.7, 'eve': 33.57, 'morn': 31.21}, 'feels_like': {'day': 27.66, 'night': 20.73, 'eve': 25, 'morn': 21.11}, 'pressure': 1017, 'humidity': 55, 'dew_point': 22.3, 'wind_speed': 16.13, 'wind_deg': 295, 'wind_gust': 29.19, 'weather': [{'id': 600, 'main': 'Snow', 'description': 'light snow', 'icon': '13d'}], 'clouds': 35, 'pop': 0.67, 'snow': 0.55, 'uvi': 1.4}, {'dt': 1703091600, 'sunrise': 1703074829, 'sunset': 1703108466, 'moonrise': 1703093880, 'moonset': 1703049900, 'moon_phase': 0.28, 'temp': {'day': 41.36, 'min': 28.45, 'max': 43.39, 'night': 33.98, 'eve': 35.6, 'morn': 28.67}, 'feels_like': {'day': 35.82, 'night': 28.6, 'eve': 30.43, 'morn': 21.51}, 'pressure': 1031, 'humidity': 43, 'dew_point': 20.53, 'wind_speed': 9.78, 'wind_deg': 310, 'wind_gust': 24.96, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': 4, 'pop': 0, 'uvi': 1.62}, {'dt': 1703178000, 'sunrise': 1703161260, 'sunset': 1703194892, 'moonrise': 1703181780, 'moonset': 1703140560, 'moon_phase': 0.32, 'temp': {'day': 45.28, 'min': 32.72, 'max': 45.28, 'night': 34.52, 'eve': 36.81, 'morn': 32.72}, 'feels_like': {'day': 41.04, 'night': 29.61, 'eve': 32.07, 'morn': 26.64}, 'pressure': 1029, 'humidity': 46, 'dew_point': 25.54, 'wind_speed': 8.41, 'wind_deg': 351, 'wind_gust': 18.77, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': 8, 'pop': 0, 'uvi': 1.54}, {'dt': 1703264400, 'sunrise': 1703247690, 'sunset': 1703281321, 'moonrise': 1703269740, 'moonset': 1703231160, 'moon_phase': 0.35, 'temp': {'day': 41.81, 'min': 31.06, 'max': 41.81, 'night': 35.89, 'eve': 35.98, 'morn': 31.06}, 'feels_like': {'day': 40.01, 'night': 32.43, 'eve': 35.98, 'morn': 26.2}, 'pressure': 1030, 'humidity': 42, 'dew_point': 20.52, 'wind_speed': 4.99, 'wind_deg': 5, 'wind_gust': 8.48, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'clouds': 65, 'pop': 0, 'uvi': 2}, {'dt': 1703350800, 'sunrise': 1703334117, 'sunset': 1703367751, 'moonrise': 1703358000, 'moonset': 1703321880, 'moon_phase': 0.39, 'temp': {'day': 39.4, 'min': 33.84, 'max': 40.17, 'night': 40.17, 'eve': 39.56, 'morn': 34.29}, 'feels_like': {'day': 36.93, 'night': 37.33, 'eve': 37.2, 'morn': 31.77}, 'pressure': 1027, 'humidity': 84, 'dew_point': 35.15, 'wind_speed': 4.21, 'wind_deg': 303, 'wind_gust': 9.78, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'clouds': 100, 'pop': 0, 'uvi': 2}, {'dt': 1703437200, 'sunrise': 1703420542, 'sunset': 1703454183, 'moonrise': 1703446560, 'moonset': 1703412540, 'moon_phase': 0.42, 'temp': {'day': 46.33, 'min': 36.43, 'max': 46.33, 'night': 36.91, 'eve': 38.82, 'morn': 36.43}, 'feels_like': {'day': 42.93, 'night': 36.91, 'eve': 36.41, 'morn': 31.51}, 'pressure': 1028, 'humidity': 64, 'dew_point': 34.7, 'wind_speed': 8.03, 'wind_deg': 4, 'wind_gust': 18.72, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': 4, 'pop': 0, 'uvi': 2}, {'dt': 1703523600, 'sunrise': 1703506966, 'sunset': 1703540618, 'moonrise': 1703535600, 'moonset': 1703503080, 'moon_phase': 0.46, 'temp': {'day': 45.27, 'min': 33.48, 'max': 45.27, 'night': 37.36, 'eve': 38.95, 'morn': 33.48}, 'feels_like': {'day': 43.18, 'night': 35.22, 'eve': 36.97, 'morn': 33.48}, 'pressure': 1027, 'humidity': 67, 'dew_point': 34.86, 'wind_speed': 4.27, 'wind_deg': 178, 'wind_gust': 5.26, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'clouds': 21, 'pop': 0, 'uvi': 2}],

Posted

@bpwwer Hi Bob,  I am on v3.1.4.  I thought all I had to do was to Restart the plugin and it would automatically upgrade to 3.1.8.  However, it appears I'm still on 3.1.4.  Do I need to re-install it?

@Andy P Thank you for bringing up this topic.  I've noticed for awhile that this was always zero. I just figured that's the way it was.  I'm happy to have better-minded folks in this forum who think of things that I don't!

Ross

  • Like 1
Posted (edited)

@Ross To upgrade go to the PG3 dashboard and select plugin store and select the plugin you want to upgrade, click on install and then click on  to reinstall here in the same slot.

Edited by tlightne
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...