jeudi 23 janvier 2020

Saving data from json to text file

I have some temperature data in an html page returned from a raspberry using can bus. I want to save this data in a text file. The information exist in a js file

socket.on('tempback', (data) => {

$("#BTInfo").text(data);

});

and i call it from the html so as to show it in an interface.

div id="BPTInfo" class="number-circle text colortemp"> p id="BPTInf" style="vertical-align: middle;line-height: 1;margin-bottom: -1px;">0

Please can u help me saving those data in a text file

Aucun commentaire:

Enregistrer un commentaire