FoxLabDashBoard/beamStatus.py
2024-02-20 12:42:28 -05:00

23 lines
313 B
Python
Executable File

#!/usr/bin/python3
import os
url="http://localhost:8086/write?db=accel"
import random
num = random.random()*100
cmd = "curl -XPOST " + url + " --data-binary " + "\'testing value=" + str(num) + "\'"
print("Content-type:text/html\r\n\r\n")
print(cmd)
# os.system(cmd)
#print('</body>')
#print('</html>')