Skip to content

Summertime #3

Open
Open

Description

@Oegtsgeest

Hi Markus,
Great library !
Found little issue while checking the examples:

In the second and third example (Simple_German_Summertime and Simple_German_Timing_Summertime there is a difference. The Due_RTC.timing() function is called. Due_RTC.timing() function seems to be required to correctly return the summertime YES/NO value.
In the CPP there is indeed a call for the meztime variable,(mez =CET for non German speaking !) which is set in the Due_RTC.timing() function.
This explains why the Simple_German_Summertime.ino is not working correctly.
You may want to change the Summertime() function to avoid calling the meztime variable.

Activity

  1. MarkusLange commented on Mar 30, 2015

    @MarkusLange
    Owner

    Thanks for the reply,

    yes you are right there is something wrong, should remove the
    Due_RTC.timing() and change the Summertime() function to give the right
    value back without the need of the timing() function. Yeah and may I have
    to use only one language in the library for the variables, my bad. Thanks
    for showing me the issues in the library. ATM I have no DUE in my range may
    you can test the changes?

    BR

    Markus

    On Mon, Mar 30, 2015 at 12:50 PM, Oegtsgeest notifications@github.com
    wrote:

    Hi Markus,
    Great library !
    Found little issue while checking the examples:

    In the second and third example (Simple_German_Summertime and
    Simple_German_Timing_Summertime there is a difference. The Due_RTC.timing()
    function is called. Due_RTC.timing() function seems to be required to
    correctly return the summertime YES/NO value.
    In the CPP there is indeed a call for the meztime variable,(mez =CET for
    non German speaking !) which is set in the Due_RTC.timing() function.
    This explains why the Simple_German_Summertime.ino is not working
    correctly.
    You may want to change the Summertime() function to avoid calling the
    meztime variable.

    —
    Reply to this email directly or view it on GitHub
    #3.

  2. Oegtsgeest commented on Mar 30, 2015

    @Oegtsgeest
    Author

    Hi Markus,
    Thank you for your response.
    1.
    Yes, I would be glad to test the changes on my Due
    Do not expect very high level comments,due to limited Arduino C experience, but I will certainly give it a try to test and come up with suggestions
    2.
    A further remark on your library is the function Timezone. I do not quite understand this function.
    I saw it in the CPP file but not in the TXT file. What does this?

    brgds

  3. MarkusLange commented on Mar 31, 2015

    @MarkusLange
    Owner

    Point 1.
    Thanks thats really nice
    Point 2.
    The function timezone is mostly usefull in use with the unixtime with the timezone you can shift the unixtime (is set to greenwich GMT-0) to your localtime so if you use the timezone parameter the timestamp get added or subtracted the difference to your timezone in seconds so that you get a "personal unixtime" to use

  4. Oegtsgeest commented on Mar 31, 2015

    @Oegtsgeest
    Author

    Ok thx for your explanation.
    I'll wait for your new code to test

  5. MarkusLange commented on Apr 7, 2015

    @MarkusLange
    Owner

    So a new one is there.

  6. Oegtsgeest commented on Apr 8, 2015

    @Oegtsgeest
    Author

    Hi Markus,
    1.The "Simple_German_Summertime and Simple_German_Timing_Summertime" does not check for Summertime any more. After correcting this by using the old version of this file, your latest changes checked out well. Compliments.
    2. I could not understand the dst_followup() function. It does not return a value.
    best regards

  7. MarkusLange commented on Apr 8, 2015

    @MarkusLange
    Owner

    Yes I deleted the old examples for the new one. The dst_followup() function is in use for the german summertime instead, this function checks the date and time and changed the clock if necessary when it goes from summer- to wintertime ot the other way. So I changed some minor things inside for the new function. Hope this does it better

  8. kapyaar commented on Jun 1, 2015

    @kapyaar

    Hi Marcus,

    You may like the timezone library by Christensen. this could make the library a whole lot more generic, as opposed to support for summertime for Germany only. :)
    https://github.com/JChristensen/Timezone

  9. MarkusLange commented on Jun 4, 2015

    @MarkusLange
    Owner

    Yeah youre fully right I was thinking the same, will take a closer look next time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions