import json
import requests
from time import gmtime, strftime


f_data = open("data/states.out").read()
curr_time = strftime("%d-%m-%Y %H:%M:%S", gmtime())

data = {
    "data" : f_data,
    "time" : curr_time
}
url = 'http://localhost:8080'

#print(data)
r = requests.post(url, data=json.dumps(data))

print(r.content)
