frightanic
New Member
Posts: 35
Raspberry Pi: Yes
Other Device: OurWeather (ESP8266), lots of ESP8266/ESP32 modules
|
Post by frightanic on Apr 15, 2018 23:41:43 GMT -8
Too bad, it only lasted for 12h. Off to the post office now.
|
|
|
Post by SDL on Apr 17, 2018 10:01:38 GMT -8
Dang! It did sound like a smoking gun. Looking forward to fooling with your unit. We will send you a new board ASAP when we get yours (before I start testing).
BP
|
|
|
Post by SDL on Apr 24, 2018 15:42:09 GMT -8
Fritanic,
We have your board. We will send a new one out tomorrow and put this into the testing queue.
BP
|
|
frightanic
New Member
Posts: 35
Raspberry Pi: Yes
Other Device: OurWeather (ESP8266), lots of ESP8266/ESP32 modules
|
Post by frightanic on May 22, 2018 9:56:58 GMT -8
I installed the replacement board yesterday and immediately updated to v31. It's been running flawlessly* for +24h. Looks promising. * The temp readings between the two sensors are sometimes 2°C apart (currently running in an open case in the shelter) Update: the 26th hour killed it, same behavior. It's pingable, telnet to 80 works but other than that it remains frozen. Sorry for all the trouble; I'm at my wits end and will put this project aside for a while.
|
|
|
Post by SDL on May 22, 2018 13:02:29 GMT -8
Frightanic,
When you get back at this, let's talk again. Something is different about your setup than our (and many other people's) setup. Something is different. Ours works perfectly for long long periods of time.
BP
|
|
frightanic
New Member
Posts: 35
Raspberry Pi: Yes
Other Device: OurWeather (ESP8266), lots of ESP8266/ESP32 modules
|
Post by frightanic on May 26, 2019 23:00:46 GMT -8
After the unit has been sitting idly in a corner of my daughter's room and collecting dust for a year I finally set up to give it another go. I briefly scanned this and the previous thread to refresh my memory on what tests I had carried out previously. I upgraded to version 035 -> same results. I compiled 035 against the ESP8266 Arduino core 2.5.2 (latest) myself and flashed it to the unit -> same results. I can reliably cause the system to freeze, with it still being pingable, when I use OurWeatherPage.html from the browser. Retrieving data works a couple of times, then it freezes. The last you see on the serial console is "Memory free:32216". I tested with both Chrome and Firefox. This does not happen when I fetch the data with curl. The system has been running smoothly all night with curl fetching data every 30s. I will continue to investigate why XHR requests from the browser cause the freeze and naked curl requests don't. UpdateI ran four more tests: - Call 192.168.0.49/FullDataString directly from the browser -> fails reliably after a few attempts.
- Do the same with Safari instead of Chrome/Firefox -> works fine
- Mimik a browser request by sending the exact same headers as the browser with curl (i.e. copy-as-cURL from browser) -> works just fine
- Up the ante by running c) every 4 seconds -> works just fine
[/ol][/ul] The command for d) is as follows:
watch -n 4 "curl -v 'http://192.168.0.49/FullDataString' \ -H 'Accept: application/json, text/javascript, */*; q=0.01' \ -H 'Referer: http://www.switchdoc.com/OurWeatherPage.html' \ -H 'Origin: http://www.switchdoc.com' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3750.0 Iron Safari/537.36' \ --compressed"
|
|
kiwx
Junior Member
Posts: 65
|
Post by kiwx on May 27, 2019 5:50:10 GMT -8
Are you using the provided power source with your unit? It's a 1A brick. I was experiencing many issues just as you have described and changed it out for a 2.4A source. That was 3 months ago now and the unit has been working reliably since.
Also, another issue I found was with the Wifi strength. Doc posted a fixed thread at the top of the board on how to extend wifi by attaching an antenna. I have not tried that, but I found that if I set the weatherboard with built on antenna vertically, it solved my connection issues. I also extended all sensors wires as far away from the board as I could stretch them. This may not be possible if you are using an outdoor box.
Just some thoughts. Hope this will help your issues as it did mine.
Thanks.
PS: I also put a HomeKit power switch on my device, just so I wouldn't have to climb up and reset it when it did have issues. I have now set it to reboot at 12:00am everyday to reset my rain totals in Blynk.
|
|
|
Post by SDL on May 28, 2019 11:17:58 GMT -8
Try using a different browser to run the Admin page. Look a the threads that are on the site that talk about browser problems. If I remember right, some ad blockers screw with REST commands (BHOs?)
By all means, try kiwi's solution too. Please report back on that.
BP
|
|
frightanic
New Member
Posts: 35
Raspberry Pi: Yes
Other Device: OurWeather (ESP8266), lots of ESP8266/ESP32 modules
|
Post by frightanic on May 28, 2019 11:38:53 GMT -8
As described in the previous post the behavior is browser dependent - at least in my setup. BHOs, however, are only found in Microsoft Internet Explorer 4-11. In the meantime I was looking, and still am, at how aREST implements their callbacks. I found github.com/marcoschwartz/aREST/issues/83 which talks about very similar behavior. For the heck of it I also upgraded 2.7.3 that you maintain in your repo to the latest 2.8.0 but that made things even worse (should be a drop-in replacement, though). I'll continue digging into this. Are you using the provided power source with your unit? It's a 1A brick. I was experiencing many issues just as you have described and changed it out for a 2.4A source. I'm using an adapter that delivers 2A at 5V. However, in the past I also experimented with stronger ones just to be on the extremely safe side. I never found it necessary to extend the antenna on any of my ESP8266 devices so far.
|
|
|
Post by SDL on May 28, 2019 15:26:37 GMT -8
It is still very browser related. Which browser are you using?
It is my guess that this is a problem with the ESP8266 OS that is interacting with the aREST interface.
We don't have enough information to conclude anything yet. Still listening.
BP
|
|