Hi,
I'm newbie with fhem, i 'm trying use it with a raspberry.
For my first experimentation, i want to use it only (for instance) with my freebox (it's a adsl box of my provider)
I can send remote command via http.
Can you say me , if can launch FHEM without cul connected (i must buy an enocean usb300, but only in a few month not now) ????
For instance, my browser display just this message : This page can not be displayed
and the log file:
2014.02.10 14:05:39 1: Including fhem.cfg
2014.02.10 14:05:40 3: telnetPort: port 7072 opened
2014.02.10 14:05:41 3: WEB: port 8083 opened
2014.02.10 14:05:41 3: WEBphone: port 8084 opened
2014.02.10 14:05:41 3: WEBtablet: port 8085 opened
2014.02.10 14:05:41 1: usb create starting
2014.02.10 14:05:42 3: Opening CUL device /dev/ttyAMA0
2014.02.10 14:05:43 3: Can't open /dev/ttyAMA0: Permission non accordée
2014.02.10 14:05:43 1: usb create end
2014.02.10 14:05:43 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. R
estart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.02.10 14:05:43 0: Server started with 9 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user pi,
pid 2368)
it's normal ??
thank you
2014.02.10 14:05:42 3: Opening CUL device /dev/ttyAMA0
2014.02.10 14:05:43 3: Can't open /dev/ttyAMA0: Permission non accordée
Did you have a CUL or not?
when yes:
please check the permission of /dev/ttyAMA0
could the fhem User use this defice?
when no:
Why do you define a device, do you not have?
and:
Could you please use a better subject than "NEwbie with FHEM"?
Excuse, i 've changed the title.
For instance i haven't cul, i want juste use fhem with my freebox (adsl box of my provider)
I can use fhem like this ??
thank
You define a CUL but you don´t have ....
So: Wich devices do you have at the moment? When no .... I think it is not normal, to use fhem without a reading and/or writing-Device
But ... it looks O.K. So you can try to conect with a browser to the Device
(Sorry for my english)
at the moment, i haven't any device then i can't launch the web interface , it's normal ??
my fhem.cfg:
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global statefile ./log/fhem.save
attr global verbose 3
attr global updateInBackground
define telnetPort telnet 7072 global
define WEB FHEMWEB 8083 global
define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen
define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad
# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log
define eventTypes eventTypes ./log/eventTypes.txt
# Disable this to avoid looking for new USB devices on startup
#define initialUsbCheck notify global:INITIALIZED usb create
the webserver response is always "This page can not be displayed"
thank
you try it with the "port"?
like: http://youdevice:8083
yes of course:
http://172.30.3.186:8083/fhem for me
or
http://172.30.3.186:8083 is the same result snif
work the telnet? (telnet localhost 7072)
Did fhem run? (ps aux | grep [f]em)
have fhem conneckt to the network? (netstat -lntp | grep perl)
the response for telnet:
root@raspberrypi:/home/pi# telnet localhost 7072
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Good
the response for ps:
root@raspberrypi:/home/pi# ps aux | grep fhem
fhem 2395 0.0 1.7 12376 7996 pts/2 S 15:13 0:01 perl fhem.pl fhem.cfg
root 2761 0.0 0.1 3560 836 pts/2 S+ 16:00 0:00 grep fhem
the response for nestat:
root@raspberrypi:/home/pi# netstat -lntp | grep perl
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 2395/perl
tcp 0 0 0.0.0.0:8084 0.0.0.0:* LISTEN 2395/perl
tcp 0 0 0.0.0.0:8085 0.0.0.0:* LISTEN 2395/perl
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 2395/perl
I'm connecting with putty ,and it's ok.
so fhem is running (telnet konnecktion)
fhem "hear" on the Web-Port (0 0.0.0.0:8083 )
So .. do you have a Firewall, wich blocks http-Trafik not on port 80?
Sorry for the english and german speaking people : I suppose vincent13 is french !
Je suppose que si tu as une freebox c'est que tu es français ! Est-ce que tu essaies de te connecter sur le réseau local ou depuis Internet ? Il faut d'abord se connecter depuis le réseau local. Normalement il n'y a pas de pb.
J'ai fait plusieurs tutos sur fhem en français (http://play.with.free.fr/index.php/tag/fhem/), si ça peut aider.
Pour le contrôle de la freebox c'est a priori possible : en tout cas facilement avec l'ancienne API, peut-être un peu plus dur avec la nouvelle (authentifications). Je voulais aussi creuser la question
Oui je suis francais, je vais continuer dans mon anglais scolaire pour tout le monde (du moins ceux qui me comprendront), now it's good, before i was in the company network.
Now at home that 's right.
thanks
Sinon je vais tester avec ma freebox revolution pour commencer , n'est ce pas oliv06 ;)