diff --git a/fhem/examples/03_fht b/fhem/examples/03_fht index 3ff482b01..a4fb13e3e 100644 --- a/fhem/examples/03_fht +++ b/fhem/examples/03_fht @@ -8,11 +8,12 @@ # After about 5-10 minutes, check if "list wz" returns something meaningful # -attr global logfile /var/log/fhem/fhem-%Y-%m.log -attr global statefile /var/log/fhem/fhem.save # where to save the state of the devices +attr global logfile /tmp/fhem-%Y-%m.log +attr global statefile /tmp/fhem.save # where to save the state of the devices attr global verbose 3 # "normal" verbosity attr global port 7072 # our TCP/IP port (localhost only) -attr global modpath /usr/local/libusr/local/lib # where our FHEM directory is +attr global modpath . # where our FHEM directory is + define FHZ FHZ /dev/tts/USB0 # the serial port of an FHZ 1000 PC define wz FHT 3232 # type FHT, transmitter code 3232 (default value) diff --git a/fhem/examples/04_log b/fhem/examples/04_log index 62b911eb0..77c76ae24 100644 --- a/fhem/examples/04_log +++ b/fhem/examples/04_log @@ -4,11 +4,12 @@ # contrib/91_DbLog.pm # -attr global logfile /var/log/fhem/fhem-%Y-%m.log -attr global statefile /var/log/fhem/fhem.save # where to save the state of the devices +attr global logfile /tmp/fhem-%Y-%m.log +attr global statefile /tmp/fhem.save # where to save the state of the devices attr global verbose 3 # "normal" verbosity attr global port 7072 # our TCP/IP port (localhost only) -attr global modpath /usr/local/libusr/local/lib # where our FHEM directory is +attr global modpath . # where our FHEM directory is + define FHZ FHZ /dev/tts/USB0 # the serial port of an FHZ 1000 PC define wz FHT 3232 # type FHT, transmitter code 3232 (default value) @@ -17,7 +18,7 @@ define ks1 KS300 1234 250 # type KS300, with 250ml rain / counter ######################### # Log temperature and actuator changes into a file, its name changes weekly -define wzlog FileLog /var/var/log/fhem/wz-%Y-%U.log wz:.*(temp|actuator).* +define wzlog FileLog /var/log/fhem/wz-%Y-%U.log wz:.*(temp|actuator).* # Make it accessible from 01_FHEMWEB.pm (webpgm2) # Note: for FHEMWEB large logfiles (one per year) are recommended to be able to @@ -35,17 +36,6 @@ attr kslog logtype ks300_1:Temp/Hum,ks300_2:Rain/Wind # paranthesis, and your shell will probably bark. define tmplog notifyon wz:temp.* "/usr/local/bin/log.sh @ "@ %"" -############################## -# If using the frontends pgm2 or pgm3, then you can put the devices -# into separate rooms, see the corresponding README: -attr wz room InDoor -attr wzlog room InDoor -attr ks1 room OutDoor -attr kslog room OutDoor -attr avglog room OutDoor - -quit - ######################### And here is /usr/local/bin/log.sh, don't forget chmod +x diff --git a/fhem/examples/05_rm100 b/fhem/examples/05_rm100 index 8112e1f22..2d2ccc7d9 100644 --- a/fhem/examples/05_rm100 +++ b/fhem/examples/05_rm100 @@ -8,11 +8,11 @@ # if there is no definition for it. Check the commandref.html define, Type HMS # section for details -attr global logfile /var/log/fhem/fhem-%Y-%m.log -attr global statefile /var/log/fhem/fhem.save # where to save the state of the devices +attr global logfile /tmp/fhem-%Y-%m.log +attr global statefile /tmp/fhem.save # where to save the state of the devices attr global verbose 3 # "normal" verbosity (min 1, max 5) attr global port 7072 # our TCP/IP port (localhost only) -attr global modpath /usr/local/libusr/local/lib # where our FHEM directory is +attr global modpath . # where our FHEM directory is define FHZ FHZ /dev/tts/USB0 # the serial port of an FHZ 1000 PC