Background-Daemon/daemon.py

19 lines
298 B
Python
Raw Normal View History

2020-12-21 08:19:07 +01:00
#!/usr/bin/env python
import time
import requests
import config
from plugins import plugins
def main():
data = requests.get(config.CAR_API_URL)
for plugin in plugins:
plugin.check(data)
if __name__ == "__main__":
while True:
main()
time.sleep(config.DELAY)