FRITZBOX - Fritz!Box und Fritz!Fon sprechen - Jetzt auch ohne Telnet

Begonnen von tupol, 28 November 2014, 23:46:54

Vorheriges Thema - Nächstes Thema

Ralf W.

Hallo Tupol,

gerade per Update neue Version erhalten.

Den Radioeintrag FHEM habe ich vorher gelöscht.

set FB_6360 ring 610 say:Es regnet
arbeitet jetzt perfekt. Danke!

set FB_6360 startRadio 610 1
führt zu folgenden Meldungen im Log
2015.06.27 08:57:28 3: FRITZBOX: set FB_6360 startRadio 610 1                                                                                                                 
Can't call method "FRITZBOX_StartRadio_Web" on unblessed reference at ./FHEM/72_FRITZBOX.pm line 462.

und zum Neustart von FHEM.

List:
Internals:
   INTERVAL   300
   NAME       FB_6360
   NR         374
   REMOTE     1
   SECPORT    49443
   STATE      WLAN: on gWLAN: off
   TYPE       FRITZBOX
   Readings:
     2015-06-27 08:57:40   alarm1          Wecker 1
     2015-06-27 08:57:40   alarm1_state    off
     2015-06-27 08:57:40   alarm1_target   DECT 611
     2015-06-27 08:57:40   alarm1_time     00:00
     2015-06-27 08:57:40   alarm1_wdays    daily
     2015-06-27 08:57:40   alarm2          Wecker 2
     2015-06-27 08:57:40   alarm2_state    off
     2015-06-27 08:57:40   alarm2_target   FON 1
     2015-06-27 08:57:40   alarm2_time     00:00
     2015-06-27 08:57:40   alarm2_wdays    daily
     2015-06-27 08:57:40   alarm3          Wecker 3
     2015-06-27 08:57:40   alarm3_state    off
     2015-06-27 08:57:40   alarm3_target   FON 1
     2015-06-27 08:57:40   alarm3_time     00:00
     2015-06-27 08:57:40   alarm3_wdays    daily
     2015-06-27 08:57:40   box_dect        on
     2015-06-27 08:57:40   box_fwVersion   85.06.04
     2015-06-27 08:57:40   box_guestWlan   off
     2015-06-27 08:57:40   box_guestWlanRemain 0
     2015-06-27 08:57:40   box_model       FRITZ!Box 6360 Cable (um) [unity]
     2015-06-27 08:57:40   box_moh         3
     2015-06-27 08:57:40   box_powerRate   41
     2015-06-27 08:57:40   box_rateDown    60.328
     2015-06-27 08:57:40   box_rateUp      3.025
     2015-06-27 08:57:40   box_tr069       on
     2015-06-27 08:57:40   box_wlan_2.4GHz on
     2015-06-27 08:57:40   dect1           Dachboden
     2015-06-27 08:57:40   dect1_custRingTone file:///var/media/ftp/JetFlash-TS2GJFT3-01/FRITZ/fonring/1383153629.g722
     2015-06-27 08:57:40   dect1_custRingToneName tatort-128bit-32000
     2015-06-27 08:57:40   dect1_fwVersion 3.10
     2015-06-27 08:57:40   dect1_imagePath /var/media/ftp/JetFlash-TS2GJFT3-01/FRITZ/fonpix/1435386847-1.jpg
     2015-06-27 08:57:40   dect1_intRingTone Fatboy
     2015-06-27 08:57:40   dect1_intern    610
     2015-06-27 08:57:40   dect1_manufacturer AVM
     2015-06-27 08:57:40   dect1_model     MT-F
     2015-06-27 08:57:40   dect1_radio     0 (unknown)
     2015-06-27 08:57:40   dect2           Ulli seins
     2015-06-27 08:57:40   dect2_custRingTone file:///var/media/ftp/JetFlash-TS2GJFT3-01/FRITZ/fonring/1383152735.g722
     2015-06-27 08:57:40   dect2_custRingToneName Harpo-Moviestar-128bit-32000
     2015-06-27 08:57:40   dect2_fwVersion 3.10
     2015-06-27 08:57:40   dect2_intRingTone Fatboy
     2015-06-27 08:57:40   dect2_intern    611
     2015-06-27 08:57:40   dect2_manufacturer AVM
     2015-06-27 08:57:40   dect2_model     MT-F
     2015-06-27 08:57:40   dect2_radio     0 (unknown)
     2015-06-27 08:57:40   dect3           Keller
     2015-06-27 08:57:40   dect3_fwVersion 0.00
     2015-06-27 08:57:40   dect3_intRingTone HandsetDefault
     2015-06-27 08:57:40   dect3_intern    612
     2015-06-27 08:57:40   dect3_manufacturer Siemens
     2015-06-27 08:57:40   dect3_model     0xf9
     2015-06-27 08:57:40   dect3_radio     0 (unknown)
     2015-06-27 08:57:40   fon1            Türsprechstelle
     2015-06-27 08:57:40   fon1_intern     1
     2015-06-27 08:57:40   fon2            Faxgerät Epson
     2015-06-27 08:57:40   fon2_intern     2
     2015-06-27 08:57:40   fon2_out        SIP1#
     2015-06-27 08:57:40   lastReadout     242 values captured in 3.39 s
     2015-06-27 08:57:40   radio00         Radio Vest
     2015-06-27 08:57:40   radio01         TechnoBase.FM
     2015-06-27 08:57:40   radio02         Kanalstadt Radio Datteln
     2015-06-27 08:57:40   radio03         EnergyDance
     2015-06-27 08:57:40   radio04         Inselradio Mallorca
     2015-06-27 08:57:40   radio05         Ballermann Hits
     2015-06-27 08:57:40   radio06         DiscoFox-Hithaus
     2015-06-27 08:57:40   radio07         Superclub Radio Essen
     2015-06-27 08:57:40   radio08         WDR2 Ruhrgebiet
     2015-06-27 08:57:40   radio09         Eins Live Diggi
     2015-06-27 08:57:40   radio10         Radio Fritz
     2015-06-27 08:57:40   radio11         Sputnik Livestream
     2015-06-27 08:57:40   radio12         SWR 3
     2015-06-27 08:57:40   radio13         Deutschlandfunk
     2015-06-27 08:57:40   radio14         DRadio Kultur
     2015-06-27 08:57:40   radio15         radioeins
     2015-06-27 08:57:40   radio16         Swissgroove
     2015-06-27 08:57:40   radio39         FHEM
     2015-06-27 08:57:40   state           WLAN: on gWLAN: off
     2015-06-27 08:57:40   tam1            Anrufbeantworter XXXXXX
     2015-06-27 08:57:40   tam1_newMsg     0
     2015-06-27 08:57:40   tam1_oldMsg     20
     2015-06-27 08:57:40   tam1_state      on
     2015-06-27 08:57:40   user01          (guest)
     2015-06-27 08:57:40   user01_thisMonthTime 0:00
     2015-06-27 08:57:40   user01_todaySeconds 0
     2015-06-27 08:57:40   user01_todayTime 0:00
     2015-06-27 08:57:40   user01_type     Guest
   Fhem:
     LOCAL      0
     is_double_wlan
     lastHour   398718
     modulVersion $Date: 2015-06-26 22:57:51 +0200 (Fri, 26 Jun 2015) $
     radioCount 40
     sid        28df38225c7ef007
     sidTime    1435388258.26142
     610:
       brand      AVM
       id         1
       model      MT-F
       userId     1
     611:
       brand      AVM
       id         2
       model      MT-F
       userId     2
     612:
       brand      Siemens
       id         3
       model      0xf9
       userId     3
     Landevice:
       192.168.1.101 dg-firetv
       ...
       192.168.1.250 drucker

     Radio:
       0          Radio Vest
       1          TechnoBase.FM
       10         Radio Fritz
       11         Sputnik Livestream
       12         SWR 3
       13         Deutschlandfunk
       14         DRadio Kultur
       15         radioeins
       16         Swissgroove
       17
       18
       19
       2          Kanalstadt Radio Datteln
       20
       21
       22
       23
       24
       25
       26
       27
       28
       29
       3          EnergyDance
       30
       31
       32
       33
       34
       35
       36
       37
       38
       39         FHEM
       4          Inselradio Mallorca
       5          Ballermann Hits
       6          DiscoFox-Hithaus
       7          Superclub Radio Essen
       8          WDR2 Ruhrgebiet
       9          Eins Live Diggi
   Helper:
     TimerCmd   FB_6360.Cmd
     TimerReadout FB_6360.Readout
