1) i'm on espeasy
bin = ESP_Easy_mega-20190903_normal_core_241_ESP8266_4M1M.bin
System Libraries = ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support
i receive very frequently randomly reboot, and the reason is:
Reset Reason: Hardware Watchdog
i never change the release because of reason 2) of the topic:
2) connected to this esp (nodemcu) i have two devices: 1 DHT22 to monitor the temperature/humidity and 1 Display - LCD2004 to show the temperature and some datas that i take from a bash script that send to LCD the data to show.
here the script:
Code: Select all
#!/bin/sh
### lcd
curl -s http://192.168.0.198/control?cmd=lcdcmd,clear
# import live consumi
#from JSON
x2=`cat /dev/shm/mN_LIVEMEMORY.json | python -c "import sys, json; print(json.load(sys.stdin)['Consumi1'])"`
curl -s "http://192.168.0.198/control?cmd=lcd,2,1,Consumi+$x2+W"
# import live produzione
# con JSON
x1=`cat /dev/shm/mN_LIVEMEMORY.json | python -c "import sys, json; print(json.load(sys.stdin)['Produzione2'])"`
x4=`cat /dev/shm/mN_LIVEMEMORY.json | python -c "import sys, json; print(json.load(sys.stdin)['Immissioni4'])"`
curl -s "http://192.168.0.198/control?cmd=lcd,3,1,Prod+$x1+W%20Im+$x4+W"
# import live prelievi
# con JSON
x3=`cat /dev/shm/mN_LIVEMEMORY.json | python -c "import sys, json; print(json.load(sys.stdin)['Prelievi3'])"`
AC=`cat /dev/shm/mN_LIVEMEMORY.json | python -c "import sys, json; print(json.load(sys.stdin)['Temperatura Boiler11'])"`
curl -s "http://192.168.0.198/control?cmd=lcd,4,1,Prel+$x3+W%20Boil$AC+C"
# import live immissioni
# con JSON
x4=`cat /dev/shm/mN_LIVEMEMORY.json | python -c "import sys, json; print(json.load(sys.stdin)['Immissioni4'])"`
curl -s "http://192.168.0.195/control?cmd=oled,5,2,Immisio+$x4+W"
Code: Select all
{"UTC":1598515314,"Consumi1":"2387.5","Produzione2":"2498.5","Prelievi3":"0","Immissioni4":"111","Autoconsumo5":"2388","temperatura6":"25.1","Umidit\u00e07":"97.0","PrelieviF18":"0","PrelieviF239":"0","New 1010":"0","Temperatura Boiler11":"49.25","Boiler12":"1230"}
if i update to the latest version of ESP i find issue on reporting data, i'm able the see the letters, but not the numeric part taken from the Json.
i see that it happened on the espeasy firmware after 2019
if i would like to change the way of reporting the data to lcd, may i use mqtt?
it will be better? in what way i can extract the data that i need from the json and report to lcd connected to espeasy?
thanks