0 votes
in WeatherStationClassic by (120 points)

My project uses recorded temperature data as well as forecast temperature.  Wunderground seems like the best source.  I discovered the hard way that I need a streaming parser! I had a lot of crashes before I fave up.  Your library seems ideal.

The github's Hourly example serial output is not the behavior I expected. Wunderground Hourly produces 36 strings. In other words, it looks 36 hours ahead. The example displays only 24 hours of the 36 and omitting the 12 hours closes to current time.  Unfortunately, These are the hours I need!  Also, they are presented in an odd order. 

This does not appear to be easily 'fixable' in the example. Setting WGHourly hourlies[24]; to [36] results in a crash. Changing for (int i = 0; i < 24; i++) to (int i = 35; i > 12; i--) without changing WGHourly. results in no output.

I think this is a problem with the library code rather than with the example.

Also localization using state / city works fine (as in the existing example). Localization using PWS also works fine, I could not get ZMW to work at all. This is not a big problem for me since the other two methods are okay (my weather station is KCAORANG21).

I should have been able to fix these these issues myself but so far I have not found the problems.

I am stumped. Can you help?

1 Answer

0 votes
by (3.6k points)

Did you change the array definition from 24 to 36, the crash was probably due to an attempt to access an array out of bounds.

You could use the ESP diagnostics / Exception tracing tool to pin-point the exact problem in your code: https://github.com/me-no-dev/EspExceptionDecoder

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...