pimoroni / enviro

MIT License
101 stars 79 forks source link

Stuck getting readings - firmware problems #179

Closed sdmeers closed 1 year ago

sdmeers commented 1 year ago

Just getting started with new Enviro Weather board - reading data to a custom http endpoint running on a Flask Server on a Raspberry Pi Webserver . All worked well out of the box and sensor readings successfully received at the endpoint. I decided to upgrade to firmware 0.0.9. Provisioning was all normal but completely unable to get any readings at the end-point. Log (pasted below) doesn't seem to have any entries after provisioning so struggling to troubleshoot what's going on. Tried a AdaFruit Endpoint as well but again no data.

Decided to revert to 0.0.2 - firmware update all straightforward but can't get the Pico to enter provisioning mode. Have tried 0.0.8 and various other workarounds but am pretty stuck on how to get back to a functional state - grateful for any help!

2021-01-01 00:00:02 [error / 121kB] > missing or corrupt config.py no module named 'config' 2021-01-01 00:00:02 [info / 119kB] > entering provisioning mode 2021-01-01 00:00:02 [info / 113kB] > auto detecting board type 2021-01-01 00:00:02 [info / 111kB] - weather 2021-01-01 00:00:02 [info / 109kB] > going into access point mode 2021-01-01 00:00:05 [info / 107kB] - 192.168.4.1 2021-01-01 00:00:05 [info / 105kB] > starting dns server... 2021-01-01 00:00:06 [info / 103kB] > starting catch all dns server on port 53 2021-01-01 00:00:06 [info / 101kB] > creating web server... 2021-01-01 00:00:06 [info / 96kB] > waiting for a client to connect 2021-01-01 00:03:08 [info / 118kB] - client connected! (b'P\xebq$\xf6\x03',) 2021-01-01 00:03:08 [info / 116kB] > running provisioning application... 2021-01-01 00:03:08 [info / 114kB] > starting web server on port 80 2021-01-01 00:03:08 [info / 103kB] > GET / (301 Moved Permanently) [249ms] 2021-01-01 00:03:09 [info / 93kB] > GET / (301 Moved Permanently) [247ms] 2021-01-01 00:03:11 [info / 116kB] > GET / (301 Moved Permanently) [71ms] 2021-01-01 00:03:14 [info / 89kB] > GET / (301 Moved Permanently) [142ms] 2021-01-01 00:03:15 [info / 78kB] > GET / (301 Moved Permanently) [232ms] 2021-01-01 00:03:19 [info / 87kB] > GET /wrong-host-redirect (200 OK) [149ms] 2021-01-01 00:03:20 [debug / 96kB] > parsed template: enviro/html/header.html (took 19 ms) 2021-01-01 00:03:20 [debug / 99kB] > parsed template: enviro/html/footer.html (took 8 ms) 2021-01-01 00:03:20 [debug / 96kB] > parsed template: enviro/html/welcome.html (took 303 ms) 2021-01-01 00:03:20 [info / 94kB] > GET /provision-welcome (200 OK) [604ms] 2021-01-01 00:03:21 [info / 82kB] > GET /images/pirate-logo.svg (200 OK) [785ms] 2021-01-01 00:03:21 [info / 75kB] > GET /images/logo-weather.svg (200 OK) [875ms] 2021-01-01 00:03:21 [info / 110kB] > GET /images/guide-qr-code.svg (200 OK) [1013ms] 2021-01-01 00:03:21 [info / 104kB] > GET /images/photo-weather.jpg (200 OK) [1120ms] 2021-01-01 00:03:22 [debug / 74kB] > parsed template: enviro/html/header.html (took 18 ms) 2021-01-01 00:03:22 [debug / 103kB] > parsed template: enviro/html/header-mini.html (took 22 ms) 2021-01-01 00:03:22 [debug / 94kB] > parsed template: enviro/html/footer.html (took 7 ms) 2021-01-01 00:03:22 [debug / 91kB] > parsed template: enviro/html/provision-step-1-nickname.html (took 315 ms) 2021-01-01 00:03:22 [info / 89kB] > GET /provision-step-1-nickname (200 OK) [490ms] 2021-01-01 00:03:23 [info / 90kB] > GET /images/pirate-logo.svg (200 OK) [498ms] 2021-01-01 00:03:23 [info / 88kB] > GET /images/logo-weather.svg (200 OK) [585ms] 2021-01-01 00:03:23 [info / 82kB] > GET /images/guide-qr-code.svg (200 OK) [689ms] 2021-01-01 00:03:23 [info / 78kB] > GET / (301 Moved Permanently) [291ms] 2021-01-01 00:03:31 [info / 105kB] > POST /provision-step-1-nickname (301 Moved Permanently) [408ms] 2021-01-01 00:03:31 [debug / 75kB] > parsed template: enviro/html/header.html (took 20 ms) 2021-01-01 00:03:31 [debug / 70kB] > parsed template: enviro/html/header-mini.html (took 10 ms) 2021-01-01 00:03:31 [debug / 89kB] > parsed template: enviro/html/footer.html (took 10 ms) 2021-01-01 00:03:32 [debug / 86kB] > parsed template: enviro/html/provision-step-2-wifi.html (took 428 ms) 2021-01-01 00:03:32 [info / 83kB] > GET /provision-step-2-wifi (200 OK) [575ms] 2021-01-01 00:03:33 [info / 92kB] > GET /networks.json (200 OK) [1054ms] 2021-01-01 00:03:33 [info / 72kB] > GET /images/pirate-logo.svg (200 OK) [1301ms] 2021-01-01 00:03:33 [info / 70kB] > GET /images/logo-weather.svg (200 OK) [1395ms] 2021-01-01 00:03:33 [info / 66kB] > GET /images/guide-qr-code.svg (200 OK) [1481ms] 2021-01-01 00:03:39 [info / 65kB] > GET / (301 Moved Permanently) [26ms] 2021-01-01 00:03:53 [info / 75kB] > POST /provision-step-2-wifi (301 Moved Permanently) [195ms] 2021-01-01 00:03:53 [info / 69kB] > GET / (301 Moved Permanently) [278ms] 2021-01-01 00:03:53 [debug / 87kB] > parsed template: enviro/html/header.html (took 58 ms) 2021-01-01 00:03:54 [debug / 82kB] > parsed template: enviro/html/header-mini.html (took 10 ms) 2021-01-01 00:03:54 [debug / 97kB] > parsed template: enviro/html/footer.html (took 11 ms) 2021-01-01 00:03:54 [debug / 94kB] > parsed template: enviro/html/provision-step-3-logging.html (took 349 ms) 2021-01-01 00:03:54 [info / 92kB] > GET /provision-step-3-logging (200 OK) [642ms] 2021-01-01 00:03:54 [info / 98kB] > GET /images/logo-weather.svg (200 OK) [239ms] 2021-01-01 00:03:54 [info / 74kB] > GET /images/pirate-logo.svg (200 OK) [574ms] 2021-01-01 00:03:55 [info / 69kB] > GET /images/guide-qr-code.svg (200 OK) [665ms] 2021-01-01 00:04:01 [info / 69kB] > POST /provision-step-3-logging (301 Moved Permanently) [198ms] 2021-01-01 00:04:01 [debug / 75kB] > parsed template: enviro/html/header.html (took 20 ms) 2021-01-01 00:04:01 [debug / 70kB] > parsed template: enviro/html/header-mini.html (took 9 ms) 2021-01-01 00:04:01 [debug / 73kB] > parsed template: enviro/html/footer.html (took 8 ms) 2021-01-01 00:04:01 [debug / 70kB] > parsed template: enviro/html/provision-step-4-destination.html (took 456 ms) 2021-01-01 00:04:01 [info / 68kB] > GET /provision-step-4-destination (200 OK) [575ms] 2021-01-01 00:04:01 [info / 79kB] > GET /images/logo-weather.svg (200 OK) [368ms] 2021-01-01 00:04:02 [info / 104kB] > GET /images/pirate-logo.svg (200 OK) [508ms] 2021-01-01 00:04:02 [info / 99kB] > GET /images/guide-qr-code.svg (200 OK) [595ms] 2021-01-01 00:04:17 [info / 103kB] > POST /provision-step-4-destination (301 Moved Permanently) [218ms] 2021-01-01 00:04:17 [debug / 85kB] > parsed template: enviro/html/header.html (took 77 ms) 2021-01-01 00:04:18 [debug / 79kB] > parsed template: enviro/html/header-mini.html (took 9 ms) 2021-01-01 00:04:18 [debug / 71kB] > parsed template: enviro/html/footer.html (took 7 ms) 2021-01-01 00:04:18 [debug / 68kB] > parsed template: enviro/html/provision-step-5-done.html (took 409 ms) 2021-01-01 00:04:18 [info / 66kB] > GET /provision-step-5-done (200 OK) [696ms] 2021-01-01 00:04:18 [info / 108kB] > GET /images/logo-weather.svg (200 OK) [124ms] 2021-01-01 00:04:18 [info / 83kB] > GET /images/pirate-logo.svg (200 OK) [423ms] 2021-01-01 00:04:19 [info / 79kB] > GET /images/guide-qr-code.svg (200 OK) [502ms] 2021-01-01 00:04:25 [info / 81kB] > GET / (301 Moved Permanently) [103ms]

sdmeers commented 1 year ago

Update: now up and running with v0.0.9. Difficult to pin down what the problem was but it seemed WiFi related - router reset may have helped.