fhem / smartvisu / banana pi

Begonnen von Snobs, 05 Mai 2016, 18:26:01

Vorheriges Thema - Nächstes Thema

Snobs

Hallo zusammen,

ich habe erfolgreich einen RapsberryPI mit fhem am laufen. Angeschlossen bisher ein HM-Lan und ein Thermostat.
Anschliessend habe ich Fronthem und smartvisu zusammen gebracht und auch das funktioniert.

Nun zu meinem Problem, smartvisu läuft auf einem BananaPI unter Nginx.
Heute habe ich mir gedacht, warum zwei Geräte laufen installiere ich FHEM doch auch auf dem BananaPI und mache das ganze lokal.
Da ist jetzt mein Problem ich habe frisch FHEM aus dem repo installiert, Fronthem nach dem Wiki eingerichtet und einen Client eingetragen.
Anschliessend habe ich nur die IP im smartvisu geändert und dieser bekommt nun im FHEM keinen connect. Auch den Port 2121 sehe ich nirgends als Listener.

Ich weiß nicht wo ich noch suchen soll warum das nicht geht und bitte um Hilfe.
Wenn ich Logfiles etc. posten soll, dann nur sagen, mache ich gerne.

Danke & vielen Dank
Sascha

herrmannj

Websocket Server aus cpan installiert?

Vg
Joerg

Snobs

#2
Gerade erneut geprüft und ja ist drauf.

root@server:/opt/fhem# cpanm Net::WebSocket::Server
Net::WebSocket::Server is up to date. (0.003004)
root@server:/opt/fhem# cpanm JSON
JSON is up to date. (2.90)


Ich glaube ist eher ein Rechte Problem, dass der Port nicht aufgemacht werden darf. Es gibt ja keinen PI User mit sudo o.Ä.
Nur finde ich keine LOG - Einträge darüber

herrmannj

möglich.

Schau mal im log. Dort findest Du im Normalfall die Meldung das der Port geöffnet wird. Dazu bitte mal mit top schauen, der server läuft in einem eigenen fork

vg
joerg

Snobs

Im Log findet sich trotz verbose 5 nichts. Auch im top sehe ich leider nix worauf sich ein laufender Prozess schliessen lässt :(

Zitat2016.05.05 19:52:41 4: Connection accepted from FHEMWEB:192.168.100.22:65080
2016.05.05 19:52:41 4: FHEMWEB:192.168.100.22:65080 POST /fhem?XHR=1&cmd=shutdown%20restart; BUFLEN:0
2016.05.05 19:52:41 5: Cmd: >shutdown restart<
2016.05.05 19:52:41 5: Triggering global (1 changes)
2016.05.05 19:52:41 5: Notify loop for global SHUTDOWN
2016.05.05 19:52:41 1: in SHUTDOWN
2016.05.05 19:52:41 0: Server shutdown
2016.05.05 19:52:41 4: PC: shutdown called
2016.05.05 19:52:44 5: Initializing Type Library:
2016.05.05 19:52:44 1: Including fhem.cfg
2016.05.05 19:52:44 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateStyle icon sortby webCmd widgetOverride<
2016.05.05 19:52:44 5: Cmd: >attr global autoload_undefined_devices 1<
2016.05.05 19:52:44 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2016.05.05 19:52:44 5: Cmd: >attr global modpath .<
2016.05.05 19:52:44 5: Cmd: >attr global motd SecurityCheck:

WEB,WEBphone,WEBtablet has no basicAuth attribute.
telnetPort has no password/globalpassword attribute.

Restart FHEM for a new check if the problem is fixed,
or set the global attribute motd to none to supress this message.
<
2016.05.05 19:52:44 5: Cmd: >attr global statefile ./log/fhem.save<
2016.05.05 19:52:44 5: Cmd: >attr global updateInBackground 1<
2016.05.05 19:52:44 5: Cmd: >attr global verbose 5<
2016.05.05 19:52:44 5: Cmd: >define telnetPort telnet 7072 global<
2016.05.05 19:52:44 5: Loading ./FHEM/98_telnet.pm
2016.05.05 19:52:44 3: telnetPort: port 7072 opened
2016.05.05 19:52:44 5: Cmd: >define WEB FHEMWEB 8083 global<
2016.05.05 19:52:44 5: Loading ./FHEM/01_FHEMWEB.pm
2016.05.05 19:52:44 3: WEB: port 8083 opened
2016.05.05 19:52:44 5: Cmd: >attr WEB editConfig 1<
2016.05.05 19:52:44 5: Cmd: >define WEBphone FHEMWEB 8084 global<
2016.05.05 19:52:44 3: WEBphone: port 8084 opened
2016.05.05 19:52:44 5: Cmd: >attr WEBphone stylesheetPrefix smallscreen<
2016.05.05 19:52:44 5: Cmd: >define WEBtablet FHEMWEB 8085 global<
2016.05.05 19:52:44 3: WEBtablet: port 8085 opened
2016.05.05 19:52:44 5: Cmd: >attr WEBtablet stylesheetPrefix touchpad<
2016.05.05 19:52:44 5: Cmd: >define Logfile FileLog ./log/fhem-%Y-%m.log fakelog<
2016.05.05 19:52:44 5: Loading ./FHEM/92_FileLog.pm
2016.05.05 19:52:44 5: Cmd: >define autocreate autocreate<
2016.05.05 19:52:44 5: Loading ./FHEM/98_autocreate.pm
2016.05.05 19:52:44 5: Cmd: >attr autocreate filelog ./log/%NAME-%Y.log<
2016.05.05 19:52:44 5: Cmd: >define eventTypes eventTypes ./log/eventTypes.txt<
2016.05.05 19:52:44 5: Loading ./FHEM/91_eventTypes.pm
2016.05.05 19:52:44 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.05.05 19:52:44 5: Cmd: >define PC fronthemDevice 192.168.100.22<
2016.05.05 19:52:44 5: Loading ./FHEM/31_fronthemDevice.pm
2016.05.05 19:52:44 5: Cmd: >attr PC room Fronthem<
2016.05.05 19:52:44 5: Cmd: >attr PC whitelist false<
2016.05.05 19:52:44 1: Including ./log/fhem.save
2016.05.05 19:52:44 5: Cmd: >setstate Logfile active<
2016.05.05 19:52:44 5: Cmd: >setstate PC disconnected<
2016.05.05 19:52:44 5: Cmd: >setstate PC 2016-05-05 19:51:54 gateway<
2016.05.05 19:52:44 5: Cmd: >setstate PC 2016-05-05 19:51:54 identity 192.168.100.22<
2016.05.05 19:52:44 5: Cmd: >setstate PC 2016-05-05 19:51:54 state disconnected<
2016.05.05 19:52:44 5: Cmd: >setstate autocreate active<
2016.05.05 19:52:44 5: Cmd: >setstate eventTypes active<
2016.05.05 19:52:44 5: Cmd: >setstate global <no definition><
2016.05.05 19:52:44 5: Triggering global (1 changes)
2016.05.05 19:52:44 5: Notify loop for global INITIALIZED
2016.05.05 19:52:44 1: in INITIALIZED
2016.05.05 19:52:45 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.05.05 19:52:45 0: Featurelevel: 5.7
2016.05.05 19:52:45 0: Server started with 9 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 9593)
2016.05.05 19:52:46 4: Connection accepted from FHEMWEB:192.168.100.22:65095
2016.05.05 19:52:46 4: FHEMWEB:192.168.100.22:65095 GET /fhem?XHR=1&inform=type=status;filter=;since=1462470759.7250001;fmt=JSON&timestamp=1462470762521; BUFLEN:0