• Du musst dich registrieren, bevor du Beiträge verfassen kannst. Klicke auf Jetzt registrieren!, um den Registrierungsprozess zu starten. Registrierte User surfen werbefrei, können Suchen durchführen und sehen die volle Darstellung des Forums mit vielen anderen Unterforen!!!

Supportthread zum WLAN-Thermometer mit dem Raspberry Pi

EDIT:
root@rpi-BBQ:/# sudo wlt_2_pitmaster.py
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at localhost(8888)

Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
File "/usr/sbin/wlt_2_pitmaster.py", line 628, in <module>
main()
File "/usr/sbin/wlt_2_pitmaster.py", line 433, in main
.start_pit(pit_type, gpio)
File "/usr/sbin/wlt_2_pitmaster.py", line 112, in start_pit
self.pi.set_mode(gpio, pigpio.OUTPUT)
File "/usr/local/lib/python2.7/dist-packages/pigpio.py", line 1053, in set_mode
return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
File "/usr/local/lib/python2.7/dist-packages/pigpio.py", line 848, in _pigpio_command
sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'
root@rpi-BBQ:/#

Jetzt habe ich die ausgabe...

LG PEter


Ist nicht da. Wo sollten die Daten liegen?
LG Peter

root@rpi-BBQ:~# wlt_2_pitmastet.py
-bash: wlt_2_pitmastet.py: Kommando nicht gefunden.
root@rpi-BBQ:~# sudo wlt_2_pitmastet.py
sudo: wlt_2_pitmastet.py: Kommando nicht gefunden
root@rpi-BBQ:~#
 
So habe jetzt "pigpiod" manuell gestartet und dann "wlt_2_pitmaster.py"
dann ist der Lüfter gleich angesprungen.
Display ist aber trotzdem noch nicht verbunden...

Fehlt in der Anleitung das erstellen eines Init Skripts oder sollte der installer das erledigen?

LG Peter
 
Fehlt in der Anleitung das erstellen eines Init Skripts oder sollte der installer das erledigen?
Ist im Paket enthalten, bzw. beim nächsten Release wird die jetzt im Repository enthaltene Version installiert und aktiviert.
 
Irgendwie ist die Installation bei dir nicht sauber durchgelaufen, scheint es.
 
Hallo, an meinem IPhone 6 höre ich keine Warnmeldung. Am Laptop aber ja. Woran kann das liegen?
 
Ah okay, hab grad gesehen dass du im App Thread auch geschrieben hast.
Aber vielleicht sollt ich hier auch mal fragen wegen meinem Problem......

Ich meine, ich hab es auch schon über den Browser auf iPhone und iPad getestet und es gab kein Ton.
 
Hab drüberinstalliert, das selbe wieder....
Wo ist der Fehler?


root@rpi-BBQ:~# cd /home/
root@rpi-BBQ:/home# sudo ./WLANThermo_install.run
Disable shell and kernel messages on the serial connection
Check Ramdrive and create it if it doesn't exist
[ OK ] RAM Drive already exists
Install depencies:
OK http://archive.raspberrypi.org jessie InRelease
Holen: 1 http://mirrordirector.raspbian.org jessie InRelease [14,9 kB]
OK http://archive.raspberrypi.org jessie/main armhf Packages
Holen: 2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8.981 kB]
OK http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-de_DE
Ign http://archive.raspberrypi.org jessie/main Translation-de
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-de_DE
Ign http://archive.raspberrypi.org jessie/ui Translation-de
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Holen: 3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37,5 kB]
Holen: 4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70,3 kB]
Holen: 5 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1.356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/main Translation-de
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Es wurden 9.105 kB in 37 s geholt (241 kB/s).
Paketlisten werden gelesen... Fertig
Es werden keine Pakete installiert, aktualisiert oder entfernt.
0 Pakete aktualisiert, 0 zusätzlich installiert, 0 werden entfernt und 0 nicht aktualisiert.
0 B an Archiven müssen heruntergeladen werden. Nach dem Entpacken werden 0 B zusätzlich belegt sein .

Install PIGPIO
--2016-06-19 18:05:18-- http://abyz.co.uk/rpi/pigpio/pigpio.zip
Auflösen des Hostnamen »abyz.co.uk (abyz.co.uk)«... 91.238.161.4
Verbindungsaufbau zu abyz.co.uk (abyz.co.uk)|91.238.161.4|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 310203 (303K) [application/zip]
In »»/tmp/pigpio.zip«« speichern.

/tmp/pigpio.zip 100%[===================================>] 302,93K 959KB/s in 0,3s

2016-06-19 18:05:19 (959 KB/s) - »»/tmp/pigpio.zip«« gespeichert [310203/310203]

