python-watchdog-kodi/addon.py

9 lines
199 B
Python
Raw Permalink Normal View History

2019-12-01 04:02:19 +00:00
import time
import xbmc
if __name__ == '__main__':
monitor = xbmc.Monitor()
2019-12-11 12:42:54 +00:00
with open("/dev/watchdog0", "a") as ddog:
while not monitor.watiForAbort(5):
2019-12-01 04:02:19 +00:00
ddog.write("\n")