@layereight 12,7 % is the cpu usage of the old vhduino binary.
I just tried to get your binary running but there are some problems…
14:02:25.259 2018-01-07 Sunday
14:02:34.677 [pimatic] info: Starting pimatic version 0.9.42
14:02:40.043 [pimatic, ppm] info: 2.15.12
14:02:40.178 [pimatic] info: Loading plugin: "pimatic-cron" (0.8.8)
14:02:41.044 [pimatic] info: Loading plugin: "pimatic-mobile-frontend" (0.9.12)
14:02:42.338 [pimatic] info: Loading plugin: "pimatic-gpio" (0.9.0)
14:02:42.457 [pimatic] info: Loading plugin: "pimatic-ping" (0.9.5)
14:02:42.537 [pimatic] info: Loading plugin: "pimatic-shell-execute" (0.9.11)
14:02:42.622 [pimatic] info: Loading plugin: "pimatic-mythermostat" (0.0.3)
14:02:42.710 [pimatic] info: Loading plugin: "pimatic-denon-avr" (0.9.9)
14:02:43.686 [pimatic] info: Loading plugin: "pimatic-iframe" (0.3.1)
14:02:43.736 [pimatic] info: Loading plugin: "pimatic-dht-sensors" (0.9.3)
14:02:43.782 [pimatic] info: Loading plugin: "pimatic-sunrise" (0.8.7)
14:02:43.843 [pimatic] info: Loading plugin: "pimatic-openweather" (0.9.4)
14:02:43.953 [pimatic] info: Loading plugin: "pimatic-sysinfo" (0.9.4)
14:02:44.249 [pimatic] info: Loading plugin: "pimatic-filebrowser" (0.9.0)
14:02:44.454 [pimatic] info: Loading plugin: "pimatic-filter" (0.9.3)
14:02:44.546 [pimatic] info: Loading plugin: "pimatic-samsung-tv" (0.9.0)
14:02:44.603 [pimatic] info: Loading plugin: "pimatic-links" (0.8.6)
14:02:44.642 [pimatic] info: Loading plugin: "pimatic-upnp-root" (0.8.9)
14:02:44.888 [pimatic] info: Loading plugin: "pimatic-wakeonlan" (0.9.4)
14:02:44.965 [pimatic] info: Loading plugin: "pimatic-homeduino" (0.9.11)
14:02:46.123 [pimatic] info: Loading plugin: "pimatic-telegram" (1.1.6)
14:02:47.549 [pimatic] info: Loading plugin: "pimatic-amazing-dash-button" (0.9.14)
14:02:47.665 [pimatic] info: Loading plugin: "pimatic-chronotherm" (0.9.8-10)
...
14:03:21.946 [pimatic] error: Got string value for attribute start of VariablesDevice but attribute type is number.
14:03:21.950 [pimatic] error: Got string value for attribute stop of VariablesDevice but attribute type is number.
14:03:21.981 [pimatic] error: Got string value for attribute start of VariablesDevice but attribute type is number.
14:03:21.985 [pimatic] error: Got string value for attribute stop of VariablesDevice but attribute type is number.
14:03:22.052 [pimatic] error: Got string value for attribute start of VariablesDevice but attribute type is number.
14:03:22.056 [pimatic] error: Got string value for attribute stop of VariablesDevice but attribute type is number.
14:03:23.575 [pimatic-ping] warn: Error on ip lookup of Fritz: Error: queryA ENOTFOUND Fritz
14:03:23.690 [pimatic-homeduino] debug: data: "ready"
14:03:23.785 [pimatic-shell-execute] error: [ShellSwitch#Sonoff_Wohnzimmer_Switch] Error: unknown state=""!
14:03:23.999 [pimatic] warn: Could not update variable Sonoff_Wohnzimmer_Switch.state: undefined
14:03:24.005 [pimatic-shell-execute, ShellSwitch] error: Error getting attribute value Sonoff_Wohnzimmer_Switch.state: undefined
Unhandled rejection Error: unknown state=""!
14:03:25.453 [pimatic-homeduino] info: Connected to homeduino device.
14:03:26.124 [pimatic-mobile-frontend] info: packing static assets
14:03:30.892 [pimatic-mobile-frontend] info: packing static assets finished
14:03:30.904 [pimatic-mobile-frontend] info: rendering html
14:03:34.839 [pimatic-homeduino] debug: data: "ACK"
14:03:34.857 [pimatic-homeduino] debug: data: "2018-01-07 14:03:25 sigHandler: Unhandled signal 11, terminating"
unknown message received: 2018-01-07 14:03:25 sigHandler: Unhandled signal 11, terminating
14:03:34.861 [pimatic-homeduino] debug: data: ""
unknown message received:
14:03:35.062 [pimatic-homeduino] debug: Receiving on pin 17
[bot.info] bot started
14:03:45.073 [pimatic-mobile-frontend] info: rendering html finished
14:03:45.341 [pimatic] info: Listening for HTTPS-request on port 443...
14:03:45.344 [pimatic] info: Listening for HTTP-request on port 80...
14:08:46.348 [pimatic-homeduino] debug: data: "PING"
I’ll try it again from beginning… ![:-) :-)](../../../plugins/nodebb-plugin-emoji-one/static/images/1f600.png)
so i tried it again but the output stayes the same. Here is the log of installig process:
pi@raspberrypi:~ $ sudo service pimatic stop
pi@raspberrypi:~ $ sudo apt-get install pigpio build-essential git
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
build-essential ist schon die neueste Version.
git ist schon die neueste Version.
pigpio ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
pi@raspberrypi:~ $ git clone https://github.com/layereight/virtualhomeduino.git
Klone nach 'virtualhomeduino'...
remote: Counting objects: 177, done.
remote: Total 177 (delta 0), reused 0 (delta 0), pack-reused 177
Empfange Objekte: 100% (177/177), 297.12 KiB | 0 bytes/s, Fertig.
Löse Unterschiede auf: 100% (78/78), Fertig.
Prüfe Konnektivität... Fertig.
pi@raspberrypi:~ $ cd virtualhomeduino
pi@raspberrypi:~/virtualhomeduino $ make -f Makefile.rpi
git clone https://github.com/pimatic/RFControl.git
Klone nach 'RFControl'...
remote: Counting objects: 257, done.
remote: Total 257 (delta 0), reused 0 (delta 0), pack-reused 257
Empfange Objekte: 100% (257/257), 80.38 KiB | 0 bytes/s, Fertig.
Löse Unterschiede auf: 100% (136/136), Fertig.
Prüfe Konnektivität... Fertig.
cd RFControl; git checkout -q 70413e8
g++ -Wall -O3 -DRF_CONTROL_VARDUINO=1 -c "pigpio_functions.cpp"
g++ -Wall -O3 -DRF_CONTROL_VARDUINO=1 -c "pigpio_rfcontrol.cpp"
g++ -Wall -O3 -DRF_CONTROL_VARDUINO=1 -c "virtualhomeduino.cpp"
g++ -Wall -O3 -o vhduino pigpio_functions.o pigpio_rfcontrol.o virtualhomeduino.o -lpthread -lpigpio -lrt
Success! Done compiling vhduino.
pi@raspberrypi:~/virtualhomeduino $ sudo cp vhduino /home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/bin/vhduino
last update:
The use of the old binary is working well.
If you can help me solving the problem I’ll give it another try.