Commit Graph

49 Commits

Author SHA1 Message Date
helgeerbe
d494810975
merge V23.12.16 (#556)
* Optimize Sun data calculation

* Remove not required enum

* Split config struct into different sub structs

* Feature: Allow configuration of LWT QoS

* Made resetreason methods static

* Feature: Implement offset cache for "YieldDay"

Thanks to @broth-itk for the idea!
Fix: #1258 #1397

* Add Esp32-Stick-PoE-A

* remove broken LilyGO_T_ETH_POE config, use device profile instead

* Feature: High resolution Icon and PWA (Progressive Web App) functionality

Fix: #1289

* webapp: Update dependencies

* Initialize TaskScheduler

* Migrate SunPosition to TaskScheduler

* Migrate Datastore to TaskScheduler

* Migrate MqttHandleInverterTotal to TaskSchedule

* Migrate MqttHandleHass to TaskScheduler

* Migrate MqttHandleDtu to TaskScheduler

* Migrate MqttHandleInverter to TaskScheduler

* Migrate LedSingle to TaskScheduler

* Migrate NetworkSettings to TaskScheduler

* Migrate InverterSettings to TaskScheduler

* Migrate MessageOutput to TaskScheduler

* Migrate Display_Graphic to TaskScheduler

* Migrate WebApi to TaskScheduler

* Split InverterSettings into multiple tasks

* Calculate SunPosition only every 5 seconds

* Split LedSingle into multiple tasks

* Upgrade espMqttClient from 1.4.5 to 1.5.0

* Doc: Correct amount of MPP-Tracker

* Added HMT-1600-4T and HMT-1800-4T to DevInfoParser

Fix #1524

* Adjusted inverter names for HMS-1600/1800/2000-4T

* Add channel count to description of detected inverter type (DevInfoParser)

* Adjust device web api endpoint for dynamic led count

* Feature: Added ability to change the brightness of the LEDs

Based on the idea of @moritzlerch with several modifications like pwmTable and structure

* webapp: Update dependencies

* Update olikraus/U8g2 from 2.35.7 to 2.35.8

* Remove not required onWebsocketEvent

* Remove code nesting

* Introduce several const statements

* Remove not required AsyncEventSource

* Doc: Added byte specification to each command

* Feature: Added basic Grid Profile parser which shows the used profile and version

Other values are still outstanding.

* Optimize AlarmLogParser to save memory

* Add libfrozen to project to create constexpr maps

* Feature: First version of GridProfile Parser which shows all values contained in the profile.

* webapp: Update dependencies

* Apply better variable names

* Remove not required casts

* Add additional compiler flags to prevent errors

* Add const statement to several variables

* Replace NULL by nullptr

* Update bblanchon/ArduinoJson from 6.21.3 to 6.21.4

* Add const keyword to method parameters

* Add const keyword to methods

* Use references instead of pointers whenver possible

* Adjust member variable names in MqttSettings

* Adjust member variable names in NetworkSettings

* webapp: Update timezone database to latest version

* webapp: Beautify and unify form footers

* Feature: Allow setting of an inverter limit of 0% and 0W

Thanks to @madmartin in #1270

* Feature: Allow links in device profiles

These links will be shown on the hardware settings page.

* Doc: Added hint regarding HMS-xxxx-xT-NA inverters

* Feature: Added DeviceProfile for CASmo-DTU

Based on #1565

* Upgrade actions/upload-artifact from v3 to v4

* Upgrade actions/download-artifact from v3 to v4

* webapp: add app.js.gz

* Gridprofileparser: Added latest known values

Thanks to @stefan123t and @noone2k

* webapp: Fix lint errors

* Feature: Add DTU to Home Assistant Auto Discovery

This is based on PR 1365 from @CFenner with several fixes and optimizations

* Fix: Remove debug output as it floods the console

* Fix: Gridprofileparser: Add additional error handling if profile is unknown

* webapp: add app.js.gz

* Fix: Offset cache for "YieldDay" did not work correctly

* webapp: update dependencies

* webapp: add app.js.gz

* Fix: yarn.lock was outdated

* Fix: yarn build error

* Fix: Reset Yield day correction in combination with Zero Yield Day on Midnight lead to wrong values.

* Fix: Allow negative values in GridProfileParser

* Correct variable name

* Fix #1579: Static IP in Ethernet mode did not work correctly

* Feature: Added diagram to display

This is based on the idea of @Henrik-Ingenieur and was discussed in #1504

* webapp: update dependencies

* webapp: add app.js.gz

---------

Co-authored-by: Thomas Basler <thomas@familie-basler.net>
Co-authored-by: Pierre Kancir <pierre.kancir.emn@gmail.com>
2023-12-27 11:49:57 +01:00
helgeerbe
0085970567 Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2023-11-16 09:20:08 +01:00
Thomas Basler
07e2c5998b Build webapp using nodejs v20 2023-11-15 16:40:04 +01:00
Thomas Basler
3d837bdd29 Upgrade actions/setup-node from v3 to v4 2023-11-15 16:39:09 +01:00
Thomas Basler
7b9ddb5033 Upgrade actions/checkout from v3 to v4 2023-11-15 16:38:30 +01:00
Thomas Basler
bd26d09564 Fix: build action fails due to ModuleNotFoundError: No module named 'pkg_resources':
Fix #1500
2023-11-15 16:36:46 +01:00
helgeerbe
6f7470feb4 fix: ModuleNotFoundError: No module named 'pkg_resources': 2023-11-15 14:07:27 +01:00
helgeerbe
28f46471bf set unique name for test_build action 2023-11-15 13:59:22 +01:00
helgeerbe
a004e94e57 create test_build action 2023-11-15 13:59:09 +01:00
helgeerbe
933345d659 remove manual builds from action 2023-09-22 18:05:49 +02:00
Philipp Sandhaus
7142921021
Integration of Victron SmartShunt via VE.Direct (#452)
* Move Mppt logic to subclass

* Added Definitions for Shunts and restructering

* First integration of SmartShunt data into Web Interface

* Code cleanup

* VE.Direct: whitespace cleanup

* VE.Direct: manage HardwareSerial in unique_ptr

* VE.Direct: _efficiency is only needed by MPPT

* VE.Direct: keep as many members private as possible

* VE.Direct: use int8_t for pins (as before)

* VictronSmartShunt: _verboseLogging is not used

* VE.Direct: OR (off reason) is MPPT specific

it also applies to Phoenix inverters and Smart BuckBoost, but since
there is no support for those, the code is moved to the MPPT controller.

* Added Shunt alarms to liveview
Changed from double to int for several readings

* Update build.yml to allow manual builds

---------

Co-authored-by: Philipp Sandhaus <philipp.sandhaus@cewe.de>
Co-authored-by: Bernhard Kirchen <schlimmchen@posteo.net>
2023-09-22 17:24:57 +02:00
helgeerbe
2ba7ea2744 add filter for build action
- run build action only on master and development branch
- ignore v* tags from tbnobody
2023-08-30 09:54:30 +02:00
helgeerbe
8e4f234517 action build on each push 2023-08-10 13:21:35 +02:00
helgeerbe
5335ec1bde Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2023-08-04 12:21:16 +02:00
Thomas Basler
10ba10d792 cpplint: do not complain mutex include 2023-08-03 22:07:53 +02:00
helgeerbe
51a21de189 Fix: broken github build action, due to merge with core 2023-06-09 13:37:57 +02:00
helgeerbe
e68baa3086 Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2023-06-09 13:16:56 +02:00
Thomas Basler
c8fc123e81 Feature: Only require one binary file for initial flashing
There is no need anymore to upload multiple .bin files. All binaries are combined into one.
2023-06-09 00:03:01 +02:00
Thomas Basler
abfc2735ba Add separate property to platformio.ini to control the environments built by github actions
This is now independent of the default_envs which also affects local development
2023-06-08 22:48:04 +02:00
Thomas Basler
c1f64396d8 Always use a latest patch level of the softprops/action-gh-release 2023-06-08 20:43:46 +02:00
helgeerbe
2e811b7ab1 fix(action): ignore tags starting with v 2023-05-24 12:30:37 +02:00
helgeerbe
9f511fb985 fix(action): sort tags in chronological order 2023-05-23 11:43:26 +02:00
helgeerbe
556f3e0abf docs: Show as badge in readme original openDTU release number
Badge shows the openDTU release which is used as core to build openDTU-onBattery's release
2023-05-10 15:27:03 +02:00
helgeerbe
4abc89d43c build release only if tag starts with 2 2023-04-27 19:59:18 +02:00
helgeerbe
9ff9a8a6d6
Merge pull request #192 from madmartin/build-test
Fix: github build create opendtu-onbattery.* files
2023-04-27 19:09:21 +02:00
Martin Dummer
00490b80af build test 2023-04-27 06:50:30 +02:00
helgeerbe
89209b6bf7 Actions and badges reflects openDTU-onBattery now 2023-04-26 15:23:17 +02:00
Thomas Basler
4bcc7ce490 Fix: Use correct tag_resolver for github changelog 2023-04-12 21:02:06 +02:00
Thomas Basler
fef9abff93 Fix: Use commit title to categorize commits in changelog 2023-04-06 23:20:44 +02:00
Thomas Basler
a7b2d727f8 Fix: Show version number in web interface instead of git hash (if available)
see https://github.com/actions/checkout/issues/701 for further info
2023-04-05 21:20:28 +02:00
Thomas Basler
f1b0558913 Run automatic linting for the webapp 2023-04-05 20:19:31 +02:00
Thomas Basler
69838ba0cc Add MqttSubscribeParser, TimeoutHelper and ResetReason to cpplint 2023-04-05 20:02:39 +02:00
Thomas Basler
77e593777d Feature: Added possibility to create github releases with changelog 2023-04-05 19:38:31 +02:00
Thomas Basler
fd31cc80b5 Fix build workflow 2023-04-04 21:22:33 +02:00
Thomas Basler
d75ac167fa Fix building with platform-espressif32 5.3.0
The bootloader.bin is placed in the build output directory by the build script
2022-12-31 12:57:06 +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
fbe321228a ::set-output is deprecated. Replace it with new method 2022-11-09 18:44:53 +01:00
Thomas Basler
9302c9a46b Added sponsor link 2022-10-24 18:52:20 +02:00
Thomas Basler
912604c0f6 Add custom issue and feature request templates 2022-10-22 12:02:39 +02:00
Thomas Basler
d70b8adc1a Upload bins for all artifacts 2022-09-19 22:57:15 +02:00
Thomas Basler
caec363621 Fix slash vs backslash typo 2022-09-19 22:51:48 +02:00
Thomas Basler
05cb585da5 Fix artifacts generation 2022-09-19 22:46:54 +02:00
Thomas Basler
da5fd75fd9 Add all required bin files to artifacts and add documentation regarding target addresses 2022-09-19 22:25:04 +02:00
Thomas Basler
7dc0123140 Place custom partition config in artifact 2022-09-18 18:40:00 +02:00
Thomas Basler
77c53fbbfd Added cpplint check 2022-09-15 19:02:12 +02:00
Thomas Basler
f032633441 Don't run workflow when changing documentation and markdown files 2022-09-12 19:03:53 +02:00
dependabot[bot]
e378572f76
Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 01:27:02 +00:00
Thomas Basler
a3c93bb474 Configure dependabot 2022-08-06 03:26:30 +02:00
Thomas Basler
ebd0643618 Implement github action to build firmware 2022-07-12 23:51:03 +02:00