Skip to content

Commit 178d40d

Browse files
committed
Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development
2 parents 569edbe + 71c937c commit 178d40d

File tree

5 files changed

+114
-41
lines changed

5 files changed

+114
-41
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,7 @@ It is recommended to make all changes only in the 'platformio_override.ini', th
395395

396396
### using the pre-compiled .bin files
397397

398-
The pre-compiled files can be found on the [github page](https://github.com/tbnobody/OpenDTU) in the tab "Actions" and the sub menu "OpenDTU Build". Just choose the latest build from the master branch (search for "master" in the blue font text but click on the white header text!). You need to be logged in with your github account to download the files.
399-
Use a ESP32 flash tool of your choice (see next chapter) and flash the `.bin` files to the right addresses:
398+
The pre-compiled binary files can be found here on the [github page behind "Releases"](https://github.com/tbnobody/OpenDTU/releases) (look at the right column). For a first installation on an ESP32, download `opendtu-generic.zip`, unpack and use a ESP32 flash tool of your choice (see next chapter) to flash the `.bin` files to the right addresses:
400399

401400
| Address | File |
402401
| ---------| ---------------------- |
@@ -405,7 +404,7 @@ Use a ESP32 flash tool of your choice (see next chapter) and flash the `.bin` fi
405404
| 0xe000 | boot_app0.bin |
406405
| 0x10000 | opendtu-*.bin |
407406

408-
For further updates you can just use the web interface and upload the `opendtu-*.bin` file.
407+
For further updates download `opendtu-generic.bin` and use the over-the-air firmware update in OpenDTU's web interface.
409408

410409
#### Flash with esptool.py (Linux)
411410

platformio.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ extra_configs =
1515

1616
[env]
1717
framework = arduino
18-
; auto build on github failes with 6.2.0
19-
;platform = espressif32@>=6.1.0
20-
platform = espressif32@=6.1.0
18+
2119

2220
build_flags =
2321
-DCOMPONENT_EMBED_FILES=webapp_dist/index.html.gz:webapp_dist/zones.json.gz:webapp_dist/favicon.ico:webapp_dist/js/app.js.gz
@@ -237,4 +235,5 @@ build_flags = ${env.build_flags}
237235
-DCMT_GPIO2=3
238236
-DCMT_GPIO3=8
239237
-DCMT_SDIO=5
240-
-DARDUINO_USB_MODE=1
238+
-DARDUINO_USB_MODE=1
239+
-DARDUINO_USB_CDC_ON_BOOT=1

src/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ void setup()
3535
{
3636
// Initialize serial output
3737
Serial.begin(SERIAL_BAUDRATE);
38+
#if ARDUINO_USB_CDC_ON_BOOT
39+
Serial.setTxTimeoutMs(0);
40+
delay(100);
41+
#else
3842
while (!Serial)
3943
yield();
44+
#endif
4045
MessageOutput.println();
4146
MessageOutput.println("Starting OpenDTU");
4247

webapp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@rushstack/eslint-patch": "^1.2.0",
2626
"@tsconfig/node18": "^2.0.0",
2727
"@types/bootstrap": "^5.2.6",
28-
"@types/node": "^18.16.2",
28+
"@types/node": "^18.16.3",
2929
"@types/spark-md5": "^3.0.2",
3030
"@vitejs/plugin-vue": "^4.2.1",
3131
"@vue/eslint-config-typescript": "^11.0.3",
@@ -36,9 +36,9 @@
3636
"sass": "^1.62.1",
3737
"terser": "^5.17.1",
3838
"typescript": "^5.0.4",
39-
"vite": "^4.3.3",
39+
"vite": "^4.3.4",
4040
"vite-plugin-compression": "^0.5.1",
4141
"vite-plugin-css-injected-by-js": "^3.1.0",
42-
"vue-tsc": "^1.6.1"
42+
"vue-tsc": "^1.6.3"
4343
}
4444
}

webapp/yarn.lock

Lines changed: 101 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.11.tgz#68bb07ab3d380affa9a3f96728df07969645d2d9"
88
integrity sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ==
99

10+
"@babel/parser@^7.20.15", "@babel/parser@^7.21.3":
11+
version "7.21.8"
12+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.8.tgz#642af7d0333eab9c0ad70b14ac5e76dbde7bfdf8"
13+
integrity sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==
14+
1015
"@esbuild/[email protected]":
1116
version "0.17.12"
1217
resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.17.12.tgz#15a8e2b407d03989b899e325151dc2e96d19c620"
@@ -366,10 +371,10 @@
366371
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3"
367372
integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==
368373

369-
"@types/node@^18.16.2":
370-
version "18.16.2"
371-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.2.tgz#2f610ea71034b3971c312192377f8a7178eb57f1"
372-
integrity sha512-GQW/JL/5Fz/0I8RpeBG9lKp0+aNcXEaVL71c0D2Q0QHDTFvlYKT7an0onCUXj85anv7b4/WesqdfchLc0jtsCg==
374+
"@types/node@^18.16.3":
375+
version "18.16.3"
376+
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.3.tgz#6bda7819aae6ea0b386ebc5b24bdf602f1b42b01"
377+
integrity sha512-OPs5WnnT1xkCBiuQrZA4+YAV4HEJejmHneyraIaxsbev5yCEr6KMwINNFP9wQeFIw8FWcoTqF3vQsa5CDaI+8Q==
373378

374379
"@types/semver@^7.3.12":
375380
version "7.3.13"
@@ -491,28 +496,28 @@
491496
dependencies:
492497
"@volar/language-core" "1.4.1"
493498

494-
"@volar/[email protected].1":
495-
version "1.6.1"
496-
resolved "https://registry.yarnpkg.com/@volar/vue-language-core/-/vue-language-core-1.6.1.tgz#41bcce44d543e461a4e1aa912af677ef862933a2"
497-
integrity sha512-lIuxzvIx5U8MfoF+vrXNG1aZgmk8T0uyPEwI8g3EUJdESuU0qIKM84o+L4TUw77IQCYXiSefaJmsSSY87/VWnA==
499+
"@volar/[email protected].3":
500+
version "1.6.3"
501+
resolved "https://registry.yarnpkg.com/@volar/vue-language-core/-/vue-language-core-1.6.3.tgz#20113de55c21f210dd5dc740891b5f3d8f9c0bac"
502+
integrity sha512-e9OTDCPa8Wuh0ORhD4z++qTIcrsrqcI9waspr93YcQCq6j+Q+JTFuy7HBSQgyezSAsP6x1WWokKVk4fWWDJQOw==
498503
dependencies:
499504
"@volar/language-core" "1.4.1"
500505
"@volar/source-map" "1.4.1"
501-
"@vue/compiler-dom" "^3.2.0"
502-
"@vue/compiler-sfc" "^3.2.0"
503-
"@vue/reactivity" "^3.2.0"
504-
"@vue/shared" "^3.2.0"
506+
"@vue/compiler-dom" "^3.3.0-beta.3"
507+
"@vue/compiler-sfc" "^3.3.0-beta.3"
508+
"@vue/reactivity" "^3.3.0-beta.3"
509+
"@vue/shared" "^3.3.0-beta.3"
505510
minimatch "^9.0.0"
506511
muggle-string "^0.2.2"
507512
vue-template-compiler "^2.7.14"
508513

509-
"@volar/[email protected].1":
510-
version "1.6.1"
511-
resolved "https://registry.yarnpkg.com/@volar/vue-typescript/-/vue-typescript-1.6.1.tgz#788b7d454e9ba66ff83695ecc2e17939e5ac9222"
512-
integrity sha512-5mhG6Lv2niq/AGNvHy4RSAGlJhkR+EcH7zRQ19JlffzhWDVXEdDp8luSSabCkrJzejXIMh0rsTGlKy2EFYy7vQ==
514+
"@volar/[email protected].3":
515+
version "1.6.3"
516+
resolved "https://registry.yarnpkg.com/@volar/vue-typescript/-/vue-typescript-1.6.3.tgz#09ab00e86573a6552219bcdec8efe03ba454730d"
517+
integrity sha512-Dz29Qym33P1MSZDTZJ6PPLN1TLQfkX+g2pRnHqLCsFdSUu4yWYnElBURCn5WJkekxV/v+k2T43aur2RCSY3Ovg==
513518
dependencies:
514519
"@volar/typescript" "1.4.1"
515-
"@volar/vue-language-core" "1.6.1"
520+
"@volar/vue-language-core" "1.6.3"
516521

517522
518523
version "3.2.47"
@@ -524,15 +529,33 @@
524529
estree-walker "^2.0.2"
525530
source-map "^0.6.1"
526531

527-
"@vue/[email protected]", "@vue/compiler-dom@^3.2.0":
532+
533+
version "3.3.0-beta.3"
534+
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.3.0-beta.3.tgz#3cc98d9ef25d2f890717f8a15fe65870910e984f"
535+
integrity sha512-mv2rPo4JHou6ebm7+U/wO1HpA6W1zDfTqbt4fqjoXrMwU4DWNgRcLKTXG6G3cXV4mOe+2YgWspfxEzo7fPTMKg==
536+
dependencies:
537+
"@babel/parser" "^7.21.3"
538+
"@vue/shared" "3.3.0-beta.3"
539+
estree-walker "^2.0.2"
540+
source-map-js "^1.0.2"
541+
542+
528543
version "3.2.47"
529544
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.2.47.tgz#a0b06caf7ef7056939e563dcaa9cbde30794f305"
530545
integrity sha512-dBBnEHEPoftUiS03a4ggEig74J2YBZ2UIeyfpcRM2tavgMWo4bsEfgCGsu+uJIL/vax9S+JztH8NmQerUo7shQ==
531546
dependencies:
532547
"@vue/compiler-core" "3.2.47"
533548
"@vue/shared" "3.2.47"
534549

535-
"@vue/[email protected]", "@vue/compiler-sfc@^3.2.0", "@vue/compiler-sfc@^3.2.47":
550+
"@vue/[email protected]", "@vue/compiler-dom@^3.3.0-beta.3":
551+
version "3.3.0-beta.3"
552+
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.3.0-beta.3.tgz#8b1d76428413d51d76a7b3f567ccea47428d5ebe"
553+
integrity sha512-e7VpjN9wYiuJdJos6Uoe501CzdMkfaEr/27Ks4Ss7Irtcj5YA/S1OROZ35Xl2Pc3ctx6beq5RpcOvnMqh0hcaA==
554+
dependencies:
555+
"@vue/compiler-core" "3.3.0-beta.3"
556+
"@vue/shared" "3.3.0-beta.3"
557+
558+
"@vue/[email protected]", "@vue/compiler-sfc@^3.2.47":
536559
version "3.2.47"
537560
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.2.47.tgz#1bdc36f6cdc1643f72e2c397eb1a398f5004ad3d"
538561
integrity sha512-rog05W+2IFfxjMcFw10tM9+f7i/+FFpZJJ5XHX72NP9eC2uRD+42M3pYcQqDXVYoj74kHMSEdQ/WmCjt8JFksQ==
@@ -548,6 +571,22 @@
548571
postcss "^8.1.10"
549572
source-map "^0.6.1"
550573

574+
"@vue/compiler-sfc@^3.3.0-beta.3":
575+
version "3.3.0-beta.3"
576+
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.3.0-beta.3.tgz#8d60a57eaf6a8675463c4640124dafecf78c8961"
577+
integrity sha512-6shZNooetShjSMHJvgVoE0EM8pOMV5vnrzsHoCU06stzV+kqRJQpbN7xf2s9wK2fgHMIBSMINrM9AuZiQnNCJg==
578+
dependencies:
579+
"@babel/parser" "^7.20.15"
580+
"@vue/compiler-core" "3.3.0-beta.3"
581+
"@vue/compiler-dom" "3.3.0-beta.3"
582+
"@vue/compiler-ssr" "3.3.0-beta.3"
583+
"@vue/reactivity-transform" "3.3.0-beta.3"
584+
"@vue/shared" "3.3.0-beta.3"
585+
estree-walker "^2.0.2"
586+
magic-string "^0.30.0"
587+
postcss "^8.1.10"
588+
source-map-js "^1.0.2"
589+
551590
552591
version "3.2.47"
553592
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.2.47.tgz#35872c01a273aac4d6070ab9d8da918ab13057ee"
@@ -556,6 +595,14 @@
556595
"@vue/compiler-dom" "3.2.47"
557596
"@vue/shared" "3.2.47"
558597

598+
599+
version "3.3.0-beta.3"
600+
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.3.0-beta.3.tgz#179e2c0a4de617addfb6ebc0776225265f5c7829"
601+
integrity sha512-egJ0lEVAod3Hpnw96cJ/0a9qv5f5h5/VCBpKYT8scqkzoMsikh8AJant2omokBCL/Ut5UAMLVQlA5b66+2Ys/g==
602+
dependencies:
603+
"@vue/compiler-dom" "3.3.0-beta.3"
604+
"@vue/shared" "3.3.0-beta.3"
605+
559606
"@vue/devtools-api@^6.2.1", "@vue/devtools-api@^6.4.5":
560607
version "6.4.5"
561608
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.4.5.tgz#d54e844c1adbb1e677c81c665ecef1a2b4bb8380"
@@ -581,13 +628,31 @@
581628
estree-walker "^2.0.2"
582629
magic-string "^0.25.7"
583630

584-
"@vue/[email protected]", "@vue/reactivity@^3.2.0":
631+
632+
version "3.3.0-beta.3"
633+
resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.3.0-beta.3.tgz#424a70d43fb4893131b2c1fba9a9e6806ebeabe0"
634+
integrity sha512-aM3TgBca9QMMu/9B9ASRVvckeZpAdJO9nmQh5UCznhoDYjVxQPS+sCQvH6TLOjPB1MDQMVQYg4ZiPqfVVo7NbA==
635+
dependencies:
636+
"@babel/parser" "^7.20.15"
637+
"@vue/compiler-core" "3.3.0-beta.3"
638+
"@vue/shared" "3.3.0-beta.3"
639+
estree-walker "^2.0.2"
640+
magic-string "^0.30.0"
641+
642+
585643
version "3.2.47"
586644
resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.47.tgz#1d6399074eadfc3ed35c727e2fd707d6881140b6"
587645
integrity sha512-7khqQ/75oyyg+N/e+iwV6lpy1f5wq759NdlS1fpAhFXa8VeAIKGgk2E/C4VF59lx5b+Ezs5fpp/5WsRYXQiKxQ==
588646
dependencies:
589647
"@vue/shared" "3.2.47"
590648

649+
"@vue/reactivity@^3.3.0-beta.3":
650+
version "3.3.0-beta.3"
651+
resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.3.0-beta.3.tgz#8f4929df4195f9d1b5a083d4c66d22932dfcc89d"
652+
integrity sha512-9VjWfWgZJ18YXEkfnDfZr33RyLBa6zc0RARLkMqMApWvM26eusZAZ4hhyxlgODBU/mEFk4XOGIAtwwSQedA0MQ==
653+
dependencies:
654+
"@vue/shared" "3.3.0-beta.3"
655+
591656
592657
version "3.2.47"
593658
resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.2.47.tgz#406ebade3d5551c00fc6409bbc1eeb10f32e121d"
@@ -613,11 +678,16 @@
613678
"@vue/compiler-ssr" "3.2.47"
614679
"@vue/shared" "3.2.47"
615680

616-
"@vue/[email protected]", "@vue/shared@^3.2.0":
681+
617682
version "3.2.47"
618683
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.47.tgz#e597ef75086c6e896ff5478a6bfc0a7aa4bbd14c"
619684
integrity sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ==
620685

686+
"@vue/[email protected]", "@vue/shared@^3.3.0-beta.3":
687+
version "3.3.0-beta.3"
688+
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.3.0-beta.3.tgz#dc19df6124e157030b3e7c8f471f497f9528a7be"
689+
integrity sha512-st1SnB/Bkbb9TsieeI4TRX9TqHYIR5wvIma3ZtEben55EYSWa1q5u2BhTNgABSdH+rv3Xwfrvpwh5PmCw6Y53g==
690+
621691
"@vue/tsconfig@^0.3.2":
622692
version "0.3.2"
623693
resolved "https://registry.yarnpkg.com/@vue/tsconfig/-/tsconfig-0.3.2.tgz#612ba0b6aefde5ac1a513545eee7d4ed01c407f5"
@@ -2368,10 +2438,10 @@ vite-plugin-css-injected-by-js@^3.1.0:
23682438
resolved "https://registry.yarnpkg.com/vite-plugin-css-injected-by-js/-/vite-plugin-css-injected-by-js-3.1.0.tgz#d1160c975d40f256692e2465832e6ff18c22b3a3"
23692439
integrity sha512-qogCmpocZfcbSAYZQjS88ieIY0PzLUm7RkLFWFgAxkXdz3N6roZbSTNTxeIOj5IxFbZWACUPuVBBoo6qCuXDcw==
23702440

2371-
vite@^4.3.3:
2372-
version "4.3.3"
2373-
resolved "https://registry.yarnpkg.com/vite/-/vite-4.3.3.tgz#26adb4aa01439fc4546c480ea547674d87289396"
2374-
integrity sha512-MwFlLBO4udZXd+VBcezo3u8mC77YQk+ik+fbc0GZWGgzfbPP+8Kf0fldhARqvSYmtIWoAJ5BXPClUbMTlqFxrA==
2441+
vite@^4.3.4:
2442+
version "4.3.4"
2443+
resolved "https://registry.yarnpkg.com/vite/-/vite-4.3.4.tgz#1c518d763d5a700d890c3a19ab59220f06e7a7d5"
2444+
integrity sha512-f90aqGBoxSFxWph2b39ae2uHAxm5jFBBdnfueNxZAT1FTpM13ccFQExCaKbR2xFW5atowjleRniQ7onjJ22QEg==
23752445
dependencies:
23762446
esbuild "^0.17.5"
23772447
postcss "^8.4.23"
@@ -2430,13 +2500,13 @@ vue-template-compiler@^2.7.14:
24302500
de-indent "^1.0.2"
24312501
he "^1.2.0"
24322502

2433-
vue-tsc@^1.6.1:
2434-
version "1.6.1"
2435-
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-1.6.1.tgz#9fbc3ee8ba643c41e051c4f04b3af847b7b6ef59"
2436-
integrity sha512-cKKKrv98MdU9kgd434fkjcIpU7a5bUflhklF9usf/GzebjmZpaht7tYGm/MNdBz7V9icySceCzCr3RiG02mOJg==
2503+
vue-tsc@^1.6.3:
2504+
version "1.6.3"
2505+
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-1.6.3.tgz#db49f0060c595ec3123d66086274b891d7e6282f"
2506+
integrity sha512-q7l27j0eSJgyGat0khetrvoeaAHieRZFnf8WAJyKvB3eF0AxmLqfs4ahwZhaojBJjZ/lAXZa+Xt8EX54KzQ34w==
24372507
dependencies:
2438-
"@volar/vue-language-core" "1.6.1"
2439-
"@volar/vue-typescript" "1.6.1"
2508+
"@volar/vue-language-core" "1.6.3"
2509+
"@volar/vue-typescript" "1.6.3"
24402510
semver "^7.3.8"
24412511

24422512
vue@^3.2.47:

0 commit comments

Comments
 (0)