12 lines
200 B
Python
Executable file
12 lines
200 B
Python
Executable file
#!/usr/bin/python3 -u
|
|
import json
|
|
import vdstatus
|
|
import time
|
|
|
|
|
|
print('{"version":1}')
|
|
print('[')
|
|
while True:
|
|
output = vdstatus.run_plugins()
|
|
print(json.dumps(output) + ',')
|
|
time.sleep(1)
|