Pokračování Turris Gadgets


#164

Tak to děkuji, právě jsem chtěl Domoticz aktualizovat a od Xiaomi tam toho mám hodně + ještě Netatmo. Ale donedávna, asi měsíc dva zpět jsem používal beta verze Domoticz a vše vždy fungovalo, až na MyDomoticz, ten jednou za čas nekomunikoval a díky tomu padal celej Domoticz a padal dál i když jsem přestal používat betu, musel jsem službu v nastavení vypnout a od té doby to je celkem stabilní.

EDIT: Tak mi to nedalo a aktualizaci jsem udělal, abych přišel na to, kde je problém a vše funguje naprosto v pořádku, stačilo jako obvykle pouze vymazat cache prohlížeče :slight_smile:


#165

Tak to máš kliku. Já musel vytvořit NOVOU databázi a tím jsem přišel o všechna dosavadní data, nastavení a naprogramování…


#166

Tak já bych postupoval jinak, než vytvářením nové databáze, jsem líný cokoli předělávat a když už mám spoustu všeho nastaveného, tak to vždycky zkouším jinou cestou, než dělat vše znova. Zatím si myslím, že u Tebe byl problém jen v prohlížeči, po nainstalování nové verze to vypadalo u mě stejně. Ale kdybych náhodou rozházel databázi při pokusech s novou verzí, tak bych nahodil starou verzi Domoticz, dal zálohu a instalaci opakoval, aby se stará databáze převedla na novou, co jsem i několikrát dělal při přecházení na betu a zpět. Určitě bych třeba pomocí konzole vyzkoušel, jestli Domoticz vše vidí.


#167

Pokud čteš moje příspěvky, jistě sis všiml, že promazat prohlížeč jsem tady už několikrát sám doporučoval jiným. V tomto problém opravdu nebyl. Po dni stráveném nikam nevedoucími pokusy, jsem udělal tlustou čáru a vytvořil novou čistou databázi. Opravdu mám svůj čas docela rád na to, abych ho utrácel zbytečně. Nová databáze a naprogramování mne stálo asi 1 až 2 hodiny času. A mám klid. Zálohovanou databázi jsem samozřejmě zkoušel. Bohužel stejný výsledek.


#168

Neboj, čtu. Hlavní je, že se to povedlo vyřešit relativně snadno a rychle a ke spokojenosti, na rozdíl od funkčnosti Domoticz na Turrisu.


#169

Moje řeč. Tak snad už problém nebude.


#170

Může prosím někdo poskytnou návod k tomu, jak získat Domoticz s podporou Gadgets pro jinou platformu než Turris? R-Pi, X86,… prostě aby to jelo na tom, na čem se to zkompiluje. Chci používat gadgets jinde než je Turris…
Díky


#171

Zdravím,
používal jsem Home Assistant, avšak v nové verzi je problém s importy knihoven pro Gadgets. Podařilo se to někomu rozjet? S Pythonem si zase tak nerozumím.


#172

Nejnovější Home Assistant se mi zatím podařilo přimět k částečné komunikaci s Donglem, takže tomu dávám naději na úspěch. Zatím se mi podařilo zapnout zásuvku, ale vypnout už ne, protože se zapnutý stav HA neuloží. :-/

Po stisku tlačítka na zásuvce v logu vidím jen:
2018-10-05 00:12:22 WARNING (Thread-31) [homeassistant.components.jablo_dongle] Unknown message received: 'b'[1357xxxx] AC-88 RELAY:0''

zatímco v minicomu je správná odpověď:
[1357xxxx] AC-88 RELAY:0

K dalším komponentům jsem se zatím nedostal.

Snažil jsem se naroubovat Gadgets na aktuální Domoticz, abych to mohl rozběhat třeba na Debianu. Netuší někdo, jak vyřešit následující problémy s kompilací?

