Giter Club home page Giter Club logo

arduino-rtctime's People

Contributors

mrwgx3 avatar smz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arduino-rtctime's Issues

Example does not compile with ESP8266 for Arduino

You have listed that the library Supports esp8266. Maybe it does but I can't get your example to compile. Some minor problems that I have dealt with, some dependencies that are not part of the ESP8266-Arduino platform.

In RTCtimeUtils.h I have had to include #include

// ------> I M P O R T A N T ! <------
// We can set our Time Zone and initialize the <time.h> library with it
// Initialization performed later, using the standard set_zone() function.

set_zone() is does not seem to be a standard function under ESP8266. So I commented it out in order to try and get further in the compile.

RTCtime_Example:197: error: 'isotime' was not declared in this scope

       strcpy(utc_timestamp, isotime(&utc_tm));

Another AVR dependency. After commented out all of those lines.

error: there are no arguments to 'mk_gmtime' that depend on a template parameter, so a declaration of 'mk_gmtime' must be available [-fpermissive]

       return mk_gmtime(&now);
                                              ^

And that is as far as I can get. I am not a programmer just a hacker.

Things to do:

  • Have a version of SetTime() taking a time_t value instead of a "struct_tm"
  • Have a version of GetTime returning a "struct tm" instead of a time_t value
  • Add more examples for enhanced features
  • Add support for more hardware

Testing and discussion

This issue is now locked and kept open only for announcements

If you find a real issue (a.k.a. "bug"), please open a new issue or push a PR if you have one ready.

@keyeh and @Makuna,

I added examples to my library: I will be really grateful if you could give a look/ride at it and at the whole library.

I only have an Uno and a DS3231, so any test with different hardware will be particularly useful.

Any advice/criticism/correction is wholeheartedly welcome.

Thanks!

Add documentation

i had to hardly browse the .h file to learn how to fully use this library, so...

please make a public functions list with parameters and maybe a brief explanation

please indicate also some other included libraries (like time.h for example) to go to find additional documentation there

thanks for your work

DUE complie errors

Has anyone tried to get this library working with a DUE R3?

I've tried adding from the Library Manager and manually from a Repo Clone.

I'm getting a bunch of compile errors when trying to build the DS3231_Alarms_and_Temperature.ino example.

Attached is the build output with the errors.

Thanks,
Michael
ComplieErrors.txt

Add date-time validity testing

Although this library essentially uses "Unix Time" there are methods to set the date based on the Gregorian calendar, therefore it could be a good idea to check their formal validity.

Pinging @Martin-Laclaustra: do you have any issue if I'm going to use the code you proposed for Makuna-Rtc? Of course I will be glad to recognize your contribution. Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.