summaryrefslogtreecommitdiff
path: root/bin/ebus_dump.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebus_dump.py')
-rw-r--r--bin/ebus_dump.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/ebus_dump.py b/bin/ebus_dump.py
new file mode 100644
index 0000000..bfae56e
--- /dev/null
+++ b/bin/ebus_dump.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+# -*- coding:utf8 -*-
+import asyncore
+from ebus import EbusReader
+
+class MyEbusReader(EbusReader):
+ def __init__(self,*args,**kwargs):
+ EbusReader.__init__(self,*args,**kwargs)
+ self.debug=True
+
+ def handle_ebus(self,ebus_packet):
+ if ebus_packet.values() != dict():
+ print ebus_packet
+
+MyEbusReader()
+asyncore.loop()