Małe co nieco ode mnie ;)

User avatar
veeroos
Posts: 1081
Joined: Sun Mar 20, 2022 9:30 am
Location: Głogów
Has thanked: 1 time
Been thanked: 9 times

Post

Hej. Tak z nowym rokiem chcę się z wami podzielić jedną funkcją, którą używam w swoich projektach, która z pewnością się przyda wszystkim tworzącym swoje oprogramowanie ;-). Mianowicie jest to wywołanie strony do Update'u firmwaru z poziomu przycisku ;-).
przycisk_update.zip
no więc tak w waszych programach musicie zrobić tylko coś takiego.
obok swojego programu głównego w tym samym folderze umieszczacie plik "przycisk_update.h". Następnie:
deklarujecie bibliotekę:

Code: Select all

#include "przycisk_update.h"
w setupie:

Code: Select all

httpUpdater.setup(suplaServer.getServerPtr(), "/update");
new Supla::Html::UpdateParameter;
i to wszystko. Działa to zarówno z ESP8266 jak i ESP32.
You do not have the required permissions to view the files attached to this post.
Last edited by veeroos on Sun Jan 05, 2025 6:09 pm, edited 1 time in total.
Zamel Mew-01, Zamel PEW-01, Zamel SBW-01, Zamel THW-01, Zamel SRW-01, Zamel mSLW-02, Auraton BOX + Indor Sensor, Airly Gate By Veeroos, Zigbee to Supla Gateway + sensors, Zamel SGW-01 and more

https://github.com/v33r005
User avatar
SOYER
Posts: 1623
Joined: Wed Aug 10, 2022 12:29 pm
Location: Kryry
Been thanked: 2 times

Post

Toś wymyślił, od dawna tego wszyscy używają.... :D :D :D
https://youtube.com/@tomaszhamer8134?si=_J1cT_QWsXxgt1Fm
https://kryry01.aqi.eco/pl
https://app.weathercloud.net/d4311785603
https://github.com/Soyer79
User avatar
veeroos
Posts: 1081
Joined: Sun Mar 20, 2022 9:30 am
Location: Głogów
Has thanked: 1 time
Been thanked: 9 times

Post

SOYER wrote: Sun Jan 05, 2025 6:09 pm Toś wymyślił, od dawna tego wszyscy używają.... :D :D :D
na pewno każdy zrobił coś takiego? ;)
Zrzut ekranu 2025-01-05 191021.jpg
You do not have the required permissions to view the files attached to this post.
Zamel Mew-01, Zamel PEW-01, Zamel SBW-01, Zamel THW-01, Zamel SRW-01, Zamel mSLW-02, Auraton BOX + Indor Sensor, Airly Gate By Veeroos, Zigbee to Supla Gateway + sensors, Zamel SGW-01 and more

https://github.com/v33r005
User avatar
SOYER
Posts: 1623
Joined: Wed Aug 10, 2022 12:29 pm
Location: Kryry
Been thanked: 2 times

Post

Tak, wszyscy to mają... Przecież to standardowy przykład w arduino ide dla esp. Może odrobine inaczej wygląda... , ale robi to samo.
https://youtube.com/@tomaszhamer8134?si=_J1cT_QWsXxgt1Fm
https://kryry01.aqi.eco/pl
https://app.weathercloud.net/d4311785603
https://github.com/Soyer79
User avatar
SOYER
Posts: 1623
Joined: Wed Aug 10, 2022 12:29 pm
Location: Kryry
Been thanked: 2 times

Post

https://youtube.com/@tomaszhamer8134?si=_J1cT_QWsXxgt1Fm
https://kryry01.aqi.eco/pl
https://app.weathercloud.net/d4311785603
https://github.com/Soyer79
User avatar
veeroos
Posts: 1081
Joined: Sun Mar 20, 2022 9:30 am
Location: Głogów
Has thanked: 1 time
Been thanked: 9 times

Post

mój przycisk jest ustandaryzowany i otwiera od razu stronę w przeglądarce nie trzeba wiedzieć na jaką stronę trzeba wejść :P
Zamel Mew-01, Zamel PEW-01, Zamel SBW-01, Zamel THW-01, Zamel SRW-01, Zamel mSLW-02, Auraton BOX + Indor Sensor, Airly Gate By Veeroos, Zigbee to Supla Gateway + sensors, Zamel SGW-01 and more

https://github.com/v33r005
User avatar
SOYER
Posts: 1623
Joined: Wed Aug 10, 2022 12:29 pm
Location: Kryry
Been thanked: 2 times

Post

Nacisnę przycisk na module i otworzy mi stronę na telefonie od razu? Albo na laptopie z otwartą stroną np. pless.pl?
https://youtube.com/@tomaszhamer8134?si=_J1cT_QWsXxgt1Fm
https://kryry01.aqi.eco/pl
https://app.weathercloud.net/d4311785603
https://github.com/Soyer79
User avatar
SOYER
Posts: 1623
Joined: Wed Aug 10, 2022 12:29 pm
Location: Kryry
Been thanked: 2 times

Post

veeroos wrote: Sun Jan 05, 2025 6:32 pm mój przycisk jest ustandaryzowany i otwiera od razu stronę w przeglądarce nie trzeba wiedzieć na jaką stronę trzeba wejść :P
Przecież najpierw musisz wejść na stronę konfiguracyjną..., więc co lepsze i szybsze? Połączenie się z modułem, wejście na stronę konfiguracyjną? Czy po prostu od razu strona do uploadu?
https://youtube.com/@tomaszhamer8134?si=_J1cT_QWsXxgt1Fm
https://kryry01.aqi.eco/pl
https://app.weathercloud.net/d4311785603
https://github.com/Soyer79
User avatar
SOYER
Posts: 1623
Joined: Wed Aug 10, 2022 12:29 pm
Location: Kryry
Been thanked: 2 times

Post

Dobra, trochę się zgrywam, pomysł oczywiście fajny. Integruje update do webinterface. Brawo!!
https://youtube.com/@tomaszhamer8134?si=_J1cT_QWsXxgt1Fm
https://kryry01.aqi.eco/pl
https://app.weathercloud.net/d4311785603
https://github.com/Soyer79
User avatar
veeroos
Posts: 1081
Joined: Sun Mar 20, 2022 9:30 am
Location: Głogów
Has thanked: 1 time
Been thanked: 9 times

Post

Nadal mnie nie przekonałeś 😁. Bo zwykły "zjadacz chleba" musi pamiętać, żeby po adresie /update wpisywać, a w moim udogodnieniu robi to skrypt 😁.
Zamel Mew-01, Zamel PEW-01, Zamel SBW-01, Zamel THW-01, Zamel SRW-01, Zamel mSLW-02, Auraton BOX + Indor Sensor, Airly Gate By Veeroos, Zigbee to Supla Gateway + sensors, Zamel SGW-01 and more

https://github.com/v33r005

Return to “Projekty użytkowników”