Enviro-Weather not functioning correctly!

Hi,

I have 3 enviro boards, Enviro-Weather, Enviro-Urban and Enviro-Grow.
I’m asking why Enviro-Weather stop sending readings for no reasons apparently !
I don’t have any problems with Urban and Grow.
I reset the Weather board, installed new firmware and it’s working for only 1 reading then it stop afterward.

I launched main.py (via Thonny), I got a reading into Grafana (great !) then an error message occur :

Unable to connect to /dev/cu.usbmodem14201: [Errno 2] could not open port /dev/cu.usbmodem14201: [Errno 2] No such file or directory: ‘/dev/cu.usbmodem14201’**

**Process ended with exit code 1.

What’s happening for that board compare to the others :(.

Can someone help ?

Best regards,

P.S. Using Grafana along with Influxdb on RaspberryPI.Using Gr
MicroPyton firmware : MicroPython 9dfabcd-dirty on 2022-11-18; Raspberry Pi Pico W with RP2040

Log.txt :

2023-01-18 17:18:08 [debug / 122kB] > performing startup
2023-01-18 17:18:08 [info / 113kB] - wake reason: usb_powered
2023-01-18 17:18:08 [debug / 111kB] - turn on activity led
2023-01-18 17:18:08 [debug / 109kB] > 109 blocks free out of 212
2023-01-18 17:18:08 [debug / 106kB] > taking new reading
2023-01-18 17:18:09 [debug / 118kB] > caching reading for upload
2023-01-18 17:18:09 [info / 113kB] > 1 cache file(s) need uploading
2023-01-18 17:18:09 [info / 111kB] > connecting to wifi network ‘LAN@SYS’
2023-01-18 17:18:13 [info / 98kB] - ip address: 192.168.99.139
2023-01-18 17:18:13 [info / 91kB] > uploading cached readings to Influxdb bucket: dbweather
2023-01-18 17:18:14 [info / 106kB] - uploaded 2023-01-18T17_18_09Z.json
2023-01-18 17:18:14 [info / 104kB] > going to sleep
2023-01-18 17:18:14 [debug / 101kB] - clearing and disabling previous alarm
2023-01-18 17:18:14 [info / 99kB] - setting alarm to wake at 17:20pm
2023-01-18 17:18:14 [info / 97kB] - shutting down
2023-01-18 17:18:14 [debug / 94kB] - on usb power (so can’t shutdown). Halt and wait for alarm or user reset instead
2023-01-18 17:20:00 [debug / 120kB] - reset
2023-01-18 17:20:03 [debug / 115kB] > performing startup
2023-01-18 17:20:03 [info / 119kB] - wake reason: rtc_alarm
2023-01-18 17:20:03 [debug / 117kB] - turn on activity led
2023-01-18 17:20:03 [debug / 115kB] > 104 blocks free out of 212
2023-01-18 17:20:03 [debug / 113kB] > taking new reading
2023-01-18 17:20:03 [info / 108kB] - seconds since last reading: 115
2023-01-18 17:20:04 [debug / 100kB] > caching reading for upload
2023-01-18 17:20:05 [info / 95kB] > 1 cache file(s) need uploading
2023-01-18 17:20:05 [info / 120kB] > connecting to wifi network ‘LAN@SYS’
2023-01-18 17:20:09 [info / 104kB] - ip address: 192.168.99.139
2023-01-18 17:20:09 [info / 97kB] > uploading cached readings to Influxdb bucket: dbweather
2023-01-18 17:20:09 [info / 115kB] - uploaded 2023-01-18T17_20_05Z.json
2023-01-18 17:20:10 [info / 113kB] > going to sleep
2023-01-18 17:20:10 [debug / 110kB] - clearing and disabling previous alarm
2023-01-18 17:20:10 [info / 108kB] - setting alarm to wake at 17:25pm
2023-01-18 17:20:10 [info / 106kB] - shutting down
2023-01-18 17:20:10 [debug / 104kB] - on usb power (so can’t shutdown). Halt and wait for alarm or user reset instead

From the log, it looks like it successfully took two readings and uploaded them. The error looks like a Thonny issue, not the enviro board. Try restarting Thonny, and/or your computer; it gets confused sometimes.

good point, I disconnected it from MacBook Pro. I noticed the error message at the second reading. thank you for your time it’s appreciate.
I’m brand new to the ecosystem ;)

1 Like