Compare commits

...

5 Commits

Author SHA1 Message Date
Paul Wieland 5420f67fc0
Merge ee1a970647 into c11a748608 2024-11-13 11:48:46 -08:00
Paul Wieland c11a748608 display diagram 2024-11-13 04:57:31 -05:00
Paul Wieland 8dd09d2c29 display diagram 2024-11-13 04:43:00 -05:00
Paul Wieland ee1a970647 ref: main 2024-11-12 13:47:57 -05:00
Paul Wieland fda14ac1b5 revert build to main branch 2024-11-12 13:45:54 -05:00
11 changed files with 17 additions and 20 deletions

View File

@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- ratgdo32
- main
pull_request:
schedule:
- cron: '0 4 * * 1'
@ -97,7 +97,7 @@ jobs:
consolidate:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/ratgdo32'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
name: Consolidate firmwares
runs-on: ubuntu-latest
needs: build
@ -119,7 +119,7 @@ jobs:
path: output
deploy:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/ratgdo32'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: consolidate

View File

@ -3,7 +3,7 @@ external_components:
- source:
type: git
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
refresh: 1s
# - source:
# type: local

View File

@ -4,7 +4,7 @@ external_components:
- source:
type: git
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
refresh: 1s
# - source:
# type: local

View File

@ -4,7 +4,7 @@ external_components:
- source:
type: git
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
refresh: 1s
# - source:
# type: local

View File

@ -295,15 +295,12 @@
var hardware = document.querySelector('input[name="hardware"]:checked').value;
var diagram_protocol = protocol.replace("v1","").replace("v2","");
var img = new Image();
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
if(img.height !== 0){
console.log(`diagram: ${img.src}`);
document.querySelector("#wiring_diagram").src = img.src;
}else{
console.log(`img not found: ${img.src}`);
document.querySelector("#wiring_diagram").src = "wiring_diagrams/v25iboard_secplus.png";
var img = document.querySelector("#wiring_diagram");
img.onerror = function() {
console.log(`img not found: ${this.src}`);
this.src = "wiring_diagrams/v25iboard_secplus.png";
}
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
if(protocol !== "secplusv2" && (hardware === "v2board_esp8266_d1_mini" || hardware === "v2board_esp32_d1_mini")){
alert("ratgdo version 2.0 only works with Security + 2.0");

View File

@ -30,7 +30,7 @@ dashboard_import:
packages:
remote_package:
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
files: [base.yaml]
refresh: 1s
# remote_package: !include

View File

@ -29,7 +29,7 @@ dashboard_import:
packages:
remote_package:
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
files: [base_drycontact.yaml]
refresh: 1s
# remote_package: !include

View File

@ -30,7 +30,7 @@ dashboard_import:
packages:
remote_package:
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
files: [base_secplusv1.yaml]
refresh: 1s
# remote_package: !include

View File

@ -30,7 +30,7 @@ dashboard_import:
packages:
remote_package:
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
files: [base.yaml]
refresh: 1s
# remote_package: !include

View File

@ -29,7 +29,7 @@ dashboard_import:
packages:
remote_package:
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
files: [base_drycontact.yaml]
refresh: 1s
# remote_package: !include

View File

@ -30,7 +30,7 @@ dashboard_import:
packages:
remote_package:
url: https://github.com/ratgdo/esphome-ratgdo
ref: ratgdo32
ref: main
files: [base_secplusv1.yaml]
refresh: 1s
# remote_package: !include