jdiazbb / rfxcmd

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

NameError: global name 'data8' is not defined (using sqlite) #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running rfxcmd.py with -s option
2. On first incomming message the error occurs.
3.

What is the expected output? What do you see instead?
Something written in the sqlite.db

tord@yeti:~/rfxcom2$ sudo python rfxcmd.py -d /dev/ttyUSB1 -a listen -s
Traceback (most recent call last):
  File "rfxcmd.py", line 2428, in <module>
    rawcmd = read_rfx()
  File "rfxcmd.py", line 1643, in read_rfx
    decodePacket( message )
  File "rfxcmd.py", line 1023, in decodePacket
    """ % (timestamp, packettype, subtype, seqnbr, battery, signal, id1, id2, float(data8))
NameError: global name 'data8' is not defined

What version of the product are you using? On what operating system?
v0.2 (debian 7)

Please provide any additional information below.
I've created the sqlite table as described

Original issue reported on code.google.com by tord.hol...@gmail.com on 29 Nov 2012 at 7:36

GoogleCodeExporter commented 8 years ago
Thanks. I will fix this asap.

Original comment by sebastia...@gmail.com on 29 Nov 2012 at 7:52

GoogleCodeExporter commented 8 years ago
Fixed in version 0.21

Original comment by sebastia...@gmail.com on 1 Dec 2012 at 1:01