Oct-03-2020, 11:40 PM
You likely need to debug what is happening with js-part of the code. Open browser with your url,
and put a breakpoint to
Output: let el = document.getElementById('temperature')
el.innerHTML = data.stringify() // you can do this better
open developer tools (e.g. via inspecting some element on the page), and put a breakpoint to
let el ....
or el.innerHTML ...
. The main question here is to inspect data
variable (its value, does updateTemp
read temp value correctly?).