Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Can multiple NTP servers be configured and used? #77025

    Paul
    Participant

    Actually I may have answered my own question…

    Just re-flashed my firmware to defaults and re-loaded config…
    Removed any reference to NTP from GUI and YES it works!

    in reply to: Can multiple NTP servers be configured and used? #77023

    Paul
    Participant

    @ Ray
    I have a question..

    Looking at source code online from this link: https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/opensprinkler_server.cpp#L2146

    I see the following in the code:

    uint16_t port = (uint16_t)(os.iopts[IOPT_HTTPPORT_1]<<8) + (uint16_t)os.iopts[IOPT_HTTPPORT_0];
    port = (port==8000) ? 8888:8000; // use a different port than http port
    UDP *udp = new EthernetUDP();

    #define NTP_PACKET_SIZE 48
    #define NTP_PORT 123
    #define N_PUBLIC_SERVERS 5

    static const char* public_ntp_servers[] = {
    “time.google.com”,
    “time.nist.gov”,
    “time.windows.com”,
    “time.cloudflare.com”,
    “pool.ntp.org” };
    static uint8_t sidx = 0;

    static byte packetBuffer[NTP_PACKET_SIZE];
    byte ntpip[4] = {
    os.iopts[IOPT_NTP_IP1],
    os.iopts[IOPT_NTP_IP2],
    os.iopts[IOPT_NTP_IP3],
    os.iopts[IOPT_NTP_IP4]};

    Just wondering does this mean IF i DO NOT set up a static specific IP within the config, the firmware will by defualt cycle through the online sources listed?

    in reply to: Rain sensor at OpenSprinkler v3 #66282

    Paul
    Participant

    Thanks for the info! I will look into that as a solution!

    in reply to: Rain sensor at OpenSprinkler v3 #66216

    Paul
    Participant

    I also have a 3.0 unit I just set up and I was wondering if anyone has had any experience with a Netatmo Rain gauge. I am currently using the built in weather data which for the most part works great.. Just wanted to see if I can integrate a physical rain gauge so that IF a certain amount of rain fall in a day it can stop the sprinkler from running?

    Thanks in advance and LOVE the product!

Viewing 4 posts - 1 through 4 (of 4 total)