Skip to content

Instantly share code, notes, and snippets.

@karl-gustav
Created June 5, 2018 19:43
Show Gist options
  • Save karl-gustav/5936ef982d9e3c0c04b85011a38d68da to your computer and use it in GitHub Desktop.
Save karl-gustav/5936ef982d9e3c0c04b85011a38d68da to your computer and use it in GitHub Desktop.
Delete sensor data from domoticz smart home system
get data:
http://10.0.0.5/json.htm?type=graph&sensor=counter&method=1&idx=611&range=day
delete data:
http://10.0.0.5/json.htm?type=command&param=deletedatapoint&idx=611&date=2018-06-03%2019:55:00
data.result.forEach(point => delete(611, point.d));
function delete(idx, date) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment