Closed JohnRSim closed 4 months ago
# enviro config file
# you may edit this file by hand but if you enter provisioning mode
# then the file will be automatically overwritten with new details
provisioned = True
# enter a nickname for this board
nickname = 'fenoak-weather'
# network access details
wifi_ssid = 'FenOakStar2.4'
wifi_password = 'PimoroniTeamAreTheBest'
# how often to wake up and take a reading (in minutes)
reading_frequency = 15
# how often to trigger a resync of the onboard RTC (in hours)
resync_frequency = 168
# where to upload to ("http", "mqtt", "adafruit_io", "influxdb")
destination = 'adafruit_io'
# how often to upload data (number of cached readings)
upload_frequency = 10
# web hook settings
custom_http_url = ''
custom_http_username = ''
custom_http_password = ''
# mqtt broker settings
mqtt_broker_address = ''
mqtt_broker_username = ''
mqtt_broker_password = ''
# mqtt broker if using local SSL
mqtt_broker_ca_file = None
# adafruit ui settings
adafruit_io_username = 'JRSim_UIX'
adafruit_io_key = 'PimoroniTeamAreTheBest'
# influxdb settings
influxdb_org = ''
influxdb_url = ''
influxdb_token = ''
influxdb_bucket = ''
# grow specific settings
auto_water = False
moisture_target_a = 50
moisture_target_b = 50
moisture_target_c = 50
# compensate for usb power
usb_power_temperature_offset = 4.5
The issue is indeed failure to sync with NTP server, the main code loop will bail and wait for the next wakeup to try again while flashing the red light if the NTP sync fails. This is reflected by the log entry "! failed to synchronise clock"
The cause of this is the NTP module fails to populate the timestamp variable with a valid time, which aligns to log output " - failed to fetch time from NTP server".
Given you have a valid IP address logged above you have successfully connected to your AP and sent/received packets to get a DHCP response, so I would suggest this is a network issue between your AP/firewall/router preventing the Pico making the call to the NTP server rather than any wireless config you could adjust on the Pico.
Could you try setting an hotspot up on your phone and connecting to that instead of your main wireless, if that works then you can confirm it's that specific connection that has an issue.
I connected via mobile hotspot and that worked. Then reset and connected back to AP (Asus GT-AX6000) and I think it is now working.. just waiting and watch to see if it turns back on..
I have this connected via StarlinkISP maybe a temporary intermittent issue but didn't notice any connectivity issues?
Which NTP server is being used I'm getting red lights again flashing..
The failing function is calling this code (phew.ntp): https://github.com/pimoroni/phew/blob/b33a44bffeb1354b730b9572410232b10f6e62e9/phew/ntp.py So it looks like pool.ntp.org.
I had this problem (or a very similar one). I worked around it by changing the NTP server (line 4)
ntp_host = "uk.pool.ntp.org"
You could try picking one for your location and see if it works? https://www.ntppool.org/en/
Just received Enviro Weather ran through the update steps getting the red flashing light. I looked at the error logs would this be causing the error light to flash?
2024-02-03 14:26:56 [error / 89kB] - failed to fetch time from ntp server 2024-02-03 14:26:56 [error / 133kB] ! failed to synchronise clock
I ran through the troubleshooting guide but still getting this issue on both USB and powerpack. Can see the device logging into the router - don't think it's an issue connecting to the wifi.
I'll have a look at the config - is there anything else I should check? I've setup adafruit - no data appearing yet but haven't plugged in any sensors yet..
Thanks