GithubHelp home page GithubHelp logo

Comments (6)

sjefferson99 avatar sjefferson99 commented on August 23, 2024 1

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.

daviestim avatar daviestim commented on August 23, 2024 1

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.

JohnRSim avatar JohnRSim commented on August 23, 2024
# 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.

JohnRSim avatar JohnRSim commented on August 23, 2024

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.

JohnRSim avatar JohnRSim commented on August 23, 2024

Which NTP server is being used I'm getting red lights again flashing..

from enviro.

sjefferson99 avatar sjefferson99 commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.