smz / arduino-rtctime Goto Github PK
View Code? Open in Web Editor NEWA time.h compliant library that makes using the DS1307 and DS3231 Real Time Clock modules really simple.
A time.h compliant library that makes using the DS1307 and DS3231 Real Time Clock modules really simple.
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.
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!
See: Makuna/Rtc#49
Thanks @mrwgx3
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
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.