Hi,
I’m pulling a JSON feed into Ignition with some considerable success but I’m having trouble getting the timestamps right. Can anyone point me in a good direction?
TIA, Craig
[code]#APIKey = “YourAPIKeyGoesHere”
#LatLon = “YourLatLonGoesHere”
json = system.net.httpGet(“https://api.forecast.io/forecast/” + APIKey + “/” + LatLon)
res = system.util.jsonDecode(json)
String tag
system.tag.write(“sTime”, res[“currently”][“time”])
result 1430950132
DateTime tag
system.tag.write(“dTime”, res[“currently”][“time”])