Hallo,
seit Tagen bin ich folgendem Problem auf der Spur, komme aber nicht so recht weiter. Eintrag aus dem log. Hier ab "including myw.cfg".
Es geht um:
String found where operator expected at (eval 19) line 1, near "'cloudy'', '"
(Missing operator before ', '?)
Bareword found where operator expected at (eval 19) line 1, near "', 'weather"
(Missing operator before weather?)
ich vermute mal ich muss mir die Anführungszeichen in "'cloudy'", '" wegdenken und nach 'cloudy', ' oder einfach nur cloudy, suchen?
Ich weiss nun nicht wo ich nach den angemahnten Fehlern suchen soll. FHEM läuft problemos, da kann ich nicht klagen, bis auf diese Einträge hat.
Und was heisst Bad name after Showers' at (eval 26) line 1.
2016.04.14 11:11:23 1: Including fhem.cfg
2016.04.14 11:11:24 2: eventTypes: loaded 2273 events from ./log/eventTypes.txt
2016.04.14 11:11:28 1: define: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@57600
2016.04.14 11:11:28 1: init: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@57600
Use of uninitialized value in string ne at ./FHEM/00_SIGNALduino.pm line 1720, <$fh> line 322.
2016.04.14 11:11:30 2: CUL_TCM97001 Unknown device CUL_TCM97001_146, please define it
Use of uninitialized value in numeric eq (==) at ./FHEM/00_SIGNALduino.pm line 856, <$fh> line 322.
2016.04.14 11:11:33 1: Including myw.cfg
String found where operator expected at (eval 19) line 1, near "'cloudy'', '"
(Missing operator before ', '?)
Bareword found where operator expected at (eval 19) line 1, near "', 'weather"
(Missing operator before weather?)
2016.04.14 11:11:34 1: Including ./log/fhem.save
2016.04.14 11:11:34 1: usb create starting
2016.04.14 11:11:40 1: usb create end
2016.04.14 11:11:40 0: Featurelevel: 5.7
2016.04.14 11:11:40 0: Server started with 83 defined entities (fhem.pl:11178/2016-04-03 perl:5.020002 os:linux user:fhem pid:14470)
2016.04.14 11:11:40 1: PERL WARNING: String found where operator expected at (eval 26) line 1, near "'cloudy'', '"
2016.04.14 11:11:40 1: PERL WARNING: (Missing operator before ', '?)
2016.04.14 11:11:40 1: PERL WARNING: Bareword found where operator expected at (eval 26) line 1, near "', 'weather"
2016.04.14 11:11:40 1: PERL WARNING: (Missing operator before weather?)
2016.04.14 11:11:40 2: Bad name after Showers' at (eval 26) line 1.
2016.04.14 11:11:40 1: PERL WARNING: String found where operator expected at (eval 27) line 1, near "'cloudy'', '"
2016.04.14 11:11:40 1: PERL WARNING: Bareword found where operator expected at (eval 27) line 1, near "', 'weather"
2016.04.14 11:11:40 2: Bad name after Showers' at (eval 27) line 1.
2016.04.14 11:11:40 1: PERL WARNING: String found where operator expected at (eval 29) line 1, near "'cloudy'', '"
2016.04.14 11:11:40 1: PERL WARNING: Bareword found where operator expected at (eval 29) line 1, near "', 'weather"
2016.04.14 11:11:40 2: Bad name after Showers' at (eval 29) line 1.
usw (wird ca 10 mal wiederholt
hier ein list:
Internals:
CFGFN myw.cfg
NAME myW_Bonn
NR 273
STATE Bonn Thu, 14 Apr 2016 10:50:00 +0200: Scattered Clouds <br><br>T: 12.0 C H: 72 P: 1013 hPa W: 4 km/h <br> <br> Thursday => Partly cloudy. High 17C. Winds light and variable. <br><br>Thursday Night => Partly cloudy skies early then becoming cloudy with periods of rain late. Low 9C. Winds S at 10 to 15 km/h. Chance of rain 90%.<br><br>Friday => Cloudy with light rain in the morning...then scattered thunderstorms in the afternoon. High 17C. Winds SW at 15 to 30 km/h. Chance of rain 60%. <br><br>Friday Night => Rain showers early with overcast skies late. Low around 10C. Winds S at 15 to 25 km/h. Chance of rain 50%.<br><br>Saturday => Considerable cloudiness with occasional rain showers. High 14C. Winds SW at 15 to 30 km/h. Chance of rain 50%. <br><br>Saturday Night => Cloudy skies. Low around 5C. Winds NW at 15 to 25 km/h.
TYPE dummy
Helper:
Dblog:
Pressure_mb:
Logdb:
TIME 1460627711.07059
VALUE 1013
Relative_humidity:
Logdb:
TIME 1460627711.02219
VALUE 59
Temp_c:
Logdb:
TIME 1460627710.98788
VALUE 14
Wind_kph:
Logdb:
TIME 1460627711.04734
VALUE 6
Readings:
2016-04-11 22:25:10 dewpoint 5
2016-04-14 11:55:11 dewpoint_c 6
2016-04-14 11:55:11 icon1 partlycloudy
2016-04-14 11:55:11 icon2 nt_rain
2016-04-14 11:55:11 icon3 rain
2016-04-14 11:55:11 icon4 nt_chancerain
2016-04-14 11:55:11 icon5 chancerain
2016-04-14 11:55:11 icon6 nt_cloudy
2016-04-14 11:55:11 icon7 mostlycloudy
2016-04-14 11:55:11 icon8 nt_partlycloudy
2016-04-14 11:55:10 observation_time Bonn Thu, 14 Apr 2016 11:50:00 +0200
2016-04-14 11:55:11 periode1 Thursday => Partly cloudy. High 17C. Winds light and variable.
2016-04-14 11:55:11 periode2 Thursday Night => Partly cloudy skies this evening will give way to cloudy skies and rain overnight. Low 9C. Winds S at 10 to 15 km/h. Chance of rain 90%.
2016-04-14 11:55:11 periode3 Friday => Light rain in the morning. Scattered thunderstorms in the afternoon. High 16C. Winds SW at 15 to 30 km/h. Chance of rain 60%.
2016-04-14 11:55:11 periode4 Friday Night => Showers in the evening, then cloudy overnight. Low around 10C. Winds S at 15 to 25 km/h. Chance of rain 50%.
2016-04-14 11:55:11 periode5 Saturday => Cloudy with showers. High 14C. Winds SW at 15 to 30 km/h. Chance of rain 50%.
2016-04-14 11:55:11 periode6 Saturday Night => Cloudy. Low near 5C. Winds NW at 15 to 25 km/h.
2016-04-14 11:55:11 periode7 Sunday => Considerable cloudiness. High 12C. Winds NW at 15 to 25 km/h.
2016-04-14 11:55:11 periode8 Sunday Night => Some clouds early will give way to generally clear conditions overnight. Low 2C. Winds W at 10 to 15 km/h.
2016-04-14 11:55:11 pressure_mb 1013
2016-04-14 11:55:11 relative_humidity 59
2016-04-14 11:55:10 temp_c 14
2016-04-14 11:55:10 weather Mostly Cloudy
2016-04-12 09:18:59 wind_kp 9
2016-04-14 11:55:11 wind_kph 6
Attributes:
room system
userReadings wind_kph,weather,temp_c,pressure_mb,relative_humidity,
hier die myw.cfg
#? myWeather Bonn
define myW_Bonn dummy
attr myW_Bonn room system
attr myW_Bonn userReadings wind_kph,weather,temp_c,pressure_mb,relative_humidity,
#? at
define at_myW_read at +*00:30:00 {system("/opt/fhem/./mywupd.sh")}{fhem ("include Bonn.upd")}
attr at_myW_read alignTime 00:25
attr at_myW_read group at
attr at_myW_read room at-notify-doif,myWeather
#? reading Group Bonn
define myWG_Bonn readingsGroup <Stand>,<Aktuell>,<Temperatur>,<Luftdruck>,<Luftfeuchte>,<Wind>\
myW_Bonn:observation_time,weather,temp_c,pressure_mb,relative_humidity,wind_kph
attr myWG_Bonn alias aktuell Bonn
attr myWG_Bonn group Wetter Bonn
attr myWG_Bonn nonames 1
attr myWG_Bonn room IPhone,Wohnung,myWeather
attr myWG_Bonn valueFormat {"temp_c" => "%.1f °;C", "pressure_mb" => "%.0f mb", "relative_humidity" => "%.0f %%", "wind_kph" => "%.0f kmh"}
attr myWG_Bonn valueStyle { if($READING eq "temp_c" && $VALUE > 30) { 'style="color:red"'}\
elsif($READING eq "temp_c" && $VALUE > 25) { 'style="color:orange"'}\
elsif($READING eq "temp_c" && $VALUE > 20) { 'style="color:yellow"'}\
elsif($READING eq "temp_c" && $VALUE > 15) { 'style="color:lightgreen"'}\
elsif($READING eq "temp_c" && $VALUE > 10) { 'style="color:lightblue"'}\
elsif($READING eq "temp_c" && $VALUE > 5) { 'style="color:grey"'}\
elsif($READING eq"temp_c" && $VALUE < 0) { 'style="color:white"'}\
elsif($READING eq "relative_humidity" && $VALUE > 90) { 'style="color:red"'}\
elsif($READING eq "relative_humidity" && $VALUE > 70) { 'style="color:orange"'}\
elsif($READING eq "relative_humidity" && $VALUE > 50) { 'style="color:yellow"'}\
elsif($READING eq "relative_humidity" && $VALUE > 30) { 'style="color:grey"'}\
elsif($READING eq "pressure_mb" && $VALUE > 1020) { 'style="color:red"'}\
elsif($READING eq "pressure_mb" && $VALUE > 1010) { 'style="color:orange"'}\
elsif($READING eq "pressure_mb" && $VALUE > 1000) { 'style="color:yellow"'}\
elsif($READING eq "pressure_mb" && $VALUE > 990) { 'style="color:grey"'}\
elsif($READING eq "wind_kph" && $VALUE > 80) { 'style="color:red"'}\
elsif($READING eq "wind_kph" && $VALUE > 60) { 'style="color:orange"'}\
elsif($READING eq "wind_kph" && $VALUE > 40) { 'style="color:yellow"'}\
elsif($READING eq "wind_kph" && $VALUE > 20) { 'style="color:grey"'}\
else{'style="color:white"'} }
define myWG_fc_Bonn readingsGroup <>,<>\
\
myW_Bonn:icon1,periode1\
myW_Bonn:icon2,periode2\
myW_Bonn:icon3,periode3\
myW_Bonn:icon4,periode4\
myW_Bonn:icon5,periode5\
myW_Bonn:icon6,periode6\
myW_Bonn:icon7,periode7\
myW_Bonn:icon8,periode8
attr myWG_fc_Bonn alias Bonn Vorschau
attr myWG_fc_Bonn group Wetter Vorschau
attr myWG_fc_Bonn nonames 1
attr myWG_fc_Bonn room IPhone,Wohnung,myWeather
attr myWG_fc_Bonn valueIcon $VALUE
attr myW_Bonn userReadings wind_kph,weather,temp_c,pressure_mb,relative_humidity,
erkläre das mal genauer.
Zitat von: frank am 14 April 2016, 12:30:47
attr myW_Bonn userReadings wind_kph,weather,temp_c,pressure_mb,relative_humidity,
erkläre das mal genauer.
Dachte das ist notwendig um db zu loggen. Soll ich's mal löschen?
so wie ich userreadings kenne, ergibt dein attribut für mich keinen sinn.
und das "schlimmste" finde ich, ist das letzte komma.
Zitat von: frank am 14 April 2016, 12:38:45
so wie ich userreadings kenne, ergibt dein attribut für mich keinen sinn.
und das "schlimmste" finde ich, ist das letzte komma.
würde gerne berichten dass dies das Problem war. War es aber nicht, gelöscht und nach neustart wieder das gleiche.