I want to update every minute a cell with data from a HTML link. The problem is that the value does not update unless I manually empty the cell or make changes to the script. I tried to add NOW()
to the script but the cells do not update. I do not know much about JavaScript. Could someone explain to me what and where in the script I should add or change something?
This is my script:
function DataFromDomoticz() {
var now = new Date();
SpreadsheetApp.getActive().getSheetByName('LUCHTVOCHTIGHEID_V2').getRange('A1').setValue(now);
SpreadsheetApp.getActive().getSheetByName('LUCHTVOCHTIGHEID_V2').getRange('I2').setValue('=ImportJSONBasicAuth("http://*****:8080/json.htm?type=devices&rid=68";"**";"**";"/result")');