Archive: /tmp/pigpio.zip
creating: /tmp/PIGPIO/
inflating: /tmp/PIGPIO/setup.py
inflating: /tmp/PIGPIO/command.h
inflating: /tmp/PIGPIO/pigpiod.c
inflating: /tmp/PIGPIO/pigpiod_if2.3
inflating: /tmp/PIGPIO/pigs.c
inflating: /tmp/PIGPIO/x_pigpiod_if.c
inflating: /tmp/PIGPIO/pigpiod_if2.c
inflating: /tmp/PIGPIO/pigpiod.1
inflating: /tmp/PIGPIO/README
inflating: /tmp/PIGPIO/command.c
inflating: /tmp/PIGPIO/pigpio.h
inflating: /tmp/PIGPIO/custom.cext
inflating: /tmp/PIGPIO/pigpiod_if.h
inflating: /tmp/PIGPIO/Makefile
inflating: /tmp/PIGPIO/pig2vcd.c
inflating: /tmp/PIGPIO/pigpio.py
inflating: /tmp/PIGPIO/pigs.1
inflating: /tmp/PIGPIO/pigpio.c
inflating: /tmp/PIGPIO/x_pipe
inflating: /tmp/PIGPIO/pigpiod_if.c
inflating: /tmp/PIGPIO/UNLICENCE
inflating: /tmp/PIGPIO/pigpio.3
inflating: /tmp/PIGPIO/pigpiod_if2.h
inflating: /tmp/PIGPIO/pigpiod_if.3
inflating: /tmp/PIGPIO/pig2vcd.1
inflating: /tmp/PIGPIO/x_pigpio.py
inflating: /tmp/PIGPIO/MakeRemote
inflating: /tmp/PIGPIO/x_pigpio.c
inflating: /tmp/PIGPIO/x_pigpiod_if2.c
inflating: /tmp/PIGPIO/x_pigs
make: Entering directory '/tmp/PIGPIO'
gcc -O3 -Wall -pthread -fpic -c -o pigpio.o pigpio.c
gcc -O3 -Wall -pthread -fpic -c -o command.o command.c
gcc -shared -o libpigpio.so pigpio.o command.o
strip --strip-unneeded libpigpio.so
size libpigpio.so
text data bss dec hex filename
217006 4804 593760 815570 c71d2 libpigpio.so
gcc -O3 -Wall -pthread -fpic -c -o pigpiod_if.o pigpiod_if.c
gcc -shared -o libpigpiod_if.so pigpiod_if.o command.o
strip --strip-unneeded libpigpiod_if.so
size libpigpiod_if.so
text data bss dec hex filename
55435 3896 49244 108575 1a81f libpigpiod_if.so
gcc -O3 -Wall -pthread -fpic -c -o pigpiod_if2.o pigpiod_if2.c
gcc -shared -o libpigpiod_if2.so pigpiod_if2.o command.o
strip --strip-unneeded libpigpiod_if2.so
size libpigpiod_if2.so
text data bss dec hex filename
61088 3884 1844 66816 10500 libpigpiod_if2.so
gcc -O3 -Wall -pthread -c -o x_pigpio.o x_pigpio.c
gcc -o x_pigpio x_pigpio.o -L. -lpigpio -pthread -lrt
gcc -O3 -Wall -pthread -c -o x_pigpiod_if.o x_pigpiod_if.c
gcc -o x_pigpiod_if x_pigpiod_if.o -L. -lpigpiod_if -pthread -lrt
gcc -O3 -Wall -pthread -c -o x_pigpiod_if2.o x_pigpiod_if2.c
gcc -o x_pigpiod_if2 x_pigpiod_if2.o -L. -lpigpiod_if2 -pthread -lrt
gcc -O3 -Wall -pthread -c -o pig2vcd.o pig2vcd.c
gcc -o pig2vcd pig2vcd.o
gcc -O3 -Wall -pthread -c -o pigpiod.o pigpiod.c
gcc -o pigpiod pigpiod.o -L. -lpigpio -pthread -lrt
gcc -O3 -Wall -pthread -c -o pigs.o pigs.c
gcc -o pigs pigs.o command.o
make: Leaving directory '/tmp/PIGPIO'
make: Entering directory '/tmp/PIGPIO'
install -m 0755 -d /opt/pigpio/cgi
install -m 0755 -d /usr/local/include
install -m 0644 pigpio.h /usr/local/include
install -m 0644 pigpiod_if.h /usr/local/include
install -m 0644 pigpiod_if2.h /usr/local/include
install -m 0755 -d /usr/local/lib
install -m 0755 libpigpio.so /usr/local/lib
install -m 0755 libpigpiod_if.so /usr/local/lib
install -m 0755 libpigpiod_if2.so /usr/local/lib
install -m 0755 -d /usr/local/bin
install -m 0755 -s pig2vcd /usr/local/bin
install -m 0755 -s pigpiod /usr/local/bin
install -m 0755 -s pigs /usr/local/bin
if which python2; then python2 setup.py install; fi
/usr/bin/python2
running install
running build
running build_py
creating build
creating build/lib.linux-armv6l-2.7
copying pigpio.py -> build/lib.linux-armv6l-2.7
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/pigpio-1.31.egg-info
Writing /usr/local/lib/python2.7/dist-packages/pigpio-1.31.egg-info
if which python3; then python3 setup.py install; fi
/usr/bin/python3
running install
running build
running build_py
creating build/lib
copying pigpio.py -> build/lib
running install_lib
running install_egg_info
Removing /usr/local/lib/python3.4/dist-packages/pigpio-1.31.egg-info
Writing /usr/local/lib/python3.4/dist-packages/pigpio-1.31.egg-info
install -m 0755 -d /usr/local/man/man1
install -m 0644 *.1 /usr/local/man/man1
install -m 0755 -d /usr/local/man/man3
install -m 0644 *.3 /usr/local/man/man3
ldconfig
make: Leaving directory '/tmp/PIGPIO'
add / modify sudoers entrys
Extract the package
install /tmp/${programm}.deb
(Lese Datenbank ... 122784 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von /tmp/wlanthermo.deb ...
python: Kein Prozess gefunden
Sichere alte Konfiguration
Entpacken von wlanthermo (2.3.1-1) über (2.3.1-1) ...
wlanthermo (2.3.1-1) wird eingerichtet ...
already enabled
Run /etc/init.d/lighttpd force-reload to enable changes
Backing up old lighttpd.conf
Kein Passwort gefunden!
Jetzt das Passwort für den Benutzer >wlanthermo< des geschützten Bereichs eingeben!
New password:
Re-type new password:
Adding password for user wlanthermo
Trigger für systemd (215-17+deb8u4) werden verarbeitet ...

========***********WLANThermo installed completely open http://rpi-BBQ in a browser! ***********=== ========
 
Der pigpiod Service startet nicht automatisch...
Wie kann ich das reparieren?

root@rpi-BBQ:/usr/bin# systemctl status pigpiod.service
● pigpiod.service - Daemon required to control GPIO pins via pigpio
Loaded: loaded (/lib/systemd/system/pigpiod.service; disabled)
Active: failed (Result: signal) since So 2016-06-19 19:40:28 CEST; 23s ago

Jun 19 19:40:27 rpi-BBQ pigpiod[31704]: 2016-06-19 19:40:27 initInitialise: Can't lock /var/run/pigpio.pid
Jun 19 19:40:27 rpi-BBQ pigpiod[31704]: Can't initialise pigpio library
Jun 19 19:40:28 rpi-BBQ systemd[1]: pigpiod.service: control process exited, code=killed status=9
Jun 19 19:40:28 rpi-BBQ systemd[1]: Failed to start Daemon required to control GPIO pins via pigpio.
Jun 19 19:40:28 rpi-BBQ systemd[1]: Unit pigpiod.service entered failed state.
root@rpi-BBQ:/usr/bin# journalctl -xn
-- Logs begin at So 2016-06-19 18:23:10 CEST, end at So 2016-06-19 19:41:17 CEST. --
Jun 19 19:41:11 rpi-BBQ sudo[32080]: pam_unix(sudo:session): session closed for user root
Jun 19 19:41:14 rpi-BBQ sudo[32092]: www-data : TTY=unknown ; PWD=/var/www ; USER=root ; COMMAND=/opt/vc/bin/vcgencmd measure_temp
Jun 19 19:41:14 rpi-BBQ sudo[32092]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 19 19:41:14 rpi-BBQ sudo[32092]: pam_unix(sudo:session): session closed for user root
Jun 19 19:41:15 rpi-BBQ sudo[32112]: www-data : TTY=unknown ; PWD=/var/www ; USER=root ; COMMAND=/opt/vc/bin/vcgencmd measure_temp
Jun 19 19:41:15 rpi-BBQ sudo[32112]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 19 19:41:15 rpi-BBQ sudo[32112]: pam_unix(sudo:session): session closed for user root
Jun 19 19:41:17 rpi-BBQ sudo[32124]: www-data : TTY=unknown ; PWD=/var/www ; USER=root ; COMMAND=/opt/vc/bin/vcgencmd measure_temp
Jun 19 19:41:17 rpi-BBQ sudo[32124]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 19 19:41:17 rpi-BBQ sudo[32124]: pam_unix(sudo:session): session closed for user root
root@rpi-BBQ:/usr/bin# systemctl start pigpiod.service
Job for pigpiod.service failed. See 'systemctl status pigpiod.service' and 'journalctl -xn' for details.
 
Folgendes mal ausprobieren:
which pigpiod
pigpiod -l

Gibt es /etc/init.d/pigpiod ?

Welches Image hast du genommen?
 
Ich habe das NOOB Image genommen welches auf der SD Karte von Pirimont war.
Upgrade-dist wurde nicht ausgeführt, da es schon aktuell war.
Sollte egal sein oder?
Oder auch nicht :-/
LG Peter

root@rpi-BBQ:/usr/bin# which pigpiod
/usr/local/bin/pigpiod
pigpiod -l
root@rpi-BBQ:/usr/bin# 2016-06-19 21:17:29 initInitialise: Can't lock /var/run/pigpio.pid
Can't initialise pigpio library

root@rpi-BBQ:/usr/bin# /etc/init.d/pigpiod
Usage: /etc/init.d/ {start|stop|restart|status}
root@rpi-BBQ:/usr/bin# /etc/init.d/pigpiod status
● pigpiod.service - Daemon required to control GPIO pins via pigpio
Loaded: loaded (/lib/systemd/system/pigpiod.service; disabled)
Active: failed (Result: signal) since So 2016-06-19 19:51:32 CEST; 1h 21min ago
Process: 3667 ExecStop=/bin/systemctl kill -s SIGKILL pigpiod (code=killed, signal=KILL)
Process: 3663 ExecStart=/usr/bin/pigpiod -l (code=exited, status=0/SUCCESS)

Jun 19 19:51:32 rpi-BBQ pigpiod[3663]: 2016-06-19 19:51:32 initInitialise: Can't lock /var/run/pigpio.pid
Jun 19 19:51:32 rpi-BBQ pigpiod[3663]: Can't initialise pigpio library
Jun 19 19:51:32 rpi-BBQ systemd[1]: pigpiod.service: control process exited, code=killed status=9
Jun 19 19:51:32 rpi-BBQ systemd[1]: Failed to start Daemon required to control GPIO pins via pigpio.
Jun 19 19:51:32 rpi-BBQ systemd[1]: Unit pigpiod.service entered failed state.
root@rpi-BBQ:/usr/bin# /etc/init.d/pigpiod start
[....] Starting pigpiod (via systemctl): pigpiod.serviceJob for pigpiod.service failed. See 'systemctl status pigpiod.service' and 'journalctl -xn' for details.
failed!
root@rpi-BBQ:/usr/bin#
 
Ich habe das NOOB Image genommen welches auf der SD Karte von Pirimont war.
Das einfachste wäre es "unser" Noob-Image zu nehmen, eventuell sind bei dem Image andere Pakete und Einstellungen aktiv.
Die Installation basiert auch eigentlich auf dem normalen Raspbian Lite Image.
Vorher nochmal, für meine Neugierde folgende Befehle:

http://pastebin.com/XSmiatMy

(Konnte ich hier nicht posten, mag Cloudflare wohl nicht...)
 
Bei mir auch, ich habe die Ausgabe gezippt..

LG
Das einfachste wäre es "unser" Noob-Image zu nehmen, eventuell sind bei dem Image andere Pakete und Einstellungen aktiv.
Die Installation basiert auch eigentlich auf dem normalen Raspbian Lite Image.
Vorher nochmal, für meine Neugierde folgende Befehle:

http://pastebin.com/XSmiatMy

(Konnte ich hier nicht posten, mag Cloudflare wohl nicht...)
 

Anhänge

Bei mir auch, ich habe die Ausgabe gezippt..

pigpiod scheint aber zu laufen?
Vielleicht kommen dort 2 installierte Versionen in Konflikt.
Vielleicht ein Versuch (so aus dem Kopf):
sytemctl disable pigpiod.service
rm /etc/init.d/pigpiod
apt-get install python-pigpio (evtl. "python-pigpiod"!?)

apt-get install pigpiod (sollte installiert sein)
systemctl reload
systemctl enable pigpiod.service

init 6
(Reboot ist notwendig!)
Vielleicht aber lieber wirklich von einem sauberen Image neu aufsetzen...

EDIT: die Befehle oben gelten nicht für alle anderen.
 
Nein das geht nicht.
Ist seitens Apple nicht gewünscht.

Wie lasst ihr euch denn nachts im Schlafzimmer über Abweichung der Garraumtemperatur informieren?
 
Zurück
Oben Unten