Add daemon.py and plugins
This commit is contained in:
parent
7a7f3591d2
commit
c99dd127e0
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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)
|
|
@ -0,0 +1 @@
|
||||||
|
plugins = []
|
Loading…
Reference in New Issue