summaryrefslogtreecommitdiff
path: root/bin/ebus_dump.py
blob: bfae56ec3c11c1aebf3240b5e356f1d63aecd1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()