Commit Graph

700 Commits

Author SHA1 Message Date
Thomas Basler
510f0c59f9 Implement readonly security for API endpoints 2022-11-22 23:40:19 +01:00
Thomas Basler
4bdbcbccc5 Introduce configuration option to decide wether the web ui is accessable without password or not 2022-11-22 23:32:52 +01:00
Thomas Basler
a06a8fec3d webapp: Removed hardcoded info about views which require authentication
If the return value of a API request equals 401 then the user will be redirected to the login page.
Using this method it's possible to decided within the API if a authentication is needed or not.
2022-11-22 20:37:01 +01:00
Thomas Basler
e60619b867 Added device reboot functionality 2022-11-21 23:29:57 +01:00
Thomas Basler
8ba0a654a3 webapp: add app.js.gz 2022-11-21 18:36:43 +01:00
Thomas Basler
6388be7a9e Added new Hardware Part Number for HM-800
See #363
2022-11-21 17:52:27 +01:00
Thomas Basler
8f2c95e684 webapp: upgrade dependencies 2022-11-21 17:47:22 +01:00
Thomas Basler
f8b601f871 Show several hints and tips at Live View
This contains the following information:
* No connection to the NRF module possible
* No time set
* Default password used
2022-11-20 15:08:36 +01:00
Thomas Basler
854af4649c webapp: add app.js.gz 2022-11-19 13:40:01 +01:00
Thomas Basler
8e4967941c Documentation: Added some sample builds 2022-11-19 12:21:22 +01:00
Thomas Basler
c0e6e13139 Added support for LilyGO_T_ETH_POE board 2022-11-19 00:03:25 +01:00
Thomas Basler
fe22c95221 webapp: Show Data Age also as timestamp if age > 300 sec 2022-11-18 23:16:52 +01:00
Thomas Basler
ee5b5b18b9 webapp: add app.js.gz 2022-11-16 18:23:37 +01:00
Thomas Basler
f198429bd3 webapp: Nicer alignment of inverter settings 2022-11-15 23:39:21 +01:00
Thomas Basler
fec84fd048 Show custom string name in Live View 2022-11-15 22:31:04 +01:00
Thomas Basler
134db887c0 Publish string names via MQTT 2022-11-15 22:31:04 +01:00
Thomas Basler
d0d8be9c05 webapp: Added input fields to InverterAdminView to enter channel names 2022-11-15 22:31:04 +01:00
Thomas Basler
d28fadbdac Extended configuration to allow string names
* Current config will be migrated to new format
* Already extended web API to get/post new format
2022-11-15 22:31:04 +01:00
Thomas Basler
0c46ecf121 Fix #302: Allow longer MQTT usernames and passwords
Changed max length from 32 to 64 characters
2022-11-15 22:31:04 +01:00
Thomas Basler
daf847e7b3 BREAKING CHANGE: Removed deprecated config parsing method
After this commit its not possible to migrate from the old binary blob config to the new json based config!! If you still running a old version before 12. October please upgrade to a version before this commit.
See https://github.com/tbnobody/OpenDTU/discussions/285
2022-11-15 22:31:04 +01:00
Thomas Basler
5f55414c0a Show Irradiation only in Live Data View if configured for specific channel 2022-11-15 22:31:04 +01:00
Thomas Basler
2b2afee770 Fix issue that in multi inverter environments some inverters where not fetched
When the radio was busy, the current inverter was just skipped and switched to the next one
2022-11-15 22:30:29 +01:00
Thomas Basler
e5cbeb8990 webapp: coding style changes 2022-11-14 20:50:29 +01:00
Thomas Basler
cc82cc12b8 webapp: add app.js.gz 2022-11-14 20:36:31 +01:00
Thomas Basler
a4bfd82824 Merge branch 'pr346' into dev 2022-11-14 20:32:36 +01:00
Michael Wilk
8a4c3cf423 coding style changes 2022-11-14 20:25:51 +01:00
Thomas Basler
dd7babb448 Added a timeout of 5ms to detect current time.
This prevents false positives when a interrupt occours during the reading of the time
2022-11-14 20:19:38 +01:00
Thomas Basler
83acba323f Updated Web-API documentation
added information regarding required authentication as shown in #233
2022-11-14 20:10:46 +01:00
Thomas Basler
6229e4b5a8 Fixed issue that fetching stopped when inverter was deleted
This happend when due to special timing the last inverter was deleted. In that case interverPos was never changed and the fetching process stucked
2022-11-14 20:00:16 +01:00
Thomas Basler
2937809def Merge branch 'pr346' into dev 2022-11-14 18:37:34 +01:00
Thomas Basler
ab1c4e458c webapp: Upgraded dependencies 2022-11-14 18:32:16 +01:00
Thomas Basler
50d73c7440 Upgraded espMqttClient to v1.3.3 2022-11-14 17:53:00 +01:00
Michael Wilk
34218cdc4a changed formatting/qoutes to better match the master (less changes) 2022-11-14 14:52:41 +01:00
Michael Wilk
7d203b50a3 reworked the InverterAdminView.vue view for easier maintainability.
this also fixed the bug of changed max_power values after closing the edit modal without saving
2022-11-14 14:43:42 +01:00
Thomas Basler
22b54aebc1 Do not allow blank issues any more
Submit here either real issues or feature requests
Use discussions or discord for support
2022-11-12 16:23:31 +01:00
Thomas Basler
bad903106a Doc: Added hint regarding Basic Authenticaation credentials 2022-11-10 20:38:11 +01:00
Thomas Basler
043e01b476 Merge branch 'pr233' into dev 2022-11-10 20:32:02 +01:00
Thomas Basler
5dac8198fa Added workspace specific vscode settings.json
This just sets the correct c++ formatter
2022-11-10 20:20:56 +01:00
Thomas Basler
8245eef90e Describe Prometheus API in Readme 2022-11-10 20:20:56 +01:00
Thomas Basler
c2f59427b8 Prometheus API: Increase buffer size to allow more inverters 2022-11-10 20:20:55 +01:00
Thomas Basler
d7bcce947e Prometheus API: Adjust api url and method names 2022-11-10 20:20:54 +01:00
Thomas Basler
d62c5b239f Prometheus API: use integrated serialString() method to fetch serial number 2022-11-10 20:20:53 +01:00
Thomas Basler
8e4e055930 Prometheus API: Remove duplicate cache control 2022-11-10 20:20:52 +01:00
Thomas Basler
0fdf7f19e4 Prometheus API: Applied code formatting 2022-11-10 20:20:45 +01:00
Thomas Basler
bfd112d268 Merge branch 'pr275' into dev 2022-11-10 19:21:53 +01:00
Thomas Basler
0d619e780a Prevent null pointer exception
It could occur that the command queue contained commands for inverters which are already deleted.
Therefor it has to be checked that getInverterBySerial returns a valid inverter
2022-11-10 18:32:28 +01:00
Thomas Basler
26b9bbf537 Prevent null pointer exception when deleting inverter
The removeInverterBySerial can be called in a webserver callback method.
This is maybe executed on another core which can then run in parallel to the radio loop hoymiles loop.
Accessing inverters which are already removed can lead to exceptions.
The Semaphore prevents that parallel execution
2022-11-10 18:26:01 +01:00
Dominik Westner
e5bbb7f517 implemented prometheus metrics 2022-11-10 18:00:13 +01:00
Thomas Basler
8b158a029e webapp: add app.js.gz 2022-11-09 20:01:50 +01:00
Thomas Basler
7d1cdb0536 Fix #322: German umlauts create mistakes when using them in passwords
See https://stackoverflow.com/questions/3626183/javascript-base64-encoding-utf8-string-fails-in-webkit-safari
2022-11-09 19:42:47 +01:00