jdiazbb / rfxcmd

Automatically exported from code.google.com/p/rfxcmd
1 stars 0 forks source link

Error when trying to store to MySql #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
anders@domotics:~/rfxcmd/trunk$ ./rfxcmd.py -d /dev/ttyUSB2 -a listen -m -u 
rfxcmdusr -p rfxcmdpwd
Traceback (most recent call last):
  File "./rfxcmd.py", line 1099, in <module>
    decodePacket( message )
  File "./rfxcmd.py", line 654, in decodePacket
    (timestamp, packettype, subtype, seqnbr, id1, id2, temperature, direction, a                                 v, \
UnboundLocalError: local variable 'temperature' referenced before assignment

=======================================0

Listing to screen works OK.

======================================

anders@domotics:~/rfxcmd/trunk$ ./rfxcmd.py -d /dev/ttyUSB2 -a listen
RFXCMD version 0.1g
------------------------------------------------
Received                = 0D 01 00 00 02 53 31 00 0E 6F 01 00 00 00
Date/Time               = 2012-09-12 11:16:14
Packet Length           = 0D
Packettype              = Interface Message
Subtype                 = Interface response
Sequence nbr            = 00
Response on cmnd        = Get Status, return firmware versions and 
configuration of the interface.
Transceiver type        = 433.92MHz (Transceiver)
Firmware version        = 49
Display undecoded       = Off
Protocols:
Disabled                AE (433.92)
Disabled                Rubicson (433.92)
Disabled                FineOffset / Viking (433.92)
Disabled                RFU3
Disabled                RFU4
Disabled                RFU5
Disabled                RFU6
Disabled                Mertik (433.92)
Enabled                 AD (433.92)
Enabled                 Hideki/UPM (433.92)
Enabled                 La Crosse (433.92/868.30)
Disabled                FS20 (868.35)
Disabled                ProGuard (868.35 FSK)
Disabled                BlindsT0 (433.92)
Disabled                BlindsT1 (433.92)
Enabled                 X10 (310/433.92)
Enabled                 ARC (433.92)
Enabled                 AC (433.92)
Enabled                 HomeEasy EU (433.92)
Disabled                Meiantech (433.92)
Enabled                 Oregon Scientific (433.92)
Enabled                 ATI (433.92)
Disabled                Visonic (315/868.95)
------------------------------------------------
Received                = 08 50 01 00 02 01 00 A5 39
Date/Time               = 2012-09-12 11:16:46
Packet Length           = 08
Packettype              = Temperature sensors
Subtype                 = THR128/138, THC138 (TEMP1)
Seqnbr                  = 00
Id 1                    = 02
Id 2                    = 01
Temperature             = 16.5 C
Battery (0-9)           = 3
Signal level (0-15)     = 9

Original issue reported on code.google.com by cirr...@gmail.com on 12 Sep 2012 at 9:19

GoogleCodeExporter commented 8 years ago
Now it seems to work fine. I have tested it a couple of more times, but without 
seeing the same error again.

I didn't change anything. 

Original comment by cirr...@gmail.com on 14 Sep 2012 at 11:21

GoogleCodeExporter commented 8 years ago
This should be fixed in the upcoming version.

Original comment by sebastia...@gmail.com on 19 Sep 2012 at 6:56

GoogleCodeExporter commented 8 years ago

Original comment by sebastia...@gmail.com on 19 Sep 2012 at 6:59