Plot = XML Parsing Error: no element found

Begonnen von Guest, 19 Oktober 2011, 20:03:32

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Hi,
I would be grateful for any help in resolving a problem I having with FHEM
:-)


I am trying to setup FHEM on a Windows 7 X64 PC.
I am running FHEM 5.1 (updated via the updatefhem command).

My system is using Strawberry Perl and utilizes a FHZ 1300 PC with a number
of FHT 80Bs and a KS300.

I have previously successfully run on a NSLU2 Linux box with FHEM 4.8

I have a problem where I am getting a message for any plot that says:

Location:
> http://192.168.1.217:8083/fhem?cmd=showlog%20weblink_FHT_2801%20FileLog_FHT_2801%20fht%20c:\strawberry\fhem\log\FHT_2801-2011.log&pos=Line
> Number 1, Column 1:
>

In the command window where I am running perl I get the messages:

> Use of uninitialized value $linf in -f at ./FHEM/92_FileLog.pm line 185.
> Use of uninitialized value in concatenation (.) or string at
> ./FHEM/92_FileLog.pm line 186.
> Unrecognized escape \s passed through at (eval 22) line 1.
> Unrecognized escape \F passed through at (eval 22) line 1.
>

I have set-up a config file as follows:

#
# pgm2 / autocreate configfile. Take a look at the other examples for more.
#
attr global autoload_undefined_devices 1
attr global logfile c:\strawberry\fhem\log\fhem.log
attr global modpath .
attr global nofork 1
attr global port 7072 global                 # our TCP/IP port (localhost
only)
attr global statefile c:\strawberry\fhem\fhem.save   # where to save the
state of the devices
attr global verbose 3                  # "normal" verbosity (min 1, max 5)

define FHZ1 FHZ COM1
attr FHZ1 fhtsoftbuffer 1
attr FHZ1 loglevel 5

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet touchpad

# Fake logfile, to access the global log
define Logfile FileLog c:\strawberry\fhem\log\fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate autosave
attr autocreate device_room %TYPE
attr autocreate filelog c:\strawberry\fhem\log\%NAME-%Y.log
attr autocreate weblink 1
attr autocreate weblink_room Plots

After fhem has started and the devices discovered, the cfg file looks like
this:

attr global archivedir c:\strawberry\fhem\archive
attr global autoload_undefined_devices 1
attr global logfile c:\strawberry\fhem\log\fhem.log
attr global modpath .
attr global nofork 1
attr global port 7072 global
attr global statefile c:\strawberry\fhem\fhem.save
attr global userattr fm_fav fm_name fm_order fm_groups
attr global verbose 3

define FHZ1 FHZ COM1
attr FHZ1 fhtsoftbuffer 1
attr FHZ1 loglevel 5

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone smallscreen 1

define WEBtablet FHEMWEB 8085 global
attr WEBtablet touchpad 1

define Logfile FileLog c:\strawberry\fhem\log\fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate autosave 1
attr autocreate device_room %TYPE
attr autocreate filelog c:\strawberry\fhem\log\%NAME-%Y.log
attr autocreate weblink 1
attr autocreate weblink_room Plots

define FHT_5008 FHT 5008
attr FHT_5008 fm_order 8
attr FHT_5008 retrycount 3
attr FHT_5008 room FHT

define FileLog_FHT_5008 FileLog c:\strawberry\fhem\log\FHT_5008-%Y.log
FHT_5008
attr FileLog_FHT_5008 fm_order 18
attr FileLog_FHT_5008 logtype fht:Temp/Act,text
attr FileLog_FHT_5008 room FHT

define weblink_FHT_5008 weblink fileplot FileLog_FHT_5008:fht:CURRENT
attr weblink_FHT_5008 label "FHT_5008 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_5008 room Plots

define FHT_2803 FHT 2803
attr FHT_2803 fm_order 3
attr FHT_2803 retrycount 3
attr FHT_2803 room FHT

define FileLog_FHT_2803 FileLog c:\strawberry\fhem\log\FHT_2803-%Y.log
FHT_2803
attr FileLog_FHT_2803 fm_order 13
attr FileLog_FHT_2803 logtype fht:Temp/Act,text
attr FileLog_FHT_2803 room FHT

define weblink_FHT_2803 weblink fileplot FileLog_FHT_2803:fht:CURRENT
attr weblink_FHT_2803 label "FHT_2803 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_2803 room Plots

define FHT_2801 FHT 2801
attr FHT_2801 fm_order 1
attr FHT_2801 retrycount 3
attr FHT_2801 room FHT

define FileLog_FHT_2801 FileLog c:\strawberry\fhem\log\FHT_2801-%Y.log
FHT_2801
attr FileLog_FHT_2801 fm_order 11
attr FileLog_FHT_2801 logtype fht:Temp/Act,text
attr FileLog_FHT_2801 room FHT

define weblink_FHT_2801 weblink fileplot FileLog_FHT_2801:fht:CURRENT
attr weblink_FHT_2801 label "FHT_2801 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_2801 room Plots

define FHT_5009 FHT 5009
attr FHT_5009 fm_order 9
attr FHT_5009 retrycount 3
attr FHT_5009 room FHT

define FileLog_FHT_5009 FileLog c:\strawberry\fhem\log\FHT_5009-%Y.log
FHT_5009
attr FileLog_FHT_5009 fm_order 19
attr FileLog_FHT_5009 logtype fht:Temp/Act,text
attr FileLog_FHT_5009 room FHT

define weblink_FHT_5009 weblink fileplot FileLog_FHT_5009:fht:CURRENT
attr weblink_FHT_5009 label "FHT_5009 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_5009 room Plots

define FHT_5006 FHT 5006
attr FHT_5006 fm_order 6
attr FHT_5006 retrycount 3
attr FHT_5006 room FHT

define FileLog_FHT_5006 FileLog c:\strawberry\fhem\log\FHT_5006-%Y.log
FHT_5006
attr FileLog_FHT_5006 fm_order 16
attr FileLog_FHT_5006 logtype fht:Temp/Act,text
attr FileLog_FHT_5006 room FHT

define weblink_FHT_5006 weblink fileplot FileLog_FHT_5006:fht:CURRENT
attr weblink_FHT_5006 label "FHT_5006 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_5006 room Plots

define FHT_2802 FHT 2802
attr FHT_2802 fm_order 2
attr FHT_2802 retrycount 3
attr FHT_2802 room FHT

define FileLog_FHT_2802 FileLog c:\strawberry\fhem\log\FHT_2802-%Y.log
FHT_2802
attr FileLog_FHT_2802 fm_order 12
attr FileLog_FHT_2802 logtype fht:Temp/Act,text
attr FileLog_FHT_2802 room FHT

define weblink_FHT_2802 weblink fileplot FileLog_FHT_2802:fht:CURRENT
attr weblink_FHT_2802 label "FHT_2802 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_2802 room Plots

define FHT_5007 FHT 5007
attr FHT_5007 fm_order 7
attr FHT_5007 retrycount 3
attr FHT_5007 room FHT

define FileLog_FHT_5007 FileLog c:\strawberry\fhem\log\FHT_5007-%Y.log
FHT_5007
attr FileLog_FHT_5007 fm_order 17
attr FileLog_FHT_5007 logtype fht:Temp/Act,text
attr FileLog_FHT_5007 room FHT

define weblink_FHT_5007 weblink fileplot FileLog_FHT_5007:fht:CURRENT
attr weblink_FHT_5007 label "FHT_5007 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_5007 room Plots

define FHT_500a FHT 500a
attr FHT_500a fm_order 10
attr FHT_500a retrycount 3
attr FHT_500a room FHT

define FileLog_FHT_500a FileLog c:\strawberry\fhem\log\FHT_500a-%Y.log
FHT_500a
attr FileLog_FHT_500a fm_order 20
attr FileLog_FHT_500a logtype fht:Temp/Act,text
attr FileLog_FHT_500a room FHT

define weblink_FHT_500a weblink fileplot FileLog_FHT_500a:fht:CURRENT
attr weblink_FHT_500a label "FHT_500a Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_500a room Plots

define FHT_2804 FHT 2804
attr FHT_2804 fm_order 4
attr FHT_2804 retrycount 3
attr FHT_2804 room FHT

define FileLog_FHT_2804 FileLog c:\strawberry\fhem\log\FHT_2804-%Y.log
FHT_2804
attr FileLog_FHT_2804 fm_order 14
attr FileLog_FHT_2804 logtype fht:Temp/Act,text
attr FileLog_FHT_2804 room FHT

define weblink_FHT_2804 weblink fileplot FileLog_FHT_2804:fht:CURRENT
attr weblink_FHT_2804 label "FHT_2804 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_2804 room Plots

define FHT_2805 FHT 2805
attr FHT_2805 fm_order 5
attr FHT_2805 retrycount 3
attr FHT_2805 room FHT

define FileLog_FHT_2805 FileLog c:\strawberry\fhem\log\FHT_2805-%Y.log
FHT_2805
attr FileLog_FHT_2805 fm_order 15
attr FileLog_FHT_2805 logtype fht:Temp/Act,text
attr FileLog_FHT_2805 room FHT

define weblink_FHT_2805 weblink fileplot FileLog_FHT_2805:fht:CURRENT
attr weblink_FHT_2805 label "FHT_2805 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_FHT_2805 room Plots

define KS300 KS300 1234
attr KS300 room KS300

define FileLog_KS300 FileLog c:\strawberry\fhem\log\KS300-%Y.log KS300:T:.*
attr FileLog_KS300 fm_order 21
attr FileLog_KS300 logtype ks300:Temp/Rain,ks300_2:Wind/Hum,text
attr FileLog_KS300 room KS300

define weblink_KS300 weblink fileplot FileLog_KS300:ks300:CURRENT
attr weblink_KS300 label "KS300 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_KS300 room Plots

define weblink_KS300_2 weblink fileplot FileLog_KS300:ks300_2:CURRENT
attr weblink_KS300_2 label "KS300 Min $data{min1}, Max $data{max1}, Last
$data{currval1}"
attr weblink_KS300_2 room Plots

This used to work on the NSLU2 (Linux) but doesn't on the Windows 7 PC.

Any suggestions as to what I should be looking for to fix it would be
gratefully received :-)

Richard

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

rudolfkoenig

                                                   

> Unrecognized escape \s passed through at (eval 22) line 1.

Looks like fhem doesn't like windows style path spec with \ (backslash) in it.
Try changing all of them to / (slash)

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

Guest

Originally posted by: <email address deleted>

On Oct 20, 7:47 am, Rudolf Koenig wrote:
> Looks like fhem doesn't like windows style path spec with \ (backslash) in it.
> Try changing all of them to / (slash)

That was it - thanks for the solution :-)

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com