Hello,
On version 0.1j-beta
$ rfxcmd.py --device=/dev/rfxcom --config=config.xml --mysql
Traceback (most recent call last):
File "/home/p2p/RFXCom/rfxcmd.py", line 1692, in <module>
rawcmd = read_rfx()
File "/home/p2p/RFXCom/rfxcmd.py", line 1130, in read_rfx
decodePacket( message )
File "/home/p2p/RFXCom/rfxcmd.py", line 874, in decodePacket
db = MySQLdb.connect(mysql_server, mysql_username, mysql_password, mysql_database)
NameError: global name 'mysql_server' is not defined
This error appears when a packet type 0x54 is received and MySQL option is
enabled.
It seems that variables names have not been changed to comply with the new
config file.
Attached patch fixes the issue.
Original issue reported on code.google.com by jbbod...@gmail.com on 13 Oct 2012 at 12:13
Original issue reported on code.google.com by
jbbod...@gmail.com
on 13 Oct 2012 at 12:13Attachments: