airtime.innerText = strftime('%Y-%m-%d H:%M', data['timestamp']);
})
.catch(function(error) {
- // handle error
+ console.log(error);
});
fetch(api_url_currentwater)
.then((resp) => resp.json())
watertime.innerText = strftime('%Y-%m-%d H:%M', data['timestamp']);
})
.catch(function(error) {
- // handle error
+ console.log(error);
});
},
refresh_interval