GUI Generic

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

Potrzebuję prostego układu:
Sensor BME280 + OLED 0,96" (SSD1206) + Wemos D1 Mini + aktywacja wyświetlacza przyciskiem

W konfigu GUI Generic ustawiam sobie:

Code: Select all

#define SUPLA_OTA
#define SUPLA_CONFIG
#define SUPLA_BUTTON
#define SUPLA_BME280
#define SUPLA_OLED
No i próba kompilacji zaskakuje potrzebą dołączenia pierdyliarda bibliotek dla sensorów, których nie używam i nie chcę używać w tym module.
Dałoby się to jakoś zminimalizować poprzez odpowiednie #define i #ifdef

Code: Select all

..\SuplaOled.cpp:93:23: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:94:9: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:106:8: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:114:7: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:159:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:187:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:211:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:229:37: error: 'sensorDS' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:246:37: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:250:40: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:254:37: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:258:40: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:262:37: error: 'sensorMAX6675_K' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:275:109: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:283:20: error: 'sensorDS' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:283:90: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:284:21: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:284:59: error: 'sensorMAX6675_K' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:292:25: error: 'sensorDS' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:310:25: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:319:25: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:328:25: error: 'sensorMAX6675_K' is not a member of 'Supla::GUI'
Widzimy się na Supla Offline Party Season 2026 :D

Image
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

Chcąc nie chcąc dodałem

Code: Select all

 #define SUPLA_RELAY
 #define SUPLA_DS18B20
 #define SUPLA_DHT11
 #define SUPLA_DHT22
 #define SUPLA_SI7021_SONOFF
 #define SUPLA_MAX6675
Jednak dalej nie mogę się pozbyć

Code: Select all

..\SuplaOled.cpp:106:8: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:159:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:187:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:211:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:275:109: error: 'GEOMETRY_64_48' was not declared in this scope
Widzimy się na Supla Offline Party Season 2026 :D

Image
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Goral64 wrote: Mon Feb 15, 2021 5:56 pm Potrzebuję prostego układu:
Sensor BME280 + OLED 0,96" (SSD1206) + Wemos D1 Mini + aktywacja wyświetlacza przyciskiem

W konfigu GUI Generic ustawiam sobie:

Code: Select all

#define SUPLA_OTA
#define SUPLA_CONFIG
#define SUPLA_BUTTON
#define SUPLA_BME280
#define SUPLA_OLED
No i próba kompilacji zaskakuje potrzebą dołączenia pierdyliarda bibliotek dla sensorów, których nie używam i nie chcę używać w tym module.
Dałoby się to jakoś zminimalizować poprzez odpowiednie #define i #ifdef

Code: Select all

..\SuplaOled.cpp:93:23: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:94:9: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:106:8: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:114:7: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:159:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:187:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:211:7: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:229:37: error: 'sensorDS' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:246:37: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:250:40: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:254:37: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:258:40: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:262:37: error: 'sensorMAX6675_K' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:275:109: error: 'GEOMETRY_64_48' was not declared in this scope
..\SuplaOled.cpp:283:20: error: 'sensorDS' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:283:90: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:284:21: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:284:59: error: 'sensorMAX6675_K' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:292:25: error: 'sensorDS' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:310:25: error: 'sensorSi7021Sonoff' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:319:25: error: 'sensorDHT22' is not a member of 'Supla::GUI'
..\SuplaOled.cpp:328:25: error: 'sensorMAX6675_K' is not a member of 'Supla::GUI'
użyj mojego brancha master.
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: Mon Feb 15, 2021 6:03 pm użyj mojego brancha master.
Poprawiło się tylko trochę, bo teraz jest

Code: Select all

..\SuplaOled.cpp:283:126: error: 'I2C_ONE' was not declared in this scope
..\SuplaOled.cpp:289:109: error: 'GEOMETRY_64_48' was not declared in this scope
Ale fakt, sensory są już niepotrzebne, tylko RELAY chce być na siłę...

Code: Select all

..\SuplaDeviceGUI.cpp:316:7: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:326:45: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:330:45: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:334:45: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:338:45: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp: In function 'void Supla::GUI::addConditionsTurnOFF(int, Supla::ChannelElement*)':
..\SuplaDeviceGUI.cpp:346:7: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:356:46: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:360:46: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:364:46: error: 'relay' is not a member of 'Supla::GUI'
..\SuplaDeviceGUI.cpp:368:46: error: 'relay' is not a member of 'Supla::GUI'
Last edited by Goral64 on Mon Feb 15, 2021 6:21 pm, edited 1 time in total.
Widzimy się na Supla Offline Party Season 2026 :D

Image
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Goral64 wrote: Mon Feb 15, 2021 6:18 pm Poprawiło się tylko trochę, bo teraz jest

Code: Select all

..\SuplaOled.cpp:283:126: error: 'I2C_ONE' was not declared in this scope
..\SuplaOled.cpp:289:109: error: 'GEOMETRY_64_48' was not declared in this scope
Ale fakt, sensory są już niepotrzebne, tylko RELAY chce być na siłę...
Jeżeli dodajesz oleda to musisz dodać bibliotekę:
https://github.com/krycha88/GUI-Generic ... 306-master
https://gui-generic-builder.supla.io/
dobo
Posts: 1051
Joined: Sun Apr 07, 2019 8:14 pm
Location: Nadarzyn

Post

Można to podłączyć tak jak narysował @elmaya w przypadku modułu 16 przekaźnikowego można również listwę kołkową goldpin przylutować do wskazanych nóżek ULN2803 i też będzie działało.
.
16 relay.jpg
PS
W takim rozwiązaniu pomijającym transoptory trzeba się liczyć z brakiem zabezpieczenia galwanicznego.
You do not have the required permissions to view the files attached to this post.
Last edited by dobo on Mon Feb 15, 2021 7:16 pm, edited 1 time in total.
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: Mon Feb 15, 2021 6:20 pm Jeżeli dodajesz oleda to musisz dodać bibliotekę:
https://github.com/krycha88/GUI-Generic ... 306-master
Od początku jest dodana
Widzimy się na Supla Offline Party Season 2026 :D

Image
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

Goral64 wrote: Mon Feb 15, 2021 7:07 pm Od początku jest dodana
No tak, ale była jeszcze ta bez -master :(
Teraz jak posprzątałem to mam

Code: Select all

..\SuplaWebPageSensor.cpp:415:13: error: 'INPUT_DS18B20_NAME' was not declared in this scope
..\SuplaWebPageSensor.cpp:498:17: error: 'INPUT_DS18B20_NAME' was not declared in this scope
Widzimy się na Supla Offline Party Season 2026 :D

Image
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

od momentu kiedy zrobiłem aktualizację 2 etapową to trochę zaniechałem dodawanie define i traktuję to jako jeden projekt ;) Jak znajdę chwilę to poprawie to.
https://gui-generic-builder.supla.io/
pork
Posts: 44
Joined: Tue Sep 18, 2018 2:16 pm

Post

dobo wrote: Mon Feb 15, 2021 6:58 pm Można to podłączyć tak jak narysował @elmaya w przypadku modułu 16 przekaźnikowego można również listwę kołkową goldpin przylutować do wskazanych nóżek ULN2803 i też będzie działało.
.
16 relay.jpg

PS
W takim rozwiązaniu pomijającym transoptory trzeba się liczyć z brakiem zabezpieczenia galwanicznego.
Poczekam na mod kolegi krycha88, może coś się poradzi na to.
Wolałbym ich nie pomijać.

Return to “GUI Generic”