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

Sunrise Sunset

Scheduled Pinned Locked Moved Comments & Feedback
8 Posts 2 Posters 801 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.
  • S Offline
    skywatch
    last edited by 22 Apr 2021, 19:56

    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?

    J 1 Reply Last reply 23 Apr 2021, 16:13 Reply Quote 0
    • J Offline
      jkandasa @skywatch
      last edited by jkandasa 23 Apr 2021, 16:13

      @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

      S 2 Replies Last reply 24 Apr 2021, 08:59 Reply Quote 1
      • S Offline
        skywatch @jkandasa
        last edited by 24 Apr 2021, 08:59

        @jkandasa Thank you! 🙂

        1 Reply Last reply Reply Quote 0
        • S Offline
          skywatch @jkandasa
          last edited by 25 Apr 2021, 19:53

          @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?

          J 1 Reply Last reply 26 Apr 2021, 01:22 Reply Quote 0
          • J Offline
            jkandasa @skywatch
            last edited by 26 Apr 2021, 01:22

            @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

            S 1 Reply Last reply 26 Apr 2021, 09:08 Reply Quote 0
            • S Offline
              skywatch @jkandasa
              last edited by 26 Apr 2021, 09:08

              @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.

              J 1 Reply Last reply 26 Apr 2021, 09:30 Reply Quote 1
              • J Offline
                jkandasa @skywatch
                last edited by 26 Apr 2021, 09:30

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

                S 1 Reply Last reply 26 Apr 2021, 10:46 Reply Quote 1
                • S Offline
                  skywatch @jkandasa
                  last edited by 26 Apr 2021, 10:46

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

                  1 Reply Last reply Reply Quote 0
                  8 out of 8
                  • First post
                    8/8
                    Last post

                  0

                  Online

                  620

                  Users

                  531

                  Topics

                  3.4k

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