• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Sunrise Sunset

    Scheduled Pinned Locked Moved Comments & Feedback
    8 Posts 2 Posters 619 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • skywatchS Offline
      skywatch
      last edited by

      Hi,

      Just thinking about it I wonder if this option needs an internet connection to function or if there is a built in table used?

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @skywatch
        last edited by jkandasa

        @skywatch IIRC, there is no service required internet in MyController V1.
        sunrise sunset too calculated locally based on the latitude and longitude.
        In MyController, we are using https://github.com/mikereedell/sunrisesunsetlib-java

        skywatchS 2 Replies Last reply Reply Quote 1
        • skywatchS Offline
          skywatch @jkandasa
          last edited by

          @jkandasa Thank you! 🙂

          1 Reply Last reply Reply Quote 0
          • skywatchS Offline
            skywatch @jkandasa
            last edited by

            @jkandasa I was thinking more on this, I suppose that without a RTC then it all depends on the accuracy of the 'fake clock' on the pi? I also assume that the pi needs NTP to update the clock at regular intervals to remain accurate.

            Maybe in version 2.0 we could add in an option for RTC module (they are cheap) and a menu for users to add regular NTP updates as per their own schedule?

            jkandasaJ 1 Reply Last reply Reply Quote 0
            • jkandasaJ Offline
              jkandasa @skywatch
              last edited by

              @skywatch I think it is better to add RTC on your RPI and ask RPI to update the clock from the RTC. This could be a universal solution.
              If you have more than one RPI, you can configure an NTP server on an RPI (an RPI that has RTC) and ask other RPI to get update from that RPI via NTP.

              Here is an example: https://thepihut.com/blogs/raspberry-pi-tutorials/17209332-adding-a-real-time-clock-to-your-raspberry-pi

              skywatchS 1 Reply Last reply Reply Quote 0
              • skywatchS Offline
                skywatch @jkandasa
                last edited by

                @jkandasa Thanks, I understand but was thinking that to make it simple for users in 2.0 an entry in settings with a checkbox for RTC attached and then a 'timer style' option for frequency of update and then say 2 boxes to enter the NTP wervers to try and update from.

                This way user only need to get RTC connected and recognised by pi and all the rest is taken care of in MyController....

                I also see that GPS time servers are getting cheaper so another option if 'off grid' accurate time is required.

                jkandasaJ 1 Reply Last reply Reply Quote 1
                • jkandasaJ Offline
                  jkandasa @skywatch
                  last edited by

                  @skywatch Sure, I will think of a possible option with MC.

                  skywatchS 1 Reply Last reply Reply Quote 1
                  • skywatchS Offline
                    skywatch @jkandasa
                    last edited by

                    @jkandasa Great stuff - another amazing new feature for V2.0! 🙂

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    0

                    Online

                    587

                    Users

                    529

                    Topics

                    3.4k

                    Posts
                    Copyright © 2015-2025 MyController.org | Contributors | Localization