NTP & tz_dst setting without Internet access

  • I have some Shelly device in a no-internet environment. However, there is a local NTP server available and I configured the shelly via the API like this:

    Code
    curl "$SHELLYIP/settings?tzautodetect=false&tz_dst=1&timezone=Europe/Berlin&lat=52.5&lng=13.4&sntp_server=10.0.0.1"

    The time (and DST) is correct and everything works. However, I'm greeted all the time with the message "Could not get the Time zone list! There is no Internet connection!" - which is a bit weird, because I disabled the automatic timezone detection? Is there something else I should configure or is this simply a message that will always appear if there is no internet access?

    Further, I'm not sure if the setting tz_dst means the device will stay forever on DST or does it still switches back to normal time (i.e. this year on the 30th of October)?

    Thanks in advance!

    2 Mal editiert, zuletzt von reox42 (14. Juni 2022 um 07:10)

  • However, I'm greeted all the time with the message "Could not get the Time zone list! There is no Internet connection!"

    This is probably just the Javascript UI which is complaining.. is the computer, which was used to check the webinterface, allowed to connect to the internet?

    >100 Shellies, darunter so gut wie alles was der Hersteller produziert hat. ;)
    :!: ich beantworte grundsätzlich keine Fragen per persönlicher Nachricht:!:

  • yes, that PC should have had internet access. Is the JS UI checking for internet access as well?

    Not sure but probaly yes.. the time on the top right is properly set?
    It's also possibly related to a Javascript / ADBlocker (Browser Extension).

    >100 Shellies, darunter so gut wie alles was der Hersteller produziert hat. ;)
    :!: ich beantworte grundsätzlich keine Fragen per persönlicher Nachricht:!:

  • Yes, the time is working fine. Also the timezone settings are correct (If i set it to auto, I end up with UST instead - which is to be expected). I also think that it is just an cosmetic error.

    But what about the summer time setting? If I set Summer time to ON (tz_dst=1), does it mean summer time is applied when required and it switches back to standard time after summer? Because I read somewhere else that you must do the switch manually if you do not use the auto setting, which would be a PITA...