jdiazbb / rfxcmd

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

debug and verbose output not working #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn co -r 536 http://rfxcmd.googlecode.com/svn/trunk
2. ./rfxcmd.py --verbose --debug -l

Nothing is printed to the stdout or into the rfxcmd.log.

I'm trying to debug why my rain sensor data is not stored into the MySQL 
database. Wind sensor as well as temp/humi are working perfectly.

Python 2.6.6. 

Original issue reported on code.google.com by janne.ka...@gmail.com on 4 Jun 2013 at 9:53

GoogleCodeExporter commented 8 years ago
Ok. It seems that if you enable MySQL verbose output is disabled. However, 
debug log is still not working.

Original comment by janne.ka...@gmail.com on 4 Jun 2013 at 10:00

GoogleCodeExporter commented 8 years ago
I have fixed the rain sensor regarding database export, as well as the verbose 
printout if mysql/sqlite is active (updated in the trunk). The debug printouts 
I still need to check.

Original comment by sebastia...@gmail.com on 5 Jun 2013 at 3:09

GoogleCodeExporter commented 8 years ago
Latest revision still had a problem (missing unixtime_utc) with the 
insert_mysql in rain sensors. See the patch below.

Index: rfxcmd.py
===================================================================
--- rfxcmd.py   (revision 539)
+++ rfxcmd.py   (working copy)
@@ -2032,11 +2032,11 @@

                # MYSQL
                if config.mysql_active:
-                       insert_mysql(timestamp, packettype, subtype, seqnbr, 
battery, signal, sensor_id, 0, 0, 0, 0, 0, 0, float(rainrate), 
float(raintotal), 0, 0, 0, 0)
+                       insert_mysql(timestamp, unixtime_utc, packettype, 
subtype, seqnbr, battery, signal, sensor_id, 0, 0, 0, 0, 0, 0, float(rainrate), 
float(raintotal), 0, 0, 0, 0)

                # SQLITE
                if config.sqlite_active:
-                       insert_sqlite(timestamp, packettype, subtype, seqnbr, 
battery, signal, sensor_id, 0, 0, 0, 0, 0, 0, float(rainrate), 
float(raintotal), 0, 0, 0, 0)
+                       insert_sqlite(timestamp, unixtime_utc, packettype, 
subtype, seqnbr, battery, signal, sensor_id, 0, 0, 0, 0, 0, 0, float(rainrate), 
float(raintotal), 0, 0, 0, 0)

                logger.debug("Decode packetType 0x" + str(packettype) + " - Done")

Original comment by janne.ka...@gmail.com on 5 Jun 2013 at 7:54

GoogleCodeExporter commented 8 years ago
Thanks, I forgot that one. I will fix it asap.

Original comment by sebastia...@gmail.com on 6 Jun 2013 at 4:56

GoogleCodeExporter commented 8 years ago
The verbose and debug output is now fixed, and updated to the SVN

Original comment by sebastia...@gmail.com on 17 Jun 2013 at 4:52