Commit graph

69 commits

Author SHA1 Message Date
lumapu
c56c785a1f basic implementation of HMS/HMT inverters 2023-02-20 22:10:05 +01:00
lumapu
b6a41506b6 fix MqTT client ID 2023-02-15 14:35:59 +01:00
lumapu
a0879cfcbe reduced heap fragmentation (removed strtok completely) #644, #645, #682
added part of mac address to MQTT client ID to seperate multiple ESPs in same network
added dictionary for MQTT to reduce heap-fragmentation
removed `last Alarm` from Live view, because it showed always the same alarm - will change in future
2023-02-15 14:12:53 +01:00
lumapu
15bc5f2b50 reneabled instant start communication (once NTP is synced) #674
fix negative number in yield total correction
2023-02-12 12:46:00 +01:00
lumapu
ca25f16548 prevent send devcontrol request during disabled night communication
changed yield total correction as module (inverter input) value #570
MQTT Yield Day zero, next try to fix #671
2023-02-12 02:00:54 +01:00
lumapu
026df8a09b fix power-limit was not checked for max retransmits #667
fix blue LED lights up all the time #672
fix installing schedulers if NTP server isn't available
improved zero values on triggers #671
hardcoded MQTT subtopics, because wildcard `#` leads to errors
rephrased some messages on webif, thx to @Argafal #638
2023-02-11 02:02:04 +01:00
lumapu
a157f2b97b fix blue LED lights up all the time #672
added an instant start communication (once NTP is synced)
2023-02-10 17:18:00 +01:00
lumapu
7423de76fb fix MQTT publishing, callback was set but reset by following setup() 2023-02-08 08:36:00 +01:00
lumapu
5765e054f3 fixed communication error #652
reset values is no bound to MQTT any more, setting moved to `inverter` #649
fixed wording on `index.hmtl` #661
2023-02-08 00:19:04 +01:00
lumapu
75539c5daf started implementation of MI inverters (setup.html, own processing MiPayload.h) 2023-02-06 23:37:05 +01:00
lumapu
edefcf1c83 fix Interrupt
fix connect to WiFi with only one AP
2023-02-06 00:07:58 +01:00
beegee3
5fb45f1b20
Update app.cpp 2023-02-05 14:53:01 +01:00
lumapu
9cedb41ff4 implemented getNTPTime improvements #609 partially #611
added alarm messages to MQTT #177, #600, #608
2023-01-22 01:04:33 +01:00
lumapu
2b3f252bbf fix wakeup issue, once wifi was lost during night the communication didn't start in the morning
reenabled FlashStringHelper because of lacking RAM
complete rewrite of monochrome display class, thx to @dAjaY85 -> displays are now configurable in setup
2023-01-21 00:34:39 +01:00
lumapu
a0a40be9a6 fix compile 2023-01-19 22:51:13 +01:00
lumapu
3adcb68d98 improved payload handling (retransmit all fragments on CRC error)
improved `isAvailable`, checkes all record structs, inverter becomes available more early because version is check first
fix tickers were not set if NTP is not available
disabled annoying `FlashStringHelper` it gives randomly Expeptions during development, feels more stable since then
moved erase button to the bottom in settings, not nice but more functional
split `tx_count` to `tx_cnt` and `retransmits` in `system.html`
fix mqtt retransmit IP address #602
added debug infos for `scheduler` (web -> `/debug` as trigger prints list of tickers to serial console)
2023-01-19 22:43:23 +01:00
lumapu
3d3e3dc8c6 improved payload handling (request / retransmit) #464
included alarm ID parse to serial console (in development)
2023-01-17 17:35:00 +01:00
lumapu
43c07be148 fix missing scheduler loop #596 2023-01-17 08:55:01 +01:00
lumapu
3ff348bba8 merged PR Monodisplay, many thanks to @dAjaY85 #566, Note: (settings are introduced but not able to be modified, will be included in next version) 2023-01-16 22:51:09 +01:00
lumapu
c157134da9 improved wifi handling and tickers, many thanks to @beegee3 #571
fixed YieldTotal correction calculation #589
fixed serial output of power limit acknowledge #569
2023-01-16 22:04:59 +01:00
lumapu
d8e255ddc2 corrected MQTT comm_disabled #529
fix Prometheus and JSON endpoints (`config_override.h`) #561
publish MQTT with fixed interval even if inverter is not available #542
added JSON settings upload. NOTE: settings JSON download changed, so only settings should be uploaded starting from version `0.5.70` #551
MQTT topic and inverter name have more allowed characters: `[A-Za-z0-9./#$%&=+_-]+`, thx: @Mo Demman
improved potential issue with `checkTicker`, thx @cbscpe
MQTT option for reset values on midnight / not avail / communication stop #539
small fix in `tickIVCommunication` #534
add `YieldTotal` correction, eg. to have the option to zero at year start #512
2023-01-08 22:16:14 +01:00
lumapu
4265856814 corrected github action
corrected MQTT `comm_disabled` #529
2023-01-07 11:55:45 +01:00
lumapu
712b5af9b9 merged SH1106 1.3" Display, thx @dAjaY85
added SH1106 to automatic build
added IP address to MQTT (version, device and IP are retained and only transmitted once after boot) #556
added `set_power_limit` acknowledge MQTT publish #553
changed: version, device name are only published via MQTT once after boot
added `Login` to menu if admin password is set #554
added `development` to second changelog link in `index.html` #543
added interval for MQTT (as option). With this settings MQTT live data is published in a fixed timing (only if inverter is available) #542, #523
added MQTT `comm_disabled` #529
2023-01-07 01:15:25 +01:00
dAjaY85
94487641cc Hinzufügen vom 1,3" 2023-01-06 12:08:05 +01:00
lumapu
27b3a9cd87 Powerlimit is transfered immediately to inverter 2023-01-02 12:26:03 +01:00
lumapu
19e86ebdb2 changed calculation of start / stop communication to 1 min after last comm. stop #515
moved payload send to `payload.h`, function `ivSend` #515
2023-01-01 23:37:13 +01:00
lumapu
73b6ff073c channel name can use any character, not limited any more
added `/` to MQTT topic and Inverter name
trigger for `calcSunrise` is now using local time #515
fix reconnect timeout for WiFi #509
start AP only after boot, not on WiFi connection loss
improved /system `free_heap` value (measured before JSON-tree is built)
2022-12-28 23:38:33 +01:00
lumapu
a8d9b7ad0b fix MQTT status update
removed MQTT `available_text` (can be deducted from `available`)
enhanced MQTT documentation in `User_Manual.md`
remvoed `tickSunset` and `tickSunrise` from MQTT. It's not needed any more because of minute wise check of status (`processIvStatus`)
changed MQTT topic `status` to nummeric value, check documentation in `User_Manual.md`
fix regular expression of `setup.html` for inverter name and channel name
2022-12-27 21:05:31 +01:00
lumapu
6bb8a4e448 added regex to inverter name and MQTT topic (setup.html)
beautified serial.html
added ticker for wifi loop #515
reverted sunrise / sunset ticker to most recent version
2022-12-24 00:49:53 +01:00
lumapu
de4c572ee2 fix night communication enable
improved different WiFi connection scenarios (STA WiFi not found, reconnect #509, redirect for AP to configuration)
2022-12-22 11:49:01 +01:00
lumapu
07bf947ff7 improved stability
improved wifi initial connection - especially if station wifi is not available #509
removed new operators from web.h (reduce dynamic allocation)
improved sun calculation #515, #505
fixed wifi auto reconnect #509
added disable night communication flag to MQTT #505
changed MQTT publish of `available` and `available_text` to sunset #468
2022-12-20 22:43:54 +01:00
lumapu
5977bbaee6 improved stability
added icons to index.html, added wifi-strength symbol on each page
moved packet stats and sun to system.html
refactored communication offset (adjustable in minutes now)
2022-12-20 00:04:25 +01:00
lumapu
b2fc16e030 factory reset formats entire little fs
renamed sunrise / sunset on indext.html to start / stop communication
show system information only if called directly from menu
2022-12-18 00:47:45 +01:00
lumapu
ea6a9c155c changed sunrise / sunset calculation, angle is now -3.5 instead of original -0.83
improved scheduler (removed -1 from `reload`) #483
improved reboot flag in `app.h`
fixed #493 no MQTT payload once display is defined
2022-12-17 13:26:25 +01:00
lumapu
c8c8b99957 Mono-Display: show values in offline mode #498
improved wifi class #483
added communication enable / disable (to test mutliple DTUs with the same inverter)
fix factory reset #495
2022-12-15 23:19:24 +01:00
lumapu
67b9170fcf improved MQTT #468 set status to "offline" / "online" / "partial"
fix web-serial-console
2022-12-14 23:54:11 +01:00
lumapu
49b530a743 added interface class for app
refactored web and webApi -> now RestApi.h
fix calcSunrise
fixed calcSunrise trigger calculation
display zero values on /live
added changes from #483
2022-12-14 22:32:08 +01:00
lumapu
dc9eda5ee3 fix changes from merge 2022-12-12 21:05:36 +01:00
lumapu
0af2d18514 Merge branch 'nrf_info' of https://github.com/DanielR92/ahoy into DanielR92-nrf_info 2022-12-12 20:50:38 +01:00
lumapu
77e9fbecfa Merge branch 'mqtt-max-char' of https://github.com/DanielR92/ahoy into DanielR92-mqtt-max-char 2022-12-12 20:23:03 +01:00
lumapu
183b9b35f6 improved scheduler #483
refactored NTP
generate bin.gz only for ESP8285
fix calcSunrise calculation
2022-12-12 20:16:32 +01:00
lumapu
d9290d9fdf fix #480 AP Mode on fresh ESP
included #483 improvements
fix #468 last_success MQTT
fix #468 update available status at sunset
fix #447 reorderd enqueue commands to not have same payload length in a row
added ssd1306 and nokia display to build script
2022-12-08 17:44:34 +01:00
lumapu
9da0fc4058 fix #468 MQTT status at sunset 2022-12-05 23:16:54 +01:00
lumapu
3c6e3221e8 added display-class: Nokia5110 and SDD1306 2022-12-04 20:19:02 +01:00
lumapu
7c6ab6792b fix #472 refactored ahoyWifi class completely
-> now Ahoy opens an AP during boot. This will be closed once a station WiFi connection is established
improved NTP after boot, will be synced immediately after successful WiFi connection
2022-12-03 02:06:20 +01:00
DanielR92
58fede748d
Merge branch 'development03' into nrf_info 2022-12-02 09:18:34 +01:00
lumapu
b1946df32f updated REST API and MQTT to use the same functionality
added heap as MQTT publish
updated User_Manual.md to latest changes
development build will have now always the same name because of static link from https://ahoydtu.de
2022-11-23 23:57:15 +01:00
lumapu
573bd31f0a improved MQTT 2022-11-23 21:09:57 +01:00
lumapu
22715a1a4a first draft version, callback and subscription not included 2022-11-21 23:02:47 +01:00
DanielR92
3cbf631a18
Merge branch 'lumapu:main' into nrf_info 2022-11-20 09:54:46 +01:00