From 22ff15d55b020d4e2cceff7638d0de7183fb2887 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 3 Sep 2011 11:30:27 +0000 Subject: [PATCH] FB7270 added git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@991 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 1 + contrib/FB7270/fhemcmd.sh | 14 ++++++++ contrib/FB7270/makeimage | 44 +++++++++++++++++++++++++ contrib/FB7270/startfhem | 21 ++++++++++++ docs/fhem.html | 28 ++++++++-------- docs/fritzbox.html | 63 ++++++++++++++++++++++++++++++++--- docs/fritzbox7390.html | 69 --------------------------------------- 7 files changed, 152 insertions(+), 88 deletions(-) create mode 100644 contrib/FB7270/fhemcmd.sh create mode 100755 contrib/FB7270/makeimage create mode 100755 contrib/FB7270/startfhem delete mode 100644 docs/fritzbox7390.html diff --git a/CHANGED b/CHANGED index 055aded7b..aa3ec1353 100644 --- a/CHANGED +++ b/CHANGED @@ -8,6 +8,7 @@ - bugfix: FS20 on-for-timer error reporting only in the logfile - bugfix: FHEM2FHEM should work with CUL again, after syntax change - feature: CUL directio mode (No Device::SerialPort needed) + - feature: FritzBox 7270 ZIP file - 2011-07-08 (5.1) - feature: smallscreen optimizations for iPhone diff --git a/contrib/FB7270/fhemcmd.sh b/contrib/FB7270/fhemcmd.sh new file mode 100644 index 000000000..cd45db2d3 --- /dev/null +++ b/contrib/FB7270/fhemcmd.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +## FritzBox 7390 +## Beispiel fuer das Senden von FHEM Kommandos ueber den Telefoncode +## #95*x* wobei x hier 1 bzw 2 entspricht. + +case $1 in +1) echo "set Steckdose on" | /sbin/socat - TCP:127.0.0.1:7072 + ;; +2) echo "set Steckdose off" | /sbin/socat - TCP:127.0.0.1:7072 + ;; +esac + + diff --git a/contrib/FB7270/makeimage b/contrib/FB7270/makeimage new file mode 100755 index 000000000..7120a8118 --- /dev/null +++ b/contrib/FB7270/makeimage @@ -0,0 +1,44 @@ +#!/bin/sh + +fw=$1 +if test ! -f ../../$fw.tar.gz; then + echo "usage: makeimage " + echo "../../.tar.gz must exist" + exit 1 +fi + +rm -rf var +echo Extracting the fritzbox template +unzip -qo ../../priv/fritzbox7270_template.zip + +cp fhemcmd.sh fhem/FHEM +cp startfhem fhem + +echo Extracting $fw +rm -rf $fw +tar zxf ../../$fw.tar.gz +cd $fw +cp fhem.pl ../fhem +cp FHEM/*\ + webfrontend/pgm2/*\ + docs/*.html\ + docs/fhem.png\ + docs/*.jpg\ + ../fhem/FHEM + +cd examples +for i in *; do + cp -r $i ../../fhem/FHEM/example.$i +done +cd ../.. +rm -rf $fw + + +echo Packing again +cd fhem +cp FHEM/example.sample_pgm2 fhem.cfg +perl -pi -e 's,/tmp,./log,g' fhem.cfg + +cd .. +zip -qr $fw-fb7270.zip fhem +rm -rf fhem diff --git a/contrib/FB7270/startfhem b/contrib/FB7270/startfhem new file mode 100755 index 000000000..96e8dfe17 --- /dev/null +++ b/contrib/FB7270/startfhem @@ -0,0 +1,21 @@ +#!/bin/sh + +root=`df | sed -n -e '/ftp\//s/.*ftp\///p'` +home=/var/InternerSpeicher/$root/fhem + +cd $home + +trap "" SIGHUP +modprobe kernel/cdc_acm +modprobe ftdi_sio +sleep 2 + +ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd + +PATH=$home:$PATH +export PATH + +export LD_LIBRARY_PATH=$home/lib +export PERL5LIB=$home/lib/perl5/5.10 + +perl fhem.pl fhem.cfg diff --git a/docs/fhem.html b/docs/fhem.html index 0af417d23..5b948dff6 100644 --- a/docs/fhem.html +++ b/docs/fhem.html @@ -71,8 +71,9 @@
    Current Version: (as of =DATE=): fhem-=VERS=.tar.gz, - fhem-=VERS=.deb or - fhem-=VERS=-fb7390.image + fhem-=VERS=.deb, + fhem-=VERS=-fb7390.image, + fhem-=VERS=-fb7270.zip
    See the CHANGED file for current changes.
    @@ -159,9 +160,11 @@ La Crosse TX2/TX3.
  • Via an attached FHZ1000 or FHZ1300 access to the following protocols: - FS20 (all devices), FHT80b, HMS, KS300. Note: The FHZ1350 WLAN - works with fhem if you replace the standard (avisario) WLAN module with - one that won't encrypt the data.
  • + FS20 (all devices), FHT80b, HMS, KS300. Note: For the WLAN + version of the FHZ1300 see this + link. +
  • reading and sending X10 events via the CM11 module (with access @@ -221,7 +224,8 @@ protocol.
    -
  • Via a TCM120 (e.g. the BSC BOR) access to the EnOcean protocol. +
  • Via a TCM120 (e.g. the BSC BOR) or a TCM310 (e.g. busware EUL) access + to the EnOcean protocol.
    @@ -296,10 +300,7 @@ Device/OS Specific installation guides:
      -
    • Instructions for the Fritz!Box: - 7390, 7170@fhemwiki - and 7170/7270
    • +
    • Instructions for the Fritz!Box
    • Instructions for Nas/Routers (NSLU2): http://www.martin-haas.de/fhz/nslu2fhz
    • @@ -345,11 +346,10 @@

      Installation

        -

        Fritz!Box 7390

        +

        Fritz!Box

          -
        • Install a current Lab version first, then this image, and - connect to http://localhost:8083/fhem. Follow the See the detailed documentation here, and + after installation connect to http://localhost:8083/fhem. Follow the HOWTO for adding devices.
        diff --git a/docs/fritzbox.html b/docs/fritzbox.html index 3a6ea6c49..2ef551574 100644 --- a/docs/fritzbox.html +++ b/docs/fritzbox.html @@ -27,11 +27,64 @@