From e1e5d1bba24574e6dd3afbed270c58d69736ab16 Mon Sep 17 00:00:00 2001 From: balk77 Date: Mon, 16 Dec 2024 21:35:19 +0100 Subject: [PATCH 1/5] Create Readme.md --- Docs/Readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Docs/Readme.md diff --git a/Docs/Readme.md b/Docs/Readme.md new file mode 100644 index 0000000..d67064b --- /dev/null +++ b/Docs/Readme.md @@ -0,0 +1 @@ +Read me From d7ceb43164bfbf928ac92b7d59a5ef05b7677a38 Mon Sep 17 00:00:00 2001 From: balk77 Date: Tue, 17 Dec 2024 17:27:51 +0100 Subject: [PATCH 2/5] Update Readme.md --- Docs/Readme.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Docs/Readme.md b/Docs/Readme.md index d67064b..1dd29da 100644 --- a/Docs/Readme.md +++ b/Docs/Readme.md @@ -1 +1,14 @@ +# Getting Started +In order to get started with a 3 bar module, you should +1. Clone the repository to your computer +2. Make sure you have [ESPHome](https://esphome.io) installed +3. Copy the file [3pages_TotalExample.yml](/examples/3pages_TotalExample.yml) to the root of the repository +4. Create a file secrets.yaml and add the following + - wifi_ssid: "YOUR_SSID" + - wifi_password: "YOUR_PASSWORD" +5. + + + + Read me From 6fb5ff98649853d3ccb3c997edc7c9f00ea804d7 Mon Sep 17 00:00:00 2001 From: balk77 Date: Tue, 17 Dec 2024 20:38:30 +0100 Subject: [PATCH 3/5] Update Readme.md --- Docs/Readme.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Docs/Readme.md b/Docs/Readme.md index 1dd29da..c1d547a 100644 --- a/Docs/Readme.md +++ b/Docs/Readme.md @@ -1,12 +1,16 @@ # Getting Started In order to get started with a 3 bar module, you should -1. Clone the repository to your computer -2. Make sure you have [ESPHome](https://esphome.io) installed -3. Copy the file [3pages_TotalExample.yml](/examples/3pages_TotalExample.yml) to the root of the repository -4. Create a file secrets.yaml and add the following - - wifi_ssid: "YOUR_SSID" - - wifi_password: "YOUR_PASSWORD" -5. +1. Make sure you have [ESPHome](https://esphome.io) installed +2. Copy the file [3pages_TotalExample.yml](/examples/3pages_TotalExample.yml) to the root of the repository +3. Create a file secrets.yaml and add the following +``` +wifi_ssid: "YOUR_SSID" +wifi_password: "YOUR_PASSWORD" +``` +5. modify the yml file to your liking (optional) +6. Compile (Install, manual download) and download in modern format +7. Connect the B+ to your computer +8. Open a compatible browser such as Chrome and visit https://web.esphome.io From c93a22ef53d438887b6dfe0c169bde24a01b571d Mon Sep 17 00:00:00 2001 From: balk77 Date: Tue, 17 Dec 2024 20:39:10 +0100 Subject: [PATCH 4/5] Update Readme.md --- Docs/Readme.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Docs/Readme.md b/Docs/Readme.md index c1d547a..fb7c8de 100644 --- a/Docs/Readme.md +++ b/Docs/Readme.md @@ -11,8 +11,4 @@ wifi_password: "YOUR_PASSWORD" 6. Compile (Install, manual download) and download in modern format 7. Connect the B+ to your computer 8. Open a compatible browser such as Chrome and visit https://web.esphome.io - - - - -Read me +9. Load the downloaded file to your device and enjoy From 38649f813572024488f48e0cf7264360b319ed2a Mon Sep 17 00:00:00 2001 From: balk77 Date: Tue, 17 Dec 2024 20:45:41 +0100 Subject: [PATCH 5/5] Update 3pages_TotalExample.yml with page names Added page name at bottom of main display --- Examples/3pages_TotalExample.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Examples/3pages_TotalExample.yml b/Examples/3pages_TotalExample.yml index 73595c5..3d56585 100644 --- a/Examples/3pages_TotalExample.yml +++ b/Examples/3pages_TotalExample.yml @@ -46,6 +46,9 @@ packages: globals: - id: !extend nr_of_pages initial_value: '3' + - id: active_page_name + type: std::string + initial_value: "" font: - file: "https://github.com/web-fonts/ttf/raw/refs/heads/master/bpg-ingiri-arial-webfont.ttf" @@ -490,12 +493,18 @@ display: switch (id(actual_page)){ case 0: id(containers).execute(); + // Page name to be shown on page 1 + id(active_page_name) = "Page 1"; break; case 1: id(music_card).execute(20, 125); + // Page name to be shown on page 2 + id(active_page_name) = "Music page"; break; case 2: it.print(100, 160, id(font_arial20), "This is page 3!"); + // Page name to be shown on page 3 + id(active_page_name) = "Page 3"; break; } @@ -535,6 +544,9 @@ script: id(main_display).image(0, 208, id(icon_prev_page), ImageAlign::TOP_LEFT, id(red)); id(main_display).image(320, 208, id(icon_next_page), ImageAlign::TOP_RIGHT, id(red)); // + //>>> Show page name at bottom of display + id(main_display).printf(160, 238, id(font_arial20), id(white), TextAlign::BASELINE_CENTER, "%s", id(active_page_name).c_str()); + // //>>> temperature inside: id(main_display).image(36, 15, id(icon_temp_inside), ImageAlign::TOP_CENTER, id(red)); id(main_display).printf(36, 80, id(font_arial20), id(white), TextAlign::TOP_CENTER , "%.1f°", id(inside_temperature).state);