first commit

This commit is contained in:
ansimstefl
2025-05-29 21:55:04 +02:00
parent 3884a9f9e9
commit a4c2dca44e
70 changed files with 3373 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# Instalace
# pip install broadlink
# pip install cryptography
import broadlink
devices1 = broadlink.sp2(devtype = 0x7547, host=("192.168.15.109",80), mac=bytearray.fromhex("34 EA 34 BD 75 02"))
devices1.auth()
devices1.set_power(True)
# OFF - devices1.set_power(False)
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/python3
from datetime import datetime, time
now = datetime.now()
now_time = now.time()
if now_time >= time(6,00) and now_time <= time(22,00):
print ('0')
else:
print ('1')