* 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>
245 lines
6.2 KiB
INI
245 lines
6.2 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
default_envs = generic_esp32
|
|
extra_configs =
|
|
platformio_override.ini
|
|
|
|
[env]
|
|
; Make sure to NOT add any spaces in the custom_ci_action property
|
|
; (also the position in the file is important)
|
|
custom_ci_action = generic,generic_esp32,generic_esp32s3,generic_esp32s3_usb
|
|
|
|
framework = arduino
|
|
platform = espressif32@6.3.2
|
|
|
|
build_flags =
|
|
-DPIOENV=\"$PIOENV\"
|
|
-D_TASK_STD_FUNCTION=1
|
|
-Wall -Wextra -Werror -Wunused -Wmisleading-indentation -Wduplicated-cond -Wlogical-op -Wnull-dereference
|
|
-std=c++17
|
|
-std=gnu++17
|
|
build_unflags =
|
|
-std=gnu++11
|
|
|
|
lib_deps =
|
|
https://github.com/yubox-node-org/ESPAsyncWebServer
|
|
bblanchon/ArduinoJson @ ^6.21.4
|
|
https://github.com/bertmelis/espMqttClient.git#v1.5.0
|
|
nrf24/RF24 @ ^1.4.8
|
|
olikraus/U8g2 @ ^2.35.8
|
|
buelowp/sunset @ ^1.1.7
|
|
https://github.com/arkhipenko/TaskScheduler#testing
|
|
https://github.com/coryjfowler/MCP_CAN_lib
|
|
plerup/EspSoftwareSerial@^8.0.1
|
|
mobizt/FirebaseJson @ ^3.0.6
|
|
rweather/Crypto@^0.4.0
|
|
|
|
extra_scripts =
|
|
pre:pio-scripts/auto_firmware_version.py
|
|
pre:pio-scripts/patch_apply.py
|
|
post:pio-scripts/create_factory_bin.py
|
|
|
|
board_build.partitions = partitions_custom.csv
|
|
board_build.filesystem = littlefs
|
|
board_build.embed_files =
|
|
webapp_dist/index.html.gz
|
|
webapp_dist/zones.json.gz
|
|
webapp_dist/favicon.ico
|
|
webapp_dist/favicon.png
|
|
webapp_dist/js/app.js.gz
|
|
webapp_dist/site.webmanifest
|
|
|
|
monitor_filters = esp32_exception_decoder, time, log2file, colorize
|
|
monitor_speed = 115200
|
|
upload_protocol = esptool
|
|
|
|
; Specify port in platformio_override.ini. Comment out (add ; in front of line) to use auto detection.
|
|
; monitor_port = COM4
|
|
; upload_port = COM4
|
|
|
|
|
|
[env:generic_esp32]
|
|
board = esp32dev
|
|
build_flags = ${env.build_flags}
|
|
|
|
|
|
[env:generic_esp32c3]
|
|
board = esp32-c3-devkitc-02
|
|
custom_patches = esp32c3
|
|
build_flags = ${env.build_flags}
|
|
|
|
|
|
[env:generic_esp32c3_usb]
|
|
board = esp32-c3-devkitc-02
|
|
custom_patches = esp32c3
|
|
build_flags = ${env.build_flags}
|
|
-DARDUINO_USB_MODE=1
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
|
|
|
|
[env:generic_esp32s3]
|
|
board = esp32-s3-devkitc-1
|
|
build_flags = ${env.build_flags}
|
|
|
|
|
|
[env:generic_esp32s3_usb]
|
|
board = esp32-s3-devkitc-1
|
|
upload_protocol = esp-builtin
|
|
build_flags = ${env.build_flags}
|
|
-DARDUINO_USB_MODE=1
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
|
|
|
|
[env:generic]
|
|
board = esp32dev
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=19
|
|
-DHOYMILES_PIN_MOSI=23
|
|
-DHOYMILES_PIN_SCLK=18
|
|
-DHOYMILES_PIN_IRQ=16
|
|
-DHOYMILES_PIN_CE=4
|
|
-DHOYMILES_PIN_CS=5
|
|
|
|
|
|
[env:olimex_esp32_poe]
|
|
; https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware
|
|
board = esp32-poe
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=15
|
|
-DHOYMILES_PIN_MOSI=2
|
|
-DHOYMILES_PIN_SCLK=14
|
|
-DHOYMILES_PIN_IRQ=13
|
|
-DHOYMILES_PIN_CE=16
|
|
-DHOYMILES_PIN_CS=5
|
|
-DOPENDTU_ETHERNET
|
|
|
|
|
|
[env:olimex_esp32_evb]
|
|
; https://www.olimex.com/Products/IoT/ESP32/ESP32-EVB/open-source-hardware
|
|
board = esp32-evb
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=15
|
|
-DHOYMILES_PIN_MOSI=2
|
|
-DHOYMILES_PIN_SCLK=14
|
|
-DHOYMILES_PIN_IRQ=13
|
|
-DHOYMILES_PIN_CE=16
|
|
-DHOYMILES_PIN_CS=17
|
|
-DOPENDTU_ETHERNET
|
|
|
|
|
|
[env:d1_mini_esp32]
|
|
board = wemos_d1_mini32
|
|
build_flags =
|
|
${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=19
|
|
-DHOYMILES_PIN_MOSI=23
|
|
-DHOYMILES_PIN_SCLK=18
|
|
-DHOYMILES_PIN_IRQ=16
|
|
-DHOYMILES_PIN_CE=17
|
|
-DHOYMILES_PIN_CS=5
|
|
-DVICTRON_PIN_TX=21
|
|
-DVICTRON_PIN_RX=22
|
|
-DPYLONTECH_PIN_RX=27
|
|
-DPYLONTECH_PIN_TX=14
|
|
-DHUAWEI_PIN_MISO=12
|
|
-DHUAWEI_PIN_MOSI=13
|
|
-DHUAWEI_PIN_SCLK=26
|
|
-DHUAWEI_PIN_IRQ=25
|
|
-DHUAWEI_PIN_CS=15
|
|
-DHUAWEI_PIN_POWER=33
|
|
|
|
[env:wt32_eth01]
|
|
; http://www.wireless-tag.com/portfolio/wt32-eth01/
|
|
board = wt32-eth01
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=4
|
|
-DHOYMILES_PIN_MOSI=2
|
|
-DHOYMILES_PIN_SCLK=32
|
|
-DHOYMILES_PIN_IRQ=33
|
|
-DHOYMILES_PIN_CE=14
|
|
-DHOYMILES_PIN_CS=15
|
|
-DOPENDTU_ETHERNET
|
|
|
|
|
|
[env:esp_s3_12k_kit]
|
|
; https://www.waveshare.com/wiki/NodeMCU-ESP-S3-12K-Kit
|
|
board = esp32-s3-devkitc-1
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=16
|
|
-DHOYMILES_PIN_MOSI=17
|
|
-DHOYMILES_PIN_SCLK=18
|
|
-DHOYMILES_PIN_IRQ=3
|
|
-DHOYMILES_PIN_CE=4
|
|
-DHOYMILES_PIN_CS=5
|
|
|
|
|
|
[env:lolin32_lite]
|
|
; https://www.makershop.de/plattformen/esp8266/wemos-lolin32/
|
|
; https://www.az-delivery.de/products/esp32-lolin-lolin32
|
|
board = lolin32_lite
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=19
|
|
-DHOYMILES_PIN_MOSI=23
|
|
-DHOYMILES_PIN_SCLK=18
|
|
-DHOYMILES_PIN_IRQ=16
|
|
-DHOYMILES_PIN_CE=17
|
|
-DHOYMILES_PIN_CS=5
|
|
|
|
[env:lolin_s2_mini]
|
|
board = lolin_s2_mini
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=13
|
|
-DHOYMILES_PIN_MOSI=11
|
|
-DHOYMILES_PIN_SCLK=12
|
|
-DHOYMILES_PIN_CS=10
|
|
-DHOYMILES_PIN_IRQ=4
|
|
-DHOYMILES_PIN_CE=5
|
|
|
|
|
|
[env:opendtufusionv1]
|
|
board = esp32-s3-devkitc-1
|
|
upload_protocol = esp-builtin
|
|
debug_tool = esp-builtin
|
|
debug_speed = 12000
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=48
|
|
-DHOYMILES_PIN_MOSI=35
|
|
-DHOYMILES_PIN_SCLK=36
|
|
-DHOYMILES_PIN_IRQ=47
|
|
-DHOYMILES_PIN_CE=38
|
|
-DHOYMILES_PIN_CS=37
|
|
-DLED0=17
|
|
-DLED1=18
|
|
-DARDUINO_USB_MODE=1
|
|
|
|
[env:opendtufusionv2]
|
|
board = esp32-s3-devkitc-1
|
|
upload_protocol = esp-builtin
|
|
debug_tool = esp-builtin
|
|
debug_speed = 12000
|
|
build_flags = ${env.build_flags}
|
|
-DHOYMILES_PIN_MISO=48
|
|
-DHOYMILES_PIN_MOSI=35
|
|
-DHOYMILES_PIN_SCLK=36
|
|
-DHOYMILES_PIN_IRQ=47
|
|
-DHOYMILES_PIN_CE=38
|
|
-DHOYMILES_PIN_CS=37
|
|
-DLED0=17
|
|
-DLED1=18
|
|
-DCMT_CLK=6
|
|
-DCMT_CS=4
|
|
-DCMT_FCS=21
|
|
-DCMT_GPIO2=3
|
|
-DCMT_GPIO3=8
|
|
-DCMT_SDIO=5
|
|
-DARDUINO_USB_MODE=1
|
|
-DARDUINO_USB_CDC_ON_BOOT=1 |