• Stars
    star
    213
  • Rank 185,410 (Top 4 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Arduino library for setting and retrieving internal RTC time on ESP32 boards

ESP32Time

An Arduino library for setting and retrieving internal RTC time on ESP32 boards

arduino-library-badge PlatformIO Registry

Functions

ESP32Time rtc(offset); // create an instance with a specifed offset in seconds
rtc.offset;	// get or modify the current offset
setTime(30, 24, 15, 17, 1, 2021);  // 17th Jan 2021 15:24:30
setTime(1609459200);  // 1st Jan 2021 00:00:00
setTimeStruct(time);	// set with time struct

getTime()          //  (String) 15:24:38
getDate()          //  (String) Sun, Jan 17 2021
getDate(true)      //  (String) Sunday, January 17 2021
getDateTime()      //  (String) Sun, Jan 17 2021 15:24:38
getDateTime(true)  //  (String) Sunday, January 17 2021 15:24:38
getTimeDate()      //  (String) 15:24:38 Sun, Jan 17 2021
getTimeDate(true)  //  (String) 15:24:38 Sunday, January 17 2021

getMicros()        //  (unsigned long)    723546
getMillis()        //  (unsigned long)    723
getEpoch()         //  (unsigned long)    1609459200
getLocalEpoch()    //  (unsigned long)    1609459200 // local epoch without offset
getSecond()        //  (int)     38    (0-59)
getMinute()        //  (int)     24    (0-59)
getHour()          //  (int)     3     (0-12)
getHour(true)      //  (int)     15    (0-23)
getAmPm()          //  (String)  pm
getAmPm(false)     //  (String)  PM
getDay()           //  (int)     17    (1-31)
getDayofWeek()     //  (int)     0     (0-6)
getDayofYear()     //  (int)     16    (0-365)
getMonth()         //  (int)     0     (0-11)
getYear()          //  (int)     2021

getTime("%A, %B %d %Y %H:%M:%S")   // (String) returns time with specified format 

Formatting options

More Repositories

1

esp32-c3-mini

LVGL UI for ESP32 C3 mini 240*240 board (ESP32-2424S012)
C
211
star
2

ESP32_BLE_OTA_Arduino

OTA update on ESP32 via BLE
C++
206
star
3

dt78

DT78 Smartwatch Reverse Engineering
C++
79
star
4

ESP32_BLE_OTA_Android

Android app to perform OTA update on ESP32 via BLE
Kotlin
67
star
5

Lumia-ESP32

A demo project for WT32-SC01 module
C
66
star
6

IOS-ESP32

A demo project for WT32-SC01 module
C
59
star
7

DT78-App-Android

Alternative app for the DT78 Smartwatch. Also works with DT92 & DT66. May work with watches that use the WearFit 2.0 app.
Kotlin
50
star
8

CST816S

An Arduino library for the Hynitron CST816S capacitive touch screen IC
C++
48
star
9

BLE_OTA_Python

A script for performing OTA update over BLE on ESP32
Python
44
star
10

dt78-esp32-firmware

Firmware for the DT78 watch based on ESP32 microcontroller
C
41
star
11

watch-face-wearfit

Python
27
star
12

ESP32_OLED_BLE

Receive Android notifications on ESP32 with an OLED screen via Bluetooth LE. Also functions as a clock, time is set automatically via BLE when connected to the app.
C++
27
star
13

chronos-esp32

A library for ESP32 to interface with Chronos app over BLE
C++
26
star
14

esp32-firmware-update

Update ESP32 firmware over WiFi from a web server
C++
23
star
15

esp32-lvgl-watchface

The ESP32 LVGL Watchfaces project enables the display of pre-built binary watchfaces on ESP32 microcontrollers using LVGL. Through a Kotlin script, it converts binary watchface files into LVGL-compatible code, simplifying the process.
C
21
star
16

commits-board

A Billboard for the most active users per country based on committers.top
PHP
20
star
17

MpesaSTK

An Arduino Library implementing MPESA Daraja on microcontrollers
C++
19
star
18

auto-follow-unfollow

Follow and unfollow users automatically
PHP
18
star
19

wt32-chatgpt

A ChatGPT interface on ESP32 based touchscreen board
C
16
star
20

esp32-spotify-oled

View your current playing song on ESP32 & OLED display using Spotify API
C++
15
star
21

commits-top-badge

A profile badge for the 'most-active-github-users-counter'
PHP
13
star
22

openai-random-poem

A poem generated daily by OpenAI
Python
13
star
23

windows-10-mobile-lvgl

Windows 10 Mobile (Lumia) UI made with LVGL
C
12
star
24

wt32-lvgl-template

This is a template project for WT32-SC01 board for LVGL UI development
C
12
star
25

retweet

retweets your tweets
Kotlin
12
star
26

Android-BLE-Library

Java
12
star
27

wt32-standby

Standby mode on WT32 boards.
C
12
star
28

wt32-clock

C
11
star
29

digital_card

A digital business card UI demo for the WT32-SC01 module
C
11
star
30

dashboard_pizero_spotify

Processing
10
star
31

world-cup

View live updates on world cup matches on the WT32-SC01 board
C
10
star
32

fbiego

Python
10
star
33

jarvis-lvgl-esp32

Jarvis ESP32 Project: A sleek LVGL-powered user interface for the ESP32-S3 module, inspired by the Jarvis UI and seamlessly integrating with the Chronos app for BLE-synced time, weather, and notifications.
C
10
star
34

BLE_IR_ESP32

Arduino firmware for universal IR remote, to be used with an android app
C++
9
star
35

Windows_32

A demo project for ZX7D00CE01S
C
9
star
36

fbiego.github.io

Exploring Web BLE
JavaScript
9
star
37

image_captcha_code

A simple captcha to prevent spam bots on html forms
Processing
8
star
38

esp32-touch-keyboard

C
8
star
39

rabbit-esp32

A demo UI project for the WT32 SC01 Plus board inspired by Rabbit R1
C
8
star
40

esp32-watchfaces

Rendering prebuilt watchfaces on LCD using ESP32
C++
8
star
41

simulation

Single server single queue simulation using java
Java
7
star
42

CRC16Modbus

CRC16-MODBUS Checksum calculator, Kotlin
Kotlin
7
star
43

apn-list

A list of apn settings. Contribute by adding apn settings of providers in your country
C
7
star
44

esp32_election_2022

C
7
star
45

esp32-ble

Control and manage ESP32 functions via BLE
C++
6
star
46

telkom-usage

View your telkom account details on an ESP32 + OLED display
C++
6
star
47

followers-vs-following

Compare your Github followers vs following users
PHP
6
star
48

serenity

A multi-purpose development board based on Atmega328P and Arduino with a few inbuilt sensors
C++
6
star
49

alpha

6
star
50

ble-launcher

C++
5
star
51

string2array

Convert string into array
C++
5
star
52

NotificationReply

Reply to Android notifications programmatically
Kotlin
5
star
53

auto-commit

create commits automatically on local
Batchfile
5
star
54

string-resource-translate

Generate translated string resources for Android Studio
Kotlin
5
star
55

ble-cloner-arduino

The BLE Cloner project provides a Python script to clone the services, characteristics, and advertising data of a BLE device, generating an Arduino sketch to emulate it on an ESP32 using the NimBLE library.
Python
5
star
56

wt32-pos-ui

C
5
star
57

BLE_IR_Android

Remote app for DIY ESP32 IR remote
Kotlin
5
star
58

ESP32-Logger-BLE

C++
5
star
59

status_game

Challenge your whatsapp status viewers
Processing
5
star
60

gamepad_input

Control processing sketches with gamepad input
Processing
5
star
61

MPESA_1tap_ESP32

M-PESA 1Tap demo on ESP32
C++
5
star
62

arduino-workflow-status

C++
5
star
63

libmaker

A Python script designed to generate the basic structure for an Arduino library
Python
5
star
64

WT32-KOF

C
5
star
65

m5-stack-clock

M5 Stack clock with weather and notification display
C
5
star
66

arduino_hid_attacks

Use arduino to perform hid keyboard and mouse attacks
C++
4
star
67

Timber

An Arduino library that provides methods for displaying logs at different levels of importance or severity.
C++
4
star
68

attiny13a_neopixel_ir

Arduino code for Neopixel leds using Attiny13a with IR control
C
4
star
69

MPESA_Daraja_ESP32

M-PESA Stk request on ESP32
C++
4
star
70

stkHandler

Receive transaction data after an MPESA STK push request
PHP
4
star
71

neoway_m590

Interfacing Neoway M590 with Arduino
C++
4
star
72

c3-mini-lvgl-template

C
3
star
73

keypad_ui

Numeric Keypad for processing
Processing
3
star
74

wt32-tiles

Piano tiles game on WT32 boards
C
3
star
75

m5-stick-c-lvgl

Sample LVGL sketch for M5 Stick C board
C
3
star
76

google-play-epaper

C
3
star
77

wt-sc05-lvgl-template

C
3
star
78

wt32-dvd-video

C
3
star
79

curiosity

for the curious ones
SCSS
3
star
80

OLED_I2C

C
2
star
81

google-play-stats

Monitoring Google Play app stats
Python
1
star
82

google-play-scraper

Python
1
star