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

    Sunrise Sunset

    Comments & Feedback
    2
    8
    177
    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.
    • skywatch
      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?

      jkandasa 1 Reply Last reply Reply Quote 0
      • jkandasa
        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

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

          @jkandasa Thank you! 🙂

          1 Reply Last reply Reply Quote 0
          • skywatch
            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?

            jkandasa 1 Reply Last reply Reply Quote 0
            • jkandasa
              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

              skywatch 1 Reply Last reply Reply Quote 0
              • skywatch
                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.

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

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

                  skywatch 1 Reply Last reply Reply Quote 1
                  • skywatch
                    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

                    1
                    Online

                    647
                    Users

                    506
                    Topics

                    3.3k
                    Posts

                    Copyright © 2015-2022 MyController.org | Contributors | Localization