patrik@Debian:~/dev-domoticz$ make -j 8
[  1%] Generating stdafx.h.gch/.c++
[  1%] Building C object zip/CMakeFiles/minizip.dir/unzip.c.o
[  1%] Building C object sqlite/CMakeFiles/sqlite.dir/sqlite3.c.o
[  1%] Building C object zip/CMakeFiles/minizip.dir/ioapi.c.o
[  2%] Building CXX object MQTT/CMakeFiles/mqtt.dir/mosquittopp.cpp.o
[  2%] Building C object MQTT/CMakeFiles/mqtt.dir/mosquitto.c.o
-- Found Git: /usr/bin/git (found version "2.11.0")
[  2%] Building C object lua/src/CMakeFiles/lua.dir/lauxlib.c.o
[  3%] Building C object lua/src/CMakeFiles/lua.dir/lbaselib.c.o
-- domoticz has been modified locally: adding "-modified" to hash
[  3%] Built target revisiontag
[  3%] Building C object lua/src/CMakeFiles/lua.dir/lbitlib.c.o
[  3%] Building C object MQTT/CMakeFiles/mqtt.dir/logging_mosq.c.o
[  3%] Building C object lua/src/CMakeFiles/lua.dir/lcorolib.c.o
[  4%] Building C object lua/src/CMakeFiles/lua.dir/ldblib.c.o
[  5%] Building C object MQTT/CMakeFiles/mqtt.dir/memory_mosq.c.o
[  5%] Building C object lua/src/CMakeFiles/lua.dir/liolib.c.o
[  5%] Building C object MQTT/CMakeFiles/mqtt.dir/messages_mosq.c.o
[  5%] Building C object lua/src/CMakeFiles/lua.dir/lmathlib.c.o
[  6%] Building C object lua/src/CMakeFiles/lua.dir/loslib.c.o
[  6%] Building C object lua/src/CMakeFiles/lua.dir/lstrlib.c.o
[  7%] Building C object MQTT/CMakeFiles/mqtt.dir/net_mosq.c.o
[  7%] Building C object lua/src/CMakeFiles/lua.dir/ltablib.c.o
[  7%] Linking C static library libminizip.a
[  8%] Building C object MQTT/CMakeFiles/mqtt.dir/read_handle.c.o
[  8%] Building C object lua/src/CMakeFiles/lua.dir/loadlib.c.o
[  8%] Built target minizip
[  8%] Building C object lua/src/CMakeFiles/lua.dir/linit.c.o
[  9%] Building C object lua/src/CMakeFiles/lua.dir/lapi.c.o
[  9%] Building C object lua/src/CMakeFiles/lua.dir/lcode.c.o
/home/patrik/dev-domoticz/MQTT/net_mosq.c: In function ‘_mosquitto_net_cleanup’:
/home/patrik/dev-domoticz/MQTT/net_mosq.c:114:2: warning: ‘ERR_remove_state’ is deprecated [-Wdeprecated-declarations]
  ERR_remove_state(0);
  ^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/ui.h:13:0,
                 from /usr/include/openssl/engine.h:29,
                 from /home/patrik/dev-domoticz/MQTT/net_mosq.c:55:
/usr/include/openssl/err.h:248:1: note: declared here
 DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
 ^
/home/patrik/dev-domoticz/MQTT/net_mosq.c: In function ‘_mosquitto_socket_connect’:
/home/patrik/dev-domoticz/MQTT/net_mosq.c:428:4: warning: ‘TLSv1_2_client_method’ is deprecated [-Wdeprecated-declarations]
    mosq->ssl_ctx = SSL_CTX_new(TLSv1_2_client_method());
    ^~~~
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/patrik/dev-domoticz/MQTT/tls_mosq.h:28,
                 from /home/patrik/dev-domoticz/MQTT/net_mosq.c:57:
/usr/include/openssl/ssl.h:1626:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */
 ^
/home/patrik/dev-domoticz/MQTT/net_mosq.c:430:4: warning: ‘TLSv1_1_client_method’ is deprecated [-Wdeprecated-declarations]
    mosq->ssl_ctx = SSL_CTX_new(TLSv1_1_client_method());
    ^~~~
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/patrik/dev-domoticz/MQTT/tls_mosq.h:28,
                 from /home/patrik/dev-domoticz/MQTT/net_mosq.c:57:
/usr/include/openssl/ssl.h:1620:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */
 ^
