Comments (6)
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.
from enviro.
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/
from enviro.
# 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
from enviro.
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?
from enviro.
Which NTP server is being used I'm getting red lights again flashing..
from enviro.
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.
from enviro.
Related Issues (20)
- Boot up reports version 0.0.9 when booting 0.0.10
- Continuous red blink on enviro weather HOT 2
- No adafruit.io key HOT 4
- Enviro Weather - Is wifi_ssid limited as number of characters? HOT 17
- Best way to run Enviro Indoor offline? HOT 2
- Error in Enviro Urban if set to never upload data
- remote force clock sync HOT 8
- Errors HOT 2
- Activity LED is always on HOT 6
- Enviro Urban won't work, LED always on, It says usb powered when it is powered by batteries. HOT 3
- Truncated WiFi password
- Enviro AQI Score HOT 2
- Rain and/or wind sensors causing Enviro Weather to die and clear RTC HOT 14
- Board crashes loading time from RTC with OSError: [Errno 22] EINVAL in init.py
- Weather board fails to upload every other reading HOT 4
- Enviro Grow failing when communicating with Home Assistant HOT 3
- Enviro Indoor not waking up on USB power HOT 1
- Enviro Grow and Enviro Indoor both cannot sync time
- Enviro weather MQTT with Mosuito on Hassio HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enviro.