{"id":25900551,"url":"https://github.com/ailtonfidelix/ds1307","last_synced_at":"2026-04-18T01:37:38.890Z","repository":{"id":164961857,"uuid":"535150549","full_name":"AiltonFidelix/DS1307","owner":"AiltonFidelix","description":"DS1307 library for ESP-IDF","archived":false,"fork":false,"pushed_at":"2025-02-07T00:37:23.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T16:26:51.422Z","etag":null,"topics":["c","ds1307","esp-idf","esp32","i2c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AiltonFidelix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-11T00:16:43.000Z","updated_at":"2025-02-07T00:37:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"514e384a-5687-4f45-8377-c807b142e93f","html_url":"https://github.com/AiltonFidelix/DS1307","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AiltonFidelix/DS1307","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiltonFidelix%2FDS1307","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiltonFidelix%2FDS1307/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiltonFidelix%2FDS1307/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiltonFidelix%2FDS1307/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AiltonFidelix","download_url":"https://codeload.github.com/AiltonFidelix/DS1307/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiltonFidelix%2FDS1307/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","ds1307","esp-idf","esp32","i2c"],"created_at":"2025-03-03T02:17:39.063Z","updated_at":"2026-04-18T01:37:38.861Z","avatar_url":"https://github.com/AiltonFidelix.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DS1307 library for ESP-IDF\n\nDS1307 library for ESP32 in the ESP-IDF. In this library the DS1307 module works at 24 hours format.\n\n\n## How to use\n\nIf you are using PlatformIO like me, you can just clone this project in the **lib** folder. \n\n```\ncd lib/ \u0026\u0026 git clone https://github.com/AiltonFidelix/DS1307\n```\n\nOtherwise, just copy this project and use however you want.\n\n## Example\n\n```\n#include \"freertos/FreeRTOS.h\"\n#include \"freertos/task.h\"\n#include \"sdkconfig.h\"\n\n// Include the library\n#include \u003cds1307.h\u003e\n\nvoid app_main()\n{\n    printf(\"Starting ds1307!\\n\");\n\n    // bool true parameter to install the I2C driver\n    ds1307Begin(true);\n\n    // Config date and time\n    ds1307SetDate(11, 9, 22, 1);\n    ds1307SetTime(16, 32, 0);\n\n    while (1)\n    {\n        printf(\"Hour: %d\\n\", ds1307GetHour());\n        printf(\"Minute: %d\\n\", ds1307GetMinute());\n        printf(\"Second: %d\\n\", ds1307GetSecond());\n        printf(\"Day: %d\\n\", ds1307GetDateDay());\n        printf(\"Month: %d\\n\", ds1307GetMonth());\n        printf(\"Year: %d\\n\", ds1307GetYear());\n        printf(\"Week day: %d\\n\", ds1307GetWeekDay());\n\n        char time[10];\n        ds1307GetTime(time);\n        printf(\"Time: %s\\n\", time);\n\n        char date[10];\n        ds1307GetDate(date);\n        printf(\"Date: %s\\n\", date);\n\n        char timestamp[24];\n        ds1307GetTimestamp(timestamp);\n        printf(\"Timestamp: %s\\n\", timestamp);\n    \n        vTaskDelay(1000 / portTICK_PERIOD_MS);\n    }\n}\n```\n\n### Author\n\nCreated by Ailton Fidelix\n\n[![Linkedin Badge](https://img.shields.io/badge/-Ailton-blue?style=flat-square\u0026logo=Linkedin\u0026logoColor=white\u0026link=https://www.linkedin.com/in/ailtonfidelix/)](https://www.linkedin.com/in/ailton-fidelix-9603b31b7/) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failtonfidelix%2Fds1307","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Failtonfidelix%2Fds1307","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failtonfidelix%2Fds1307/lists"}