You could preload a year's(or 10 years) worth of sunrise sundown times and reduce the need for as many updates

Yes indeed that could be done. It is not especially difficult to calculate them either.

A side benefit of having the RPi call in is that the last state it put the curtains into can be seen on the web interface. Some family members are rather concerned that these curtains will never work correctly because of the poor experience we have had with the timer that is controlling them presently. Being able to see the time they last closed or opened might relieve some worry.

There is also the issue of opening at 8:30am and not at sunrise. My blind uncle's guide dog enjoys barking loudly at the children going to the school opposite...by 8:30am most of the children are safely installed. It is quite possible that the curtains might be required to open earlier during school holidays so keeping it flexible seems sensible.


In reply to Re^4: Continuous or timed? by Bod
in thread Continuous or timed? by Bod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.