Commit Graph

80 Commits

Author SHA1 Message Date
Thomas Basler
5bb9acdbc6 Refactored Hoymiles Lib: Move statistics parser into separate class 2022-07-12 18:27:56 +02:00
Thomas Basler
96e66dde47 Changed order of properties in live view 2022-07-11 20:35:14 +02:00
Thomas Basler
c2a7f487f1 Updated structure of eventlog json 2022-07-09 11:34:44 +02:00
Thomas Basler
4f4dcfda0b Moved some strings to flash 2022-07-08 18:57:03 +02:00
Thomas Basler
997c54edb4 Added field to live view which shows amount of eventlog events 2022-07-08 18:54:52 +02:00
Thomas Basler
f7eb54fa41 First version of webapi for event log 2022-07-08 18:22:35 +02:00
Thomas Basler
c28087ec86 Fix #21: Display DC power in Live Data overview 2022-07-07 19:05:50 +02:00
Thomas Basler
8b939f9418 Rename variables to match code style 2022-07-06 19:25:30 +02:00
Axel Hinrichs
401e6739cd [WebApi] rate limit ws cleanup (1/s) 2022-07-05 23:42:07 +02:00
Axel Hinrichs
48f540dad1 [WebApi_webapp] app.js caching via ETag 2022-07-04 16:50:34 +02:00
Thomas Basler
712be3fc15 Code cleanup 2022-07-01 23:38:51 +02:00
Thomas Basler
cf273c93e7 Fixed 404 error when pressing refresh in webapp 2022-07-01 23:32:11 +02:00
Thomas Basler
b454f0c01f Renamed topic again 2022-07-01 18:38:34 +02:00
Thomas Basler
d5f32d8325 Fixes (#8). Power values on CH0 are published twice
The larger value was DC the smaller one AC. Now the values are published to different topics
2022-07-01 18:36:43 +02:00
Thomas Basler
d17d7f7082 Enhance inverter edit
* Edit procedure was replaced by a modal window
* Allows setting of max power of the 4 strings
2022-06-24 23:08:04 +02:00
Thomas Basler
bce3fc78e8 Renamed field names which are used for mqtt and web ui 2022-06-24 18:03:44 +02:00
Thomas Basler
2de865037c Renamed functions
getValue --> getChannelFieldValue
hasValue --> hasChannelFieldValue
getUnit --> getChannelFieldUnit
getName --> getChannelFieldName
2022-06-24 17:53:37 +02:00
Thomas Basler
183b919ae6 Rename data folder to webapp_dist 2022-06-22 23:16:45 +02:00
Thomas Basler
eec4334fa5 Send inverter max channel power via web api 2022-06-22 21:44:55 +02:00
Thomas Basler
f42696d14c Fix change of inverter serial
Because of the inverter type depends on the serial number it's a must to remove and add the inverter of the serial was changed. setSerial doesn't make sense anymore. Move the serial to the constructor
2022-06-22 21:32:37 +02:00
Thomas Basler
746aa087ac Set MaxChannel Power on startup and in webapi 2022-06-22 21:12:45 +02:00
Thomas Basler
10974ade3e Adjust config
* Allow wifi  passwords length of 64 chars
* Added max channel power
2022-06-22 21:00:44 +02:00
Thomas Basler
3b9d117b4d Show current git hash in web gui 2022-06-20 20:56:50 +02:00
Thomas Basler
670c2d6762 Show detected inverter type in webapp 2022-06-18 01:51:18 +02:00
Thomas Basler
17cc2a475d Rename websocket from ws to livedata
Allows devServer to proxy websockets as well...
2022-06-18 01:14:31 +02:00
Thomas Basler
46d88c6520 Improoved websocket handling 2022-06-17 13:29:21 +02:00
Thomas Basler
1281893314 webapi: publish data age and critical status 2022-06-16 15:32:55 +02:00
Thomas Basler
7e0807bda6 Added cnfig parameter to set mqtt publish interval 2022-06-16 14:57:12 +02:00
Thomas Basler
af00158e14 First version of very simple websocket api 2022-06-16 01:44:42 +02:00
Thomas Basler
1ea2990fe9 Remove not supported field 2022-06-16 01:18:39 +02:00
Thomas Basler
77ffe1385c Fixed serial number source 2022-06-16 00:55:09 +02:00
Thomas Basler
fc80c8d8ff Remove not required include 2022-06-15 23:46:37 +02:00
Thomas Basler
92abfdfaa6 Separated WebApi into different files 2022-06-15 23:46:22 +02:00
Thomas Basler
cae47a142a Implemented periodic called loop method in webapi 2022-06-15 22:53:05 +02:00
Thomas Basler
bab5beb170 Move strings from RAM to Flash 2022-06-15 22:21:50 +02:00
Thomas Basler
226a57b328 Fix config default values on empty config file 2022-06-15 22:17:16 +02:00
Thomas Basler
c9e603b2de Replace EVERY_N_SECONDS with millis
EVERY_N_SECONDS is not updated without a reboot of the controller
2022-06-15 22:15:02 +02:00
Thomas Basler
b893257696 Format config partition if mount failed 2022-06-15 22:07:30 +02:00
Thomas Basler
e3ded34020 Publish inverter stats only if values are updated 2022-06-15 21:50:49 +02:00
Thomas Basler
0cc80126fa Added first implementation of mqtt publishing 2022-06-15 21:37:25 +02:00
Thomas Basler
98fa8be90e Publish messages with qos = 0 to speed up process 2022-06-15 21:11:08 +02:00
Thomas Basler
b597e907de Fixed issue in webapi that a inverter serial has to be read as hex 2022-05-31 19:26:26 +02:00
Thomas Basler
891b2b2917 Fix encoding header for favicon 2022-05-30 23:20:15 +02:00
Thomas Basler
90fe3df3fb Integrate Hoymiles library into main application 2022-05-30 21:57:21 +02:00
Thomas Basler
774ab91531 Fixed typo 2022-05-27 01:19:09 +02:00
Thomas Basler
e47e5c0197 Extend webapi to change dtu settings 2022-05-27 01:00:18 +02:00
Thomas Basler
e3ef1fa9a0 Added several DTU config settings 2022-05-26 23:17:45 +02:00
Thomas Basler
35d8a76763 Implemented firmware upgrade api 2022-05-23 23:26:19 +02:00
Thomas Basler
da82f1fbbd Fix total sketch size
See https://github.com/espressif/arduino-esp32/issues/3501
2022-05-22 23:18:30 +02:00
Thomas Basler
68c451aa82 Serve webapp from flash instead of LITTLEFS
This allows a web based firmware update by just replacing one bin file
2022-05-22 22:42:06 +02:00