.value),
            'VALUE': parseFloat(document.getElementById('val').value),
            'XTIME': Date.parse(document.getElementById('xtime').value) / 1000,
            'INTERVAL': parseInt(document.getElementById('interval').value),
            'TXT': document.getElementById('txt').value
        }
        req.send(JSON.stringify(json))
        console.log(json)
    }

    function resetCommandQueue() {
        var req = new XMLHttpRequest()
        req.open('POST', '/addcommand/')
        var json = {
 