GUI Generic Builder - błąd generowania

jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

Witam,
nie mogę wygenerować GUI Generica dla ESP32 (przekaźniki, przyciski, mcp23017 i LAN). Otrzymuję taki błąd:

Code: Select all

/var/www/html/code/lib-test/SuplaDevice/src/SuplaDevice.cpp:30:10: fatal error: supla/network/web_server.h: No such file or directory
 #include "supla/network/web_server.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp32:esp32:d32:PartitionScheme=min_spiffs
BOARD_NAME
TEMPLATE_BOARD
TEMPLATE_JSON
JSON_DEFINITION
OPTIONS -DATOMIC_FS_UPDATE -DBEARSSL_SSL_BASIC -DSUPLA_BUTTON -DSUPLA_CONFIG -DSUPLA_ENABLE_GUI -DSUPLA_MCP23017 -DSUPLA_OTA -DSUPLA_RELAY 
-DSUPLA_WT32_ETH01_LAN8720
Pozdrawiam
Jakub
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Bo pewnie robisz to na teście, gdzie ma prawo to nie działać.
https://gui-generic-builder.supla.io/
jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

krycha88 wrote: Tue Aug 09, 2022 5:58 am Bo pewnie robisz to na teście, gdzie ma prawo to nie działać.
Chodzi o to, że zaznaczam urządzenie z sekcji "test"?

Pół roku nie zaglądałem do GG i widzę, że poczyniliście duże zmiany! Cieszę się, że projekt się tak prężnie rozwija. (Po tym półroczu zapomniałem trochę, jakimi prawami rządzi się Builder :mrgreen: )

Następnego dnia udało mi się wygenerować plik z powyższą konfiguracją na ESP32 i wgrać na urządzenie.

Z tamtą binarką nie działało mi ustawianie adresów I2C dla MCP23017. Nie potrzebuję naprawy tego, bo GUI Generic był dla tamtego urządzenia wygenerowany jedynie testowo, ale daję znać, że problem istnieje.
Pozdrawiam
Jakub
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

https://gui-generic-builder.supla.io/
User avatar
Goral64
Posts: 3258
Joined: Fri Dec 27, 2019 6:22 pm
Location: Żerniki Wrocławskie
Has thanked: 2 times
Been thanked: 1 time

Post

krycha88 wrote: Thu Aug 11, 2022 4:38 am Myślałem, że korzystasz z https://gui-generic-builder.supla.io/test.php :)
Musiał, świadczy o tym log :D

Code: Select all

/var/www/html/code/lib-test/
Widzimy się na Supla Offline Party Season 2026 :D

Image
seba697
Posts: 7
Joined: Wed Sep 09, 2020 8:52 am

Post

chciał bym zgłosić mała niepoprawność w GG
zrobiłem licznik impulsów wody który chciałem dodać do home assystant ale niestety gg nie wystawia device_class: water
po dopisaniu z palca oczywiście wszystko działa
LukiSpajder
Posts: 1548
Joined: Tue Aug 18, 2020 2:22 pm
Has thanked: 25 times
Been thanked: 34 times

Post

Przy generowaniu softa na SP111 v1 mam taki blad


GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp: In function 'void Supla::GUI::addHLW8012(int8_t, int8_t, int8_t)':
GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp:667:17: error: 'Supla::GUI::Conditions' has not been declared
667 | Supla::GUI::Conditions::addConditionsSensor(SENSOR_HLW8012, counterHLW8012);
| ^~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp:667:49: error: 'SENSOR_HLW8012' was not declared in this scope
667 | Supla::GUI::Conditions::addConditionsSensor(SENSOR_HLW8012, counterHLW8012);
| ^~~~~~~~~~~~~~
Multiple libraries were found for "SoftwareSerial.h"
Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial
Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=1M64,xtal=160
BOARD_NAME Gosund SP111 v1.1
TEMPLATE_JSON GOSUND_SP111_V1_1
JSON_DEFINITION NAME:Gosund SP111 v1.1 GPIO:[56 0 158 0 132 134 0 0 131 17 0 21 0]
OPTIONS -DTEMPLATE_JSON=\"{\\\"NAME\\\":\\\"Gosund SP111 v1.1\\\",\\\"GPIO\\\":[56,0,158,0,132,134,0,0,131,17,0,21,0]}\" -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL
-DSUPLA_ACTION_TRIGGER -DSUPLA_BUTTON -DSUPLA_CONFIG -DSUPLA_DIRECT_LINKS -DSUPLA_ENABLE_GUI -DSUPLA_HLW8012 -DSUPLA_LED -DSUPLA_OTA -DSUPLA_PUSHOVER
-DSUPLA_RELAY -DTEMPLATE_BOARD_JSON

Po automatycznej aktualizacji przerzuca do GUI-Generic Updater
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

LukiSpajder wrote: Sun Jan 29, 2023 4:23 pm Przy generowaniu softa na SP111 v1 mam taki blad


GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp: In function 'void Supla::GUI::addHLW8012(int8_t, int8_t, int8_t)':
GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp:667:17: error: 'Supla::GUI::Conditions' has not been declared
667 | Supla::GUI::Conditions::addConditionsSensor(SENSOR_HLW8012, counterHLW8012);
| ^~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp:667:49: error: 'SENSOR_HLW8012' was not declared in this scope
667 | Supla::GUI::Conditions::addConditionsSensor(SENSOR_HLW8012, counterHLW8012);
| ^~~~~~~~~~~~~~
Multiple libraries were found for "SoftwareSerial.h"
Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial
Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=1M64,xtal=160
BOARD_NAME Gosund SP111 v1.1
TEMPLATE_JSON GOSUND_SP111_V1_1
JSON_DEFINITION NAME:Gosund SP111 v1.1 GPIO:[56 0 158 0 132 134 0 0 131 17 0 21 0]
OPTIONS -DTEMPLATE_JSON=\"{\\\"NAME\\\":\\\"Gosund SP111 v1.1\\\",\\\"GPIO\\\":[56,0,158,0,132,134,0,0,131,17,0,21,0]}\" -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL
-DSUPLA_ACTION_TRIGGER -DSUPLA_BUTTON -DSUPLA_CONFIG -DSUPLA_DIRECT_LINKS -DSUPLA_ENABLE_GUI -DSUPLA_HLW8012 -DSUPLA_LED -DSUPLA_OTA -DSUPLA_PUSHOVER
-DSUPLA_RELAY -DTEMPLATE_BOARD_JSON

Po automatycznej aktualizacji przerzuca do GUI-Generic Updater
Już powinno być dobrze. Dlatego właśnie dodałem przycisk "Sprawdź aktualizację" aby się upewnić, czy softn wygeneruje się poprawie.
https://gui-generic-builder.supla.io/
local
Posts: 545
Joined: Mon Jan 27, 2020 11:33 am

Post

Dostaję coś takiego...
builder.png
You do not have the required permissions to view the files attached to this post.
4xShelly 1, Shelly 1L, 2xShelly 2.5, Sonoff T3, 2xSonoff Basic R2, 4xNeo 16A
LukiSpajder
Posts: 1548
Joined: Tue Aug 18, 2020 2:22 pm
Has thanked: 25 times
Been thanked: 34 times

Post

krycha88 wrote: Sun Jan 29, 2023 4:46 pm
LukiSpajder wrote: Sun Jan 29, 2023 4:23 pm Przy generowaniu softa na SP111 v1 mam taki blad


GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp: In function 'void Supla::GUI::addHLW8012(int8_t, int8_t, int8_t)':
GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp:667:17: error: 'Supla::GUI::Conditions' has not been declared
667 | Supla::GUI::Conditions::addConditionsSensor(SENSOR_HLW8012, counterHLW8012);
| ^~~~~~~~~~
GUI-Generic_bv4.22_gv5.9.0_pl_136379e6794850a91abaec9b0b55bbd4/SuplaDeviceGUI.cpp:667:49: error: 'SENSOR_HLW8012' was not declared in this scope
667 | Supla::GUI::Conditions::addConditionsSensor(SENSOR_HLW8012, counterHLW8012);
| ^~~~~~~~~~~~~~
Multiple libraries were found for "SoftwareSerial.h"
Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial
Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=1M64,xtal=160
BOARD_NAME Gosund SP111 v1.1
TEMPLATE_JSON GOSUND_SP111_V1_1
JSON_DEFINITION NAME:Gosund SP111 v1.1 GPIO:[56 0 158 0 132 134 0 0 131 17 0 21 0]
OPTIONS -DTEMPLATE_JSON=\"{\\\"NAME\\\":\\\"Gosund SP111 v1.1\\\",\\\"GPIO\\\":[56,0,158,0,132,134,0,0,131,17,0,21,0]}\" -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL
-DSUPLA_ACTION_TRIGGER -DSUPLA_BUTTON -DSUPLA_CONFIG -DSUPLA_DIRECT_LINKS -DSUPLA_ENABLE_GUI -DSUPLA_HLW8012 -DSUPLA_LED -DSUPLA_OTA -DSUPLA_PUSHOVER
-DSUPLA_RELAY -DTEMPLATE_BOARD_JSON

Po automatycznej aktualizacji przerzuca do GUI-Generic Updater
Już powinno być dobrze. Dlatego właśnie dodałem przycisk "Sprawdź aktualizację" aby się upewnić, czy softn wygeneruje się poprawie.

Ok teraz jest dobrze :D

Return to “GUI Generic”