/home/patrik/dev-domoticz/MQTT/net_mosq.c:432:4: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
    mosq->ssl_ctx = SSL_CTX_new(TLSv1_client_method());
    ^~~~
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/patrik/dev-domoticz/MQTT/tls_mosq.h:28,
                 from /home/patrik/dev-domoticz/MQTT/net_mosq.c:57:
/usr/include/openssl/ssl.h:1614:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */
 ^
[  9%] Building C object MQTT/CMakeFiles/mqtt.dir/read_handle_client.c.o
[  9%] Building C object lua/src/CMakeFiles/lua.dir/lctype.c.o
[ 10%] Building C object lua/src/CMakeFiles/lua.dir/ldebug.c.o
[ 10%] Building C object MQTT/CMakeFiles/mqtt.dir/read_handle_shared.c.o
[ 11%] Building C object MQTT/CMakeFiles/mqtt.dir/send_client_mosq.c.o
[ 11%] Building C object lua/src/CMakeFiles/lua.dir/ldo.c.o
[ 11%] Building C object lua/src/CMakeFiles/lua.dir/ldump.c.o
[ 11%] Building C object MQTT/CMakeFiles/mqtt.dir/send_mosq.c.o
[ 11%] Building C object MQTT/CMakeFiles/mqtt.dir/socks_mosq.c.o
[ 12%] Building C object lua/src/CMakeFiles/lua.dir/lfunc.c.o
[ 12%] Building C object lua/src/CMakeFiles/lua.dir/lgc.c.o
[ 13%] Building C object MQTT/CMakeFiles/mqtt.dir/srv_mosq.c.o
[ 13%] Building C object MQTT/CMakeFiles/mqtt.dir/thread_mosq.c.o
[ 13%] Building C object lua/src/CMakeFiles/lua.dir/llex.c.o
[ 14%] Building C object lua/src/CMakeFiles/lua.dir/lmem.c.o
[ 14%] Building C object MQTT/CMakeFiles/mqtt.dir/time_mosq.c.o
[ 14%] Built target domoticz_gch
[ 14%] Building C object lua/src/CMakeFiles/lua.dir/lobject.c.o
[ 15%] Building C object MQTT/CMakeFiles/mqtt.dir/tls_mosq.c.o
[ 15%] Building C object MQTT/CMakeFiles/mqtt.dir/will_mosq.c.o
[ 15%] Building C object MQTT/CMakeFiles/mqtt.dir/util_mosq.c.o
[ 15%] Building C object lua/src/CMakeFiles/lua.dir/lopcodes.c.o
[ 16%] Building C object lua/src/CMakeFiles/lua.dir/lparser.c.o
/home/patrik/dev-domoticz/MQTT/tls_mosq.c: In function ‘_mosquitto_verify_certificate_hostname’:
/home/patrik/dev-domoticz/MQTT/tls_mosq.c:130:5: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
     data = ASN1_STRING_data(nval->d.dNSName);
     ^~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/x509v3.h:14,
                 from /home/patrik/dev-domoticz/MQTT/tls_mosq.c:29:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^
/home/patrik/dev-domoticz/MQTT/tls_mosq.c:136:5: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
     data = ASN1_STRING_data(nval->d.iPAddress);
     ^~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/x509v3.h:14,
                 from /home/patrik/dev-domoticz/MQTT/tls_mosq.c:29:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^