Attributes:
   allowTR064Command 1
   event-on-change-reading .*
   ringWithIntern 1
   room       Fritz!Box
   verbose    5


MfG

Proxmox Nipogi AM16, FHEM:RaspberryMatic:DE ConBee II, diverse Sensoren und Aktoren.

Elektrolurch

Hallo Tupol,

zu meinem Beitrag #660:
Ich habe aber ein json installiert, unter:
lib/perl5...
Da gibt es einen Ordner
JSON
mit Inhalt:
backportPP
und auf der gleichen Ebene wie JSON gibt es noch: JSON.pm

Das wird auch von einem anderen Modul benutzt und gefunden (netachmo).


Hier das log:
2015.06.27 09:05:34 0: Featurelevel: 5.6
2015.06.27 09:05:34 0: Server started with 311 defined entities (version $Id: fhem.pl 8810 2015-06-23 18:40:53Z rudolfkoenig $, os linux, user root, pid 15214)
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 fhem->lastHour: 398719
2015.06.27 09:05:35 4: FRITZBOX fritzbox: Readout_Run_Web.1136 Start update of slow changing device readings.
2015.06.27 09:05:35 2: FRITZBOX fritzbox: Web_OpenCon.3740 Error: Perl modul JSON::XS is missing on this system. Please install before using this modul.
2015.06.27 09:05:35 2: FRITZBOX fritzbox: Readout_Run_Web.1172 Error: Didn't get a session ID
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 fhem->sid:
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 fhem->sidTime: 1435388735
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 fhem->radioCount: 0
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_wlan_2.4GHz:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_wlan_5GHz:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_guestWlan:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_guestWlanRemain:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_dect:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_moh:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_powerRate:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 fhem->is_double_wlan:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_fwVersion:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_fwUpdate:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_tr069:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 .box_TodayBytesReceivedHigh:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 .box_TodayBytesReceivedLow:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 .box_TodayBytesSentHigh:
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1544.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1637.
2015.06.27 09:05:35 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1638.
2015.06.27 09:05:35 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 .box_TodayBytesSentLow:
2015.06.27 09:05:41 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_model: FRITZ!Box Fon WLAN 7390
2015.06.27 09:05:42 5: FRITZBOX fritzbox: Readout_Add_Reading.1638 box_oem: avm
2015.06.27 09:05:42 4: FRITZBOX fritzbox: Readout_Run_Web.1361 Captured 23 values
2015.06.27 09:05:42 5: FRITZBOX fritzbox: Readout_Run_Web.1362 Handover (409): fhem->lastHour|398719|fhem->sid||fhem->sidTime|1435388735|fhem->radioCount|0|box_wlan_2.4GHz||box_wlan_5GHz||box_guestWlan||box_guestWlanRemain||box_dect||box_moh||box_powerRate||fhem->is_double_wlan||box_fwVersion||box_fwUpdate||box_tr069||.box_TodayBytesReceivedHigh||.box_TodayBytesReceivedLow||.box_TodayBytesSentHigh||.box_TodayBytesSentLow||box_model|FRITZ!Box Fon WLAN 7390|box_oem|avm|readoutTime|7.00
2015.06.27 09:05:43 4: FRITZBOX fritzbox: Readout_Done.1380 Back at main process
2015.06.27 09:05:43 4: FRITZBOX fritzbox: Readout_Process.1402 Processing 22 readouts.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading .box_TodayBytesReceivedHigh.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_guestWlanRemain.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_wlan_5GHz.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_dect.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1447 SET box_model = 'FRITZ!Box Fon WLAN 7390 [avm]'
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading .box_TodayBytesReceivedLow.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_wlan_2.4GHz.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_fwVersion.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_tr069.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_guestWlan.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading .box_TodayBytesSentHigh.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_moh.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading box_powerRate.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1454 Ignore reading .box_TodayBytesSentLow.
2015.06.27 09:05:43 5: FRITZBOX fritzbox: Readout_Process.1476 SET state = 'WLAN: off gWLAN: '
2015.06.27 09:05:43 4: FRITZBOX fritzbox: Readout_Process.1481 22 values captured in 7.00 s

