print(msg['from']+" says:")
			print(msg['content'])
>>>>>>> parent of ae3c471... Fixed lost prefix in msg-content
=======
			print(msg['from']+" says:")
			print(msg['content'])
>>>>>>> parent of ae3c471... Fixed lost prefix in msg-content
=======
			print(msg['from']+" says:")
			print(msg['content'])
>>>>>>> parent of ae3c471... Fixed lost prefix in msg-content
			print("at "+msg['time-sent'])
			print() 
		time.sleep(1)

m = messaging.messaging()
print("My public Key is:")
print(m.strPubKey)
print()
messageGetterThread = threading.Thread(target=messageGetter)
messageGetterThread.start()

while True:
	with open("targetPubKey.pem", "rb") as f:
		recipientPubKey = f.read()

	print(m.iplookups(recipientPubKey))
	messageSender()


Beispiel #2
0
 def __init__(self):
     self.__init_table__()
     self.mes = messaging()
Beispiel #3
0
import time

xs1 = myezcontrol(constants.xs1_.IP)
hue = hue_lights()
sn = sonos()
tv = TV()
sat = satelliten()
interna = internal()
xs1_devs = xs1.list_devices()
hue_devs = hue.list_devices()
sns_devs = sn.list_devices()
tvs_devs = tv.list_devices()
sat_devs = sat.list_devices()
cmd_devs = xs1_devs + hue_devs + sns_devs + tvs_devs + sat_devs
aes = alarm_event()
mes = messaging()


def main():
    scenes = szenen()
    constants.redundancy_.master = True
    #print scenes.list_commands()
    print scenes.execute("SideBolAn")
#    time.sleep(10)
#    print scenes.execute("WohnziAnw")
#    
    
class szenen:    
    
    def __init__ (self):
        self.sz_t = szenen_timer(def_to_run = self.execute)
Beispiel #4
0
IRSocket = socket( AF_INET, SOCK_DGRAM )
sn=sonos()
RaspBMC = socket( AF_INET, SOCK_DGRAM )
gbl_test = 1
heller = False
dimm_wz = False
dimm_esz = False
alarm_steh = False
TV_eingeschaltet = False
Amp_eingeschaltet = False

heartbt = 130

hbridge = Bridge(constants.hue_.IP)

message = messaging()
aes = alarm_event()

###################
#Marantz
###################         

def set_auto_szene():
    time.sleep(2)
    if (setting_r("AV_cmd")<>"1"):
        szene = mdb_marantz_r("Aktuell")
        if str(szene.get("Power")) == "False":
            pass
            #set_szene("auto_szene_Aus")
        elif (mdb_marantz_r('Aktuell').get('Source') <> mdb_marantz_r(str(setting_r("Kommando"))).get('Source')):
            if str(szene.get("Source")) == "11":