Compare commits
No commits in common. "156ef04b612cf4544de92c5a31aec16f8e857e21" and "7a7f3591d25c205da3bf252ed4a7b595e34b9656" have entirely different histories.
156ef04b61
...
7a7f3591d2
18
daemon.py
18
daemon.py
|
@ -1,18 +0,0 @@
|
|||
#!/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)
|
|
@ -1 +0,0 @@
|
|||
plugins = []
|
|
@ -1 +0,0 @@
|
|||
requests>=2.0
|
|
@ -1,3 +1,2 @@
|
|||
OSD_URL = "http://localhost:5050/send/"
|
||||
CAR_API_URL = "http://localhost:5000/all/"
|
||||
DELAY = 0
|
||||
|
|
Loading…
Reference in New Issue