summaryrefslogtreecommitdiff
path: root/bin/ebus_dump
blob: 41efa3306d3ebb2c1ea5cb2f5829c59f81005af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/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()