2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 10:46:03 +00:00

Bugfixing

git-svn-id: https://svn.fhem.de/fhem/trunk@216 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2008-07-25 15:52:38 +00:00
parent 9ec069e883
commit 98c1a04525
3 changed files with 12 additions and 21 deletions

View File

@ -8,11 +8,12 @@
# After about 5-10 minutes, check if "list wz" returns something meaningful # After about 5-10 minutes, check if "list wz" returns something meaningful
# #
attr global logfile /var/log/fhem/fhem-%Y-%m.log attr global logfile /tmp/fhem-%Y-%m.log
attr global statefile /var/log/fhem/fhem.save # where to save the state of the devices attr global statefile /tmp/fhem.save # where to save the state of the devices
attr global verbose 3 # "normal" verbosity attr global verbose 3 # "normal" verbosity
attr global port 7072 # our TCP/IP port (localhost only) 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 FHZ FHZ /dev/tts/USB0 # the serial port of an FHZ 1000 PC
define wz FHT 3232 # type FHT, transmitter code 3232 (default value) define wz FHT 3232 # type FHT, transmitter code 3232 (default value)

View File

@ -4,11 +4,12 @@
# contrib/91_DbLog.pm # contrib/91_DbLog.pm
# #
attr global logfile /var/log/fhem/fhem-%Y-%m.log attr global logfile /tmp/fhem-%Y-%m.log
attr global statefile /var/log/fhem/fhem.save # where to save the state of the devices attr global statefile /tmp/fhem.save # where to save the state of the devices
attr global verbose 3 # "normal" verbosity attr global verbose 3 # "normal" verbosity
attr global port 7072 # our TCP/IP port (localhost only) 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 FHZ FHZ /dev/tts/USB0 # the serial port of an FHZ 1000 PC
define wz FHT 3232 # type FHT, transmitter code 3232 (default value) 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 # 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) # Make it accessible from 01_FHEMWEB.pm (webpgm2)
# Note: for FHEMWEB large logfiles (one per year) are recommended to be able to # 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. # paranthesis, and your shell will probably bark.
define tmplog notifyon wz:temp.* "/usr/local/bin/log.sh @ "@ %"" 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 And here is /usr/local/bin/log.sh, don't forget chmod +x

View File

@ -8,11 +8,11 @@
# if there is no definition for it. Check the commandref.html define, Type HMS # if there is no definition for it. Check the commandref.html define, Type HMS
# section for details # section for details
attr global logfile /var/log/fhem/fhem-%Y-%m.log attr global logfile /tmp/fhem-%Y-%m.log
attr global statefile /var/log/fhem/fhem.save # where to save the state of the devices 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 verbose 3 # "normal" verbosity (min 1, max 5)
attr global port 7072 # our TCP/IP port (localhost only) 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 FHZ FHZ /dev/tts/USB0 # the serial port of an FHZ 1000 PC