Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.0.6 #643

Closed
wants to merge 42 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
cc56a95
v2.0.2: more MQTT Messages and some other minow changes
wasn-eu Jun 5, 2024
55d6801
clean up
wasn-eu Jun 5, 2024
98eb351
clean up .pio
wasn-eu Jun 5, 2024
7161560
changelog and readme updated
wasn-eu Jun 5, 2024
dcdf095
Update README.md: et local CHANGELOG.md path
pvtex Jun 5, 2024
9749e35
added Filebrowser for SPIFFS
wasn-eu Jun 5, 2024
7f92b2b
changed file download type to text/html
wasn-eu Jun 5, 2024
f73fe7f
updated file download in SPIFFS browser
wasn-eu Jun 5, 2024
de303d7
spiffs browser design like esp-rfid and now full functional
wasn-eu Jun 6, 2024
87f8130
spiffs browser upload no full funtional
wasn-eu Jun 6, 2024
0c71111
design changes for spiffs browser
wasn-eu Jun 6, 2024
f8bb208
fixed typo
wasn-eu Jun 6, 2024
6670523
changes for websitebuilder
wasn-eu Jun 6, 2024
741cdf7
integrate spiffs file browser in menu
wasn-eu Jun 6, 2024
dc07620
spiffs browser design
wasn-eu Jun 6, 2024
2a15342
show hostname under logo in menu
wasn-eu Jun 6, 2024
bde0e83
Change spiffs Filesystem to 1m
pvtex Jun 7, 2024
4ad64f1
spiffs browser now with ws, delete&upload not working
wasn-eu Jun 7, 2024
c7b5874
changelog
wasn-eu Jun 7, 2024
8c67cf9
changed pincode to string for userlist
wasn-eu Jun 7, 2024
9bfdea4
clean up
wasn-eu Jun 7, 2024
1169c0e
new website file
wasn-eu Jun 7, 2024
0ce6e8e
deleted action in SPIFFS browser
wasn-eu Jun 7, 2024
f81bb66
CHANGELOG 2.0.6
wasn-eu Jun 7, 2024
1de1db9
Create c-cpp.yml
pvtex Jun 7, 2024
7342502
Create platformio.yml
pvtex Jun 7, 2024
89eca28
accept wiegand 37, changes repo to pvtex
wasn-eu Jun 8, 2024
a574496
Merge branch 'v2.0.x' of https://github.com/pvtex/esp-rfid into v2.0.x
wasn-eu Jun 8, 2024
8e0568d
delete workflows
wasn-eu Jun 8, 2024
4d83f7c
Create main.yml
pvtex Jun 8, 2024
a930039
Uptime now in hours:minutes:seconds
wasn-eu Jun 8, 2024
9cde87e
Merge branch 'v2.0.x' of https://github.com/pvtex/esp-rfid into v2.0.x
wasn-eu Jun 8, 2024
581b954
new .gitignore
wasn-eu Jun 8, 2024
b6f4d27
showing RSI in dBm on status page
wasn-eu Jun 8, 2024
e5a7761
changed SPIFF Browser icon to list
wasn-eu Jun 8, 2024
6dbb41e
mqtt access timestamp now in readable format
wasn-eu Jun 8, 2024
fe9b316
fixed naming in hardware settings
wasn-eu Jun 8, 2024
b785e80
fixed typo in hardware settings
wasn-eu Jun 8, 2024
0fda4eb
mqttaccess with readable Timestamp
wasn-eu Jun 10, 2024
732329c
hostname on status page
wasn-eu Jun 10, 2024
93bb831
moved Hostname to systemname under device on status page
wasn-eu Jun 10, 2024
43b336b
bump version to 2.0.7
wasn-eu Jun 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mqtt access timestamp now in readable format
  • Loading branch information
wasn-eu committed Jun 8, 2024
commit 6dbb41e873ed1072d51afc2afb2f6b7b8dc8c4c3
10 changes: 9 additions & 1 deletion src/mqtt.esp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,15 @@ void mqttPublishAccess(time_t accesstime, String const &isknown, String const &t
root["pincode"] = pincode;
root["username"] = user;
root["access"] = type;
root["time"] = accesstime;

unsigned long offset_hours = 2; // 2 hours for Europe/Berlin
unsigned long t_unix_date;
offset_hours = offset_hours * 3600; // convert number of days to seconds
t_unix_date = accesstime + offset_hours;
char accesstimestr[9];
sprintf(accesstimestr, "%02d.%02d.%4d %02d:%02d:%02d\n", day(t_unix_date), month(t_unix_date), year(t_unix_date), hour(t_unix_date), minute(t_unix_date), second(t_unix_date));
root["time"] = accesstimestr;

root["doorName"] = config.doorName[0];

if (!config.mqttHA)
Expand Down