[ 16%] Building C object lua/src/CMakeFiles/lua.dir/lstate.c.o
[ 16%] Building C object lua/src/CMakeFiles/lua.dir/lstring.c.o
[ 17%] Building C object lua/src/CMakeFiles/lua.dir/ltable.c.o
[ 18%] Linking CXX static library libmqtt.a
[ 18%] Building C object lua/src/CMakeFiles/lua.dir/ltm.c.o
[ 18%] Built target mqtt
[ 18%] Building C object lua/src/CMakeFiles/lua.dir/lundump.c.o
[ 19%] Building C object lua/src/CMakeFiles/lua.dir/lvm.c.o
[ 19%] Building C object lua/src/CMakeFiles/lua.dir/lzio.c.o
[ 19%] Linking C static library liblua.a
[ 19%] Built target lua
[ 20%] Linking C static library libsqlite.a
[ 20%] Built target sqlite
Scanning dependencies of target domoticz
[ 21%] Building CXX object CMakeFiles/domoticz.dir/main/CmdLine.cpp.o
[ 21%] Building CXX object CMakeFiles/domoticz.dir/main/stdafx.cpp.o
[ 21%] Building CXX object CMakeFiles/domoticz.dir/main/BaroForecastCalculator.cpp.o
[ 21%] Building CXX object CMakeFiles/domoticz.dir/main/domoticz.cpp.o
[ 21%] Building CXX object CMakeFiles/domoticz.dir/main/Camera.cpp.o
[ 22%] Building CXX object CMakeFiles/domoticz.dir/main/dzVents.cpp.o
[ 22%] Building CXX object CMakeFiles/domoticz.dir/main/EventSystem.cpp.o
[ 22%] Building CXX object CMakeFiles/domoticz.dir/main/EventsPythonModule.cpp.o
[ 23%] Building CXX object CMakeFiles/domoticz.dir/main/EventsPythonDevice.cpp.o
[ 23%] Building CXX object CMakeFiles/domoticz.dir/main/Helper.cpp.o
[ 23%] Building CXX object CMakeFiles/domoticz.dir/main/IFTTT.cpp.o
[ 24%] Building CXX object CMakeFiles/domoticz.dir/main/localtime_r.cpp.o
[ 24%] Building CXX object CMakeFiles/domoticz.dir/main/Logger.cpp.o
[ 24%] Building CXX object CMakeFiles/domoticz.dir/main/LuaCommon.cpp.o
[ 25%] Building CXX object CMakeFiles/domoticz.dir/main/LuaHandler.cpp.o
[ 25%] Building CXX object CMakeFiles/domoticz.dir/main/mainworker.cpp.o
[ 25%] Building CXX object CMakeFiles/domoticz.dir/main/RFXNames.cpp.o
[ 26%] Building CXX object CMakeFiles/domoticz.dir/main/Scheduler.cpp.o
[ 26%] Building CXX object CMakeFiles/domoticz.dir/main/SignalHandler.cpp.o
[ 26%] Building CXX object CMakeFiles/domoticz.dir/main/SQLHelper.cpp.o
[ 27%] Building CXX object CMakeFiles/domoticz.dir/main/SunRiseSet.cpp.o
[ 27%] Building CXX object CMakeFiles/domoticz.dir/main/WebServer.cpp.o
[ 27%] Building CXX object CMakeFiles/domoticz.dir/main/WebServerHelper.cpp.o
[ 28%] Building CXX object CMakeFiles/domoticz.dir/main/WindCalculation.cpp.o
[ 28%] Building CXX object CMakeFiles/domoticz.dir/push/BasePush.cpp.o
[ 28%] Building CXX object CMakeFiles/domoticz.dir/push/FibaroPush.cpp.o
[ 29%] Building CXX object CMakeFiles/domoticz.dir/push/GooglePubSubPush.cpp.o
[ 29%] Building CXX object CMakeFiles/domoticz.dir/push/HttpPush.cpp.o
[ 29%] Building CXX object CMakeFiles/domoticz.dir/push/InfluxPush.cpp.o
[ 30%] Building CXX object CMakeFiles/domoticz.dir/push/WebsocketPush.cpp.o
[ 30%] Building CXX object CMakeFiles/domoticz.dir/httpclient/HTTPClient.cpp.o
[ 30%] Building CXX object CMakeFiles/domoticz.dir/httpclient/UrlEncode.cpp.o
[ 31%] Building CXX object CMakeFiles/domoticz.dir/hardware/JabloDongle.cpp.o
[ 31%] Building CXX object CMakeFiles/domoticz.dir/hardware/1Wire.cpp.o
[ 31%] Building CXX object CMakeFiles/domoticz.dir/hardware/1Wire/1WireByOWFS.cpp.o
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:2:0:
/home/patrik/dev-domoticz/hardware/JabloDongle.h:95:20: error: ‘thread’ is not a member of ‘boost’
  boost::shared_ptr<boost::thread> m_thread;
                    ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.h:95:20: note: suggested alternative:
In file included from /home/patrik/dev-domoticz/main/stdafx.h:49:0:
/usr/include/c++/6/thread:61:9: note:   ‘std::thread’
   class thread
         ^~~~~~
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:2:0:
/home/patrik/dev-domoticz/hardware/JabloDongle.h:95:20: error: ‘thread’ is not a member of ‘boost’
  boost::shared_ptr<boost::thread> m_thread;
                    ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.h:95:20: note: suggested alternative:
In file included from /home/patrik/dev-domoticz/main/stdafx.h:49:0:
/usr/include/c++/6/thread:61:9: note:   ‘std::thread’
   class thread
         ^~~~~~
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:2:0:
/home/patrik/dev-domoticz/hardware/JabloDongle.h:95:33: error: template argument 1 is invalid
  boost::shared_ptr<boost::thread> m_thread;
                                 ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:2:0:
/home/patrik/dev-domoticz/hardware/JabloDongle.h:114:9: error: ‘mutex’ in namespace ‘boost’ does not name a type
  boost::mutex probeMut;
         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.h:115:9: error: ‘condition_variable’ in namespace ‘boost’ does not name a type
  boost::condition_variable probeCond;
         ^~~~~~~~~~~~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.h:119:9: error: ‘mutex’ in namespace ‘boost’ does not name a type
  boost::mutex readSlotsMut;
         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.h:120:9: error: ‘condition_variable’ in namespace ‘boost’ does not name a type
  boost::condition_variable readSlotsCond;
         ^~~~~~~~~~~~~~~~~~
[ 32%] Building CXX object CMakeFiles/domoticz.dir/hardware/1Wire/1WireByKernel.cpp.o
[ 32%] Building CXX object CMakeFiles/domoticz.dir/hardware/1Wire/1WireCommon.cpp.o
[ 32%] Building CXX object CMakeFiles/domoticz.dir/hardware/1Wire/1WireForWindows.cpp.o
[ 33%] Building CXX object CMakeFiles/domoticz.dir/hardware/AccuWeather.cpp.o
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘int CJabloDongle::ProbeDongle()’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:31:45: error: ‘probeMut’ was not declared in this scope
  boost::unique_lock<boost::mutex> probeLock(probeMut);
                                             ^~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:36:6: error: ‘probeCond’ was not declared in this scope
  if(!probeCond.timed_wait(probeLock, timeout)) {
      ^~~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘virtual bool CJabloDongle::StartHardware()’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:47:105: error: invalid use of incomplete type ‘class boost::thread’
  m_thread = boost::shared_ptr<boost::thread>(new boost::thread(boost::bind(&CJabloDongle::Do_Work, this)));
                                                                                                         ^
In file included from /usr/local/include/boost/thread/pthread/condition_variable.hpp:14:0,
                 from /usr/local/include/boost/thread/condition_variable.hpp:16,
                 from /usr/local/include/boost/thread/pthread/shared_mutex.hpp:15,
                 from /usr/local/include/boost/thread/shared_mutex.hpp:28,
                 from /home/patrik/dev-domoticz/hardware/../main/EventSystem.h:4,
                 from /home/patrik/dev-domoticz/hardware/../main/mainworker.h:6,
                 from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:9:
/usr/local/include/boost/thread/pthread/thread_data.hpp:87:11: note: forward declaration of ‘class boost::thread’
     class thread;
           ^~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:48:20: warning: NULL used in arithmetic [-Wpointer-arith]
  return (m_thread!=NULL);
                    ^~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘virtual bool CJabloDongle::StopHardware()’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:53:16: warning: NULL used in arithmetic [-Wpointer-arith]
  if (m_thread!=NULL)
                ^~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:57:11: error: base operand of ‘->’ is not a pointer
   m_thread->join();
           ^~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘void CJabloDongle::ReadSlots()’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:150:49: error: ‘readSlotsMut’ was not declared in this scope
  boost::unique_lock<boost::mutex> readSlotsLock(readSlotsMut);
                                                 ^~~~~~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:163:7: error: ‘readSlotsCond’ was not declared in this scope
    if(readSlotsCond.timed_wait(readSlotsLock, timeout)) {
       ^~~~~~~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘void CJabloDongle::ProcessMessage(JaMessage)’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:315:4: error: ‘readSlotsCond’ was not declared in this scope
    readSlotsCond.notify_one();
    ^~~~~~~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:320:4: error: ‘probeCond’ was not declared in this scope
    probeCond.notify_one();
    ^~~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘void CJabloDongle::ReadCallback(const char*, size_t)’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:376:36: error: ‘readQueueMutex’ was not declared in this scope
  boost::lock_guard<boost::mutex> l(readQueueMutex);
                                    ^~~~~~~~~~~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘void CJabloDongle::SendTempSensor(int, int, float, const string&)’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:458:36: error: ‘std::vector<std::vector<std::__cxx11::basic_string<char> > > CSQLHelper::query(const string&)’ is private within this context
  result = m_sql.query(szQuery.str());
                                    ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:7:0:
/home/patrik/dev-domoticz/hardware/../main/SQLHelper.h:496:41: note: declared private here
  std::vector<std::vector<std::string> > query(const std::string &szQuery);
                                         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:478:58: error: no match for call to ‘(boost::signals2::signal<void(CDomoticzHardwareBase*, const unsigned char*, const char*, int)>) (CJabloDongle*, const unsigned char*)’
  sDecodeRXMessage(this, (const unsigned char *)&tsen.TEMP);
                                                          ^
In file included from /usr/local/include/boost/signals2/variadic_signal.hpp:44:0,
                 from /usr/local/include/boost/signals2/signal.hpp:38,
                 from /usr/local/include/boost/signals2.hpp:19,
                 from /home/patrik/dev-domoticz/hardware/DomoticzHardware.h:3,
                 from /home/patrik/dev-domoticz/hardware/JabloDongle.h:3,
                 from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:2:
/usr/local/include/boost/signals2/detail/signal_template.hpp:720:19: note: candidate: boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::operator()(Args ...) [with Combiner = boost::signals2::optional_last_value<void>; Group = int; GroupCompare = std::less<int>; SlotFunction = boost::function<void(CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; ExtendedSlotFunction = boost::function<void(const boost::signals2::connection&, CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; Mutex = boost::signals2::mutex; R = void; Args = {CDomoticzHardwareBase*, const unsigned char*, const char*, int}; boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type = void]
       result_type operator ()(BOOST_SIGNALS2_SIGNATURE_FULL_ARGS(BOOST_SIGNALS2_NUM_ARGS))
                   ^~~~~~~~
/usr/local/include/boost/signals2/detail/signal_template.hpp:720:19: note:   candidate expects 4 arguments, 2 provided
/usr/local/include/boost/signals2/detail/signal_template.hpp:724:19: note: candidate: boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::operator()(Args ...) const [with Combiner = boost::signals2::optional_last_value<void>; Group = int; GroupCompare = std::less<int>; SlotFunction = boost::function<void(CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; ExtendedSlotFunction = boost::function<void(const boost::signals2::connection&, CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; Mutex = boost::signals2::mutex; R = void; Args = {CDomoticzHardwareBase*, const unsigned char*, const char*, int}; boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type = void]
       result_type operator ()(BOOST_SIGNALS2_SIGNATURE_FULL_ARGS(BOOST_SIGNALS2_NUM_ARGS)) const
                   ^~~~~~~~
/usr/local/include/boost/signals2/detail/signal_template.hpp:724:19: note:   candidate expects 4 arguments, 2 provided
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:486:28: error: ‘std::vector<std::vector<std::__cxx11::basic_string<char> > > CSQLHelper::query(const string&)’ is private within this context
   m_sql.query(szQuery.str());
                            ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:7:0:
/home/patrik/dev-domoticz/hardware/../main/SQLHelper.h:496:41: note: declared private here
  std::vector<std::vector<std::string> > query(const std::string &szQuery);
                                         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘int CJabloDongle::SendSwitchIfNotExists(int, int, int, bool, double, const string&)’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:503:36: error: ‘std::vector<std::vector<std::__cxx11::basic_string<char> > > CSQLHelper::query(const string&)’ is private within this context
  result = m_sql.query(szQuery.str()); //-V519
                                    ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:7:0:
/home/patrik/dev-domoticz/hardware/../main/SQLHelper.h:496:41: note: declared private here
  std::vector<std::vector<std::string> > query(const std::string &szQuery);
                                         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘void CJabloDongle::SetSwitchType(int, int, _eSwitchType)’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:527:27: error: ‘std::vector<std::vector<std::__cxx11::basic_string<char> > > CSQLHelper::query(const string&)’ is private within this context
  m_sql.query(szQuery.str());
                           ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:7:0:
/home/patrik/dev-domoticz/hardware/../main/SQLHelper.h:496:41: note: declared private here
  std::vector<std::vector<std::string> > query(const std::string &szQuery);
                                         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘void CJabloDongle::SetSwitchIcon(int, int, int)’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:544:27: error: ‘std::vector<std::vector<std::__cxx11::basic_string<char> > > CSQLHelper::query(const string&)’ is private within this context
  m_sql.query(szQuery.str());
                           ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:7:0:
/home/patrik/dev-domoticz/hardware/../main/SQLHelper.h:496:41: note: declared private here
  std::vector<std::vector<std::string> > query(const std::string &szQuery);
                                         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp: In member function ‘void CJabloDongle::SendSetPointSensor(int, int, float, const string&)’:
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:565:34: error: ‘std::vector<std::vector<std::__cxx11::basic_string<char> > > CSQLHelper::query(const string&)’ is private within this context
  result=m_sql.query(szQuery.str());
                                  ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:7:0:
/home/patrik/dev-domoticz/hardware/../main/SQLHelper.h:496:41: note: declared private here
  std::vector<std::vector<std::string> > query(const std::string &szQuery);
                                         ^~~~~
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:581:56: error: no match for call to ‘(boost::signals2::signal<void(CDomoticzHardwareBase*, const unsigned char*, const char*, int)>) (CJabloDongle*, const unsigned char*)’
  sDecodeRXMessage(this, (const unsigned char *)&thermos);
                                                        ^
In file included from /usr/local/include/boost/signals2/variadic_signal.hpp:44:0,
                 from /usr/local/include/boost/signals2/signal.hpp:38,
                 from /usr/local/include/boost/signals2.hpp:19,
                 from /home/patrik/dev-domoticz/hardware/DomoticzHardware.h:3,
                 from /home/patrik/dev-domoticz/hardware/JabloDongle.h:3,
                 from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:2:
/usr/local/include/boost/signals2/detail/signal_template.hpp:720:19: note: candidate: boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::operator()(Args ...) [with Combiner = boost::signals2::optional_last_value<void>; Group = int; GroupCompare = std::less<int>; SlotFunction = boost::function<void(CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; ExtendedSlotFunction = boost::function<void(const boost::signals2::connection&, CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; Mutex = boost::signals2::mutex; R = void; Args = {CDomoticzHardwareBase*, const unsigned char*, const char*, int}; boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type = void]
       result_type operator ()(BOOST_SIGNALS2_SIGNATURE_FULL_ARGS(BOOST_SIGNALS2_NUM_ARGS))
                   ^~~~~~~~
/usr/local/include/boost/signals2/detail/signal_template.hpp:720:19: note:   candidate expects 4 arguments, 2 provided
/usr/local/include/boost/signals2/detail/signal_template.hpp:724:19: note: candidate: boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::operator()(Args ...) const [with Combiner = boost::signals2::optional_last_value<void>; Group = int; GroupCompare = std::less<int>; SlotFunction = boost::function<void(CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; ExtendedSlotFunction = boost::function<void(const boost::signals2::connection&, CDomoticzHardwareBase*, const unsigned char*, const char*, int)>; Mutex = boost::signals2::mutex; R = void; Args = {CDomoticzHardwareBase*, const unsigned char*, const char*, int}; boost::signals2::signal<R(Args ...), Combiner, Group, GroupCompare, SlotFunction, ExtendedSlotFunction, Mutex>::result_type = void]
       result_type operator ()(BOOST_SIGNALS2_SIGNATURE_FULL_ARGS(BOOST_SIGNALS2_NUM_ARGS)) const
                   ^~~~~~~~
/usr/local/include/boost/signals2/detail/signal_template.hpp:724:19: note:   candidate expects 4 arguments, 2 provided
/home/patrik/dev-domoticz/hardware/JabloDongle.cpp:589:35: error: ‘std::vector<std::vector<std::__cxx11::basic_string<char> > > CSQLHelper::query(const string&)’ is private within this context
   result=m_sql.query(szQuery.str());
                                   ^
In file included from /home/patrik/dev-domoticz/hardware/JabloDongle.cpp:7:0:
/home/patrik/dev-domoticz/hardware/../main/SQLHelper.h:496:41: note: declared private here
  std::vector<std::vector<std::string> > query(const std::string &szQuery);
                                         ^~~~~
[ 33%] Building CXX object CMakeFiles/domoticz.dir/hardware/AnnaThermostat.cpp.o
CMakeFiles/domoticz.dir/build.make:830: recipe for target 'CMakeFiles/domoticz.dir/hardware/JabloDongle.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/hardware/JabloDongle.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/domoticz.dir/all' failed
make[1]: *** [CMakeFiles/domoticz.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

#173

nie som si isty ale skontroloval by som verziu boost kniznic. novy domoticz potrebuje novsi boost - odporuca sa 1.66. otazka je ako s tym bude fungovat JabloDongle kod.
taktiez to vyzera ze nemas nainstalovane devel kniznice pre boost


#174

Ahoj, díky za odpověď. Asi se na Domoticz vykašlu, neboť HA vypadá líp a alespoň částečně se mi podařilo rozchodit JabloDongle, a to na aktuální dev verzi. Takže tak nějak doufám, že stará verze HA, která byla distribuována s Turrisem by měla být funkční. Pak se pokusím najít co nejnovější verzi, která bude s Gadgets kompatibilní. Navíc se nic nemusí složitě kompilovat pro OpenWRT na PowerPC…


#175

HA sice vyzera lepsie ale domoticz ma vacsiu podporu HW. Ak nemas moc heterogenne prostredie tak moze stacit. Kazdopadne HA s podporou gadgets je v turris repozitaroch takisto zastarale ako ten domoticz.


#176

Nejnovější HA mám na Turrisu 1.1 v LXC kontejneru s Debianem. Přímo na Turrisu to nešlo, HA si při spuštění kontroluje a doinstalovává potřebné závislosti a to občas zahrnuje i kompilaci, což selhávalo na chybějících a zastaralých balíčcích. V Debianu bez problémů.


#177

Ano, chci HA provozovat rovněž pod debianem, neboť Turris je jinde než chci provozovat gadgets. Pod nejnovější dev verzí mi však JabloDongle víc nefunguje než funguje, a musel jsem udělat nějaký změny v kódu. Tobě funguje JabloDongle a komponenty přímo z repořitáře CZ.NIC?


#178

Turris na mě vyšel až téměř v poslední várce, takže Jablotron mě minul. Aktuálně používám BigClown + nějaké esp32.


#179

tak jsem se po dlouhé době odhodlal zkusit novou verzi domoticzu na omii a koukám pořád stejné.

instaluji verzi z upstremu tedy domoticz_3.8153-1

WebServer(HTTP) started on address: :: with port 8080
Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: use_certificate_chain_file: asio.ssl error
Error: WebServer(SSL) check privileges for opening ports below 1024

Kde je uložená konfigurace? Protože když dám domoticz /etc/config/domoticz tak se nastavení ignorují.
Verze turris gadgets 2.25 funguje. Nemá by default ssl, takže tam je asi zakopaný pes.

Zkusil jsem nahodit LXC s debianem, stáhl domoticz aktuální verzi pro arm7l a po rozbalení to jede. V archivu je *.pem se kterým si to poradí bez zásahu.