Gruß

Elektrolurch
configDB und Windows befreite Zone!

tupol

Zitat von: Elektrolurch am 27 Juni 2015, 09:20:07
Hallo Tupol,

zu meinem Beitrag #660:
Ich habe aber ein json installiert, unter:
lib/perl5...
Da gibt es einen Ordner
JSON
mit Inhalt:
backportPP
und auf der gleichen Ebene wie JSON gibt es noch: JSON.pm

Das wird auch von einem anderen Modul benutzt und gefunden (netachmo).

Finden muss perl :(.
Ist JSON das selbe wie JSON::XS?

Ich habe eine neue Version hochgeladen. Die berücksichtigt jetzt wieder den lokalen Modus.

Elektrolurch

Hallo Tupol,

Zitat:
Ist JSON das selbe wie JSON::XS?

Das kann ich nicht sagen. Ich habe hier im Forum mir diverse Beiträge zu json und Fritzbox angesehen.
Da wird die json von Hand von http://cpansearch.perl.org/src/MAKAMAKA/JSON-2.53
heruntergeladen und auf die FB kopiert.
Habe mal die neueste Version 2.90 von 2013 nun verwendet, aber die von Dir verwendete json - Bibliothek ist nicht mit der auf der FB identisch, denn das Modul fehlt immer noch.
JSON::XS
Ich möchte ja gerade von der telnet - Version auf der FB weg, da offensichtlich ich an die Speichergrenze komme und ich immer häufiger beim Lesen der readings von 72_fritzbox über gtelnet die Meldung: "cannot allocate memory - canot fork
bekomme.

Elektrolurch
configDB und Windows befreite Zone!

justme1968

JSON ist das generische frontend modul. dazu gibt es zwei backends. JSON::XS und JSON::PP.

XS ist das schnellere mit nativem code und nicht für alle plattformen verfügbar, PP ist eine implementierung nur in perl und sollte überall laufen. wenn man nur use JSON verwenden wird im Hintergrund automatisch das passende backend verwenden.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

dk3572

Hallo,

ich weiß nicht genau ob ich mit meinem Problem hier richtig bin. Falls nicht, bitte verschieben und sorry.

Mein FritzFon will nicht mehr sprechen.



2015.06.27 11:56:24.105 0: Server shutdown
2015.06.27 11:56:29.498 1: Including fhem.cfg
2015.06.27 11:56:32.874 1: HMLAN_Parse: HMLAN1 new condition disconnected
2015.06.27 11:56:32.926 1: HMLAN_Parse: HMLAN1 new condition init
Prototype mismatch: sub main::from_json ($) vs ($@) at ./FHEM/70_Pushbullet.pm line 31
Prototype mismatch: sub main::to_json ($) vs ($@) at ./FHEM/70_Pushbullet.pm line 31
2015.06.27 11:56:48.358 1: Including ./log/fhem.save
2015.06.27 11:56:51.604 1: usb create starting
2015.06.27 11:56:59.047 1: usb create end
2015.06.27 11:56:59.064 0: Featurelevel: 5.6
2015.06.27 11:56:59.065 0: Server started with 112 defined entities (version $Id: fhem.pl 8810 2015-06-23 18:40:53Z rudolfkoenig $, os linux, user fhem, pid 5504)
2015.06.27 11:56:59.519 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1541.
2015.06.27 11:56:59.521 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1634.
2015.06.27 11:56:59.522 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1635.
2015.06.27 11:56:59.669 1: HMLAN_Parse: HMLAN1 new condition ok
2015.06.27 11:58:00.344 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/72_FRITZBOX.pm line 2611.
2015.06.27 11:58:05.395 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1476.

Kann mir hierbei jemand helfen? Danke im Voraus.
Gruß Dieter

Elektrolurch

Hallo Andre,

Zitat:
JSON ist das generische frontend modul. dazu gibt es zwei backends. JSON::XS und JSON::PP.

XS ist das schnellere mit nativem code und nicht für alle plattformen verfügbar, PP ist eine implementierung nur in perl und sollte überall laufen. wenn man nur use JSON verwenden wird im Hintergrund automatisch das passende backend verwenden.

Heißt das, dass Tupol das im Modul ändern müsste?
Das bei cpan heisst aber auch nur einfach "json-2.90 als aktuelleste Version.

So ganz klar ist mir nicht, wie das Problem gefixed werden kann und warum nicht alle Nutzer des Moduls auf einer Fritzbox Probleme damit haben.
Was ist jetzt falsch?

Elektrolurch

configDB und Windows befreite Zone!

tupol

Ich habe mal Zeile 52
eval "use JSON::XS;1" or $missingModulWeb .= "JSON::XS ";
auf JSON umgestellt.

Jetzt erhalte ich den Log-Eintrag
2015.06.27 21:00:50 1: PERL WARNING: Prototype mismatch: sub main::from_json ($@) vs ($) at /usr/share/perl/5.14/Exporter.pm line 67.
2015.06.27 21:00:50 1: PERL WARNING: Prototype mismatch: sub main::to_json ($@) vs ($) at /usr/share/perl/5.14/Exporter.pm line 67

das Auslesen selbst funktioniert aber.

@Elektolurch: Teste bitte einfach mal, wie das bei Dir läuft.

Bzgl. der restlichen Fehlermeldungen. Bitte ein Update machen. Wenn der Fehler noch auftritt, brauche ich ein log-Auszug bei Modul verbose 5 und ein list <device>.

tupol

Elektrolurch

Ok, Tupol. Ich war auch fleissig und habe die PP-Variante von json noch in das perl-Verzeichnis mit hinein kopiert. Andre meinte ja, dass json automatisch ermittlen würde, ob native oder perl-sourcde (pp) installiert wäre.
Werde das morgen mit dem update wieder testen und hier berichten.

Elektrolurch
configDB und Windows befreite Zone!

duke-f

Ich schließe mich Elektrolurch an: Bei mir kommen die gleichen Fehlermeldungen seit dem gestrigen update. Meine Fritzbox ist eine 7390 mit neuester FW.
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

Elektrolurch

Hallo,

könnte es sein, dass der Prozess aus irgendeinem Grund hängt und das nach dem "kill" - Befehl das fork zu schnell kommt?
Hier wird einmal um 1.00 per at das WLan ausgeschaltet.

2015.06.28 01:00:00 1: FRITZBOX fritzbox: Cmd_Start.1236 Old command still running. Killing old command: wlan on
2015.06.28 01:00:00 1: Cannot fork: Cannot allocate memory
2015.06.28 01:00:00 1: Cannot fork: Cannot allocate memory
2015.06.28 01:00:01 1: PERL WARNING: Use of uninitialized value $i in hash element at fhem.pl line 2658.

Vielleicht sollte da ein sleep rein, bevor das fork kommt. Und ev. wäre es auch sinnvoll, abzufragen, ob das  Lesen wirklich funktioniert hat. Danach kommen nämlich seitenweise perl-Warnungung mit undefinierten Werten.

Und hier das gleiche für das Auslesen / Aktualisieren der internen Werte:
2015.06.28 02:29:56 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 623.
2015.06.28 02:29:56 1: FRITZBOX fritzbox: Readout_Start.623 Old readout process still running. Killing old process
2015.06.28 02:29:56 1: Cannot fork: Cannot allocate memory
2015.06.28 02:29:56 1: Cannot fork: Cannot allocate memory
2015.06.28 02:29:56 1: PERL WARNING: Use of uninitialized value $i in hash element at fhem.pl line 2658.
2015.06.28 02:29:56 1: PERL WARNING: Use of uninitialized value $i in hash element at fhem.pl line 2659.


Mit der heutigen Version sind zwar die Warnungen für das json - Modul weg, aber:
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1500.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1593.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1594.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1500.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1593.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1594.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $readout in string ne at ./FHEM/72_FRITZBOX.pm line 1500.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1593.
2015.06.28 09:33:22 1: PERL WARNING: Use of uninitialized value $rValue in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 1594.


Das Lesen scheint mit der heutigen Version nicht zu funktionieren, da die readings alle das Datum von gestern haben.
Außerdem ist das WLan ein und nicht aus, wie der state behauptet.


Internals:
   CFGFN      ./FHEM/00_utils_Telefon.cfg
   INTERVAL   18010
   NAME       fritzbox
   NR         616
   REMOTE     1
   STATE      WLAN: aus gWLAN:
   TYPE       FRITZBOX
   Readings:
     2015-06-27 16:29:53   alarm1          Wecker 1
     2015-06-27 16:29:53   alarm1_state    off
     2015-06-27 16:29:53   alarm1_target   FON 1
     2015-06-27 16:29:53   alarm1_time     00:00
     2015-06-27 16:29:53   alarm1_wdays    daily
     2015-06-27 16:29:53   alarm2          Wecker 2
     2015-06-27 16:29:53   alarm2_state    off
     2015-06-27 16:29:53   alarm2_target   FON 1
     2015-06-27 16:29:53   alarm2_time     00:00
     2015-06-27 16:29:53   alarm2_wdays    daily
     2015-06-27 16:29:53   alarm3          Wecker 3
     2015-06-27 16:29:53   alarm3_state    off
     2015-06-27 16:29:53   alarm3_target   FON 1
     2015-06-27 16:29:53   alarm3_time     00:00
     2015-06-27 16:29:53   alarm3_wdays    daily
     2015-06-27 16:29:53   box_dect        on
     2015-06-27 16:29:53   box_fwVersion   84.06.04 (old)
     2015-06-27 16:29:53   box_model       FRITZ!Box Fon WLAN 7390 [avm]
     2015-06-27 16:29:53   box_moh         customer
     2015-06-27 16:29:53   box_powerRate   52
     2015-06-27 16:29:53   box_tr069       on
     2015-06-27 16:29:53   dect1           Büro
     2015-06-27 16:29:53   dect1_alarmRingTone RingRing
     2015-06-27 16:29:53   dect1_fwVersion 3.10
     2015-06-27 16:29:53   dect1_intRingTone Pingpong
     2015-06-27 16:29:53   dect1_intern    610
     2015-06-27 16:29:53   dect1_manufacturer AVM
     2015-06-27 16:29:53   dect1_model     0x03
     2015-06-27 16:29:53   dect1_radio     21 (unknown)
...

Elektrolurch
configDB und Windows befreite Zone!

tupol

Ich brauche bitte ein log bei verbose 5.

Läuft es mit forceTelnetConnection?

melu

Hallo,

zZ. befinde ich mich noch in der Einarbeitungsphase, dabei bin ich auf dieses Modul gestoßen, gefällt mir echt gut. Nur Leider tut es nicht 100% das, was es wohl könnte.

Wenn ich mir über das Telefon einen Text ansagen lassen möchte passiert nichts. Die Log sagt das:

2015.06.28 20:48:34 3: FRITZBOX: set FritzBox ring 610 say:Hallo Welt, dies ist ein Test
2015.06.28 20:48:34 1: FRITZBOX FritzBox: Set_Cmd_Start.1615 Old command still running. Killing old command: ring 610 say:Hallo Welt, dies ist ein Test
2015.06.28 20:48:35 5: FRITZBOX FritzBox: Ring_Run_Web.2573 Internal number 610 (dect1) seems to be a Fritz!Fon.
2015.06.28 20:48:35 5: FRITZBOX FritzBox: Ring_Run_Web.2657 Created Text2Speech internet link: http://translate.google.com/translate_tts?ie=UTF-8&tl=de&q=Hallo%20Welt%2C%20dies%20ist%20ein%20Test
2015.06.28 20:48:35 4: FRITZBOX FritzBox: Ring_Run_Web.2687 Read current dect and fon port values from box
2015.06.28 20:48:35 5: FRITZBOX FritzBox: Web_Query.3827 Response: {
"dectUser" : [
{
"Id" : "0",
"Intern" : "",
"IntRingTone" : "0",
"RadioRingID" : "0"
},
{
"Id" : "1",
"Intern" : "610",
"IntRingTone" : "33",
"RadioRingID" : "39"
}
],
"fonPort" : [
{
"Name" : "FHEM",
"MSN" : "SIP0"
},
{
"Name" : "FHEM",
"MSN" : "SIP0"
},
{
"Name" : "",
"MSN" : ""
},
{
"Name" : "",
"MSN" : ""
}
]
}


2015.06.28 20:48:35 4: FRITZBOX FritzBox: Ring_Run_Web.2713 Change temporarily internal ring tone of dect1 to 33
2015.06.28 20:48:35 4: FRITZBOX FritzBox: Ring_Run_Web.2717 Change temporarily radio station of dect1 to 39 (FHEM)
2015.06.28 20:48:35 5: FRITZBOX FritzBox: Web_PostCmd.3785 Posting 4 parameters to 'http://192.168.188.1/cgi-bin/webcm'
2015.06.28 20:48:35 4: FRITZBOX FritzBox: Ring_Run_Web.2751 Ringing 610 for 5 seconds
2015.06.28 20:48:35 5: FRITZBOX FritzBox: readPassword.3890 Read FritzBox password from file
2015.06.28 20:48:35 4: FRITZBOX FritzBox: TR064_Cmd.3592 Perform TR064 call - service='X_VoIP:1', control='x_voip', action='X_AVM-DE_DialNumber', parameter1='NewX_AVM-DE_PhoneNumber' => '**610#'
401 Unauthorized at ./FHEM/72_FRITZBOX.pm line 3594

Guck ich in die 72_FRITZBOX.pm steht dort der Bezug zur SOAP::Lite...

Wenn ich z.B. das Webradio auf dem Telefon starten möchte, stürtz FHEM ab. Das letzte was geloggt wird ist:

2015.06.28 21:06:03 3: FRITZBOX: set FritzBox startRadio 610 1
Can't call method "FRITZBOX_StartRadio_Web" on unblessed reference at ./FHEM/72_FRITZBOX.pm line 462.


Emails versenden geht problemlos.

Zur Hardware:

FB 7390
FritzFon MTF
FHEM 5.6 läuft auf einem PI

Hab ich vlt einen generellen Schritt vergessen?
TelenetUser und Password sind gesetzt und die Box wird auch fleißig alle 300sec ausgelesen.

Bin für jede Hilfe dankbar!

Gruß, der Mel

RoBra81

Hallo,

ich habe gerade mal ein Update gemacht und auf meinem Cubietruck das Perl-Modul JSON::XS installiert. Dann habe ich mal ein "ring" mit "show" und "say" ausprobiert: das Telefon hat zunächst den Text vorgelesen und dann für die eingestellte Zeit (30 Sekunden) geklingelt und den Text angezeigt - soweit so gut. Anschließend ist FHEM jedoch komplett abgestürzt. Im Log fand ich folgende Meldung:

2015.06.28 21:29:38 2: FRITZBOX FritzBox: Readout_Run_Web.1180 Error: 500 read timeout
2015.06.28 21:29:48 1: Timeout for FRITZBOX_Ring_Run_Web reached, terminated process 13484
Undefined subroutine &main:: FRITZBOX_Set_Cmd_Aborted called at FHEM/Blocking.pm line 146.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/yowsup-master/yowsup/demos/cli/cli.py", line 150, in startInputThread
    cmd = self._queuedCmds.pop(0) if len(self._queuedCmds) else input(self.getPrompt()).strip()
EOFError: EOF when reading a line



Zu Beginn des Log's habe ich auch die bereits weiter oben angesprochenen Meldungen:

Prototype mismatch: sub main::to_json ($@) vs ($) at /usr/share/perl/5.14/Exporter.pm line 67.
at (eval 155) line 1
Prototype mismatch: sub main::from_json ($@) vs ($) at /usr/share/perl/5.14/Exporter.pm line 67.
at (eval 155) line 1
Prototype mismatch: sub main::from_json ($) vs ($@) at ./FHEM/70_XBMC.pm line 18
Prototype mismatch: sub main::to_json ($) vs ($@) at ./FHEM/70_XBMC.pm line 18


Woran kann der Absturz liegen?

Vielen Dank
Ronny

tupol

hallo melu

Die Bug mit dem "unblessed" habe ich gefunden. Morgen im update.

Ist unter Heimnetz->Netzwerk->Netzwereinstellungen; Zugriff für Anwendungen zulassen angeklickt?