hi, i have two questions related to rotation display
i'm using espmega2.0 dev7
i tested the rotation display and works fine.
but now i would like to show on rotating display value that are taken from external script, for example a script like that:
Code: Select all
#!/bin/sh
### lcd
curl -s http://192.168.0.193/control?cmd=oledcmd,clear
# import consumption row n°2
x2=`sudo poolerconsumi 1 power | egrep "^1\(" | grep "*W)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
curl -s "http://192.168.0.193/control?cmd=oled,2,1,Consumi+$x2+W"
# import live production row n°3
x1=`sudo curl http://localhost/metern/comapps/pool123.php?cmd=1 | egrep "^2\(" | grep "*W)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
curl -s "http://192.168.0.193/control?cmd=oled,3,1,Produz.+$x1+W"
# import live row n°4
x3=`sudo eflowlive whin | egrep "^3\(" | grep "*W)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
curl -s "http://192.168.0.193/control?cmd=oled,4,1,Prelievi+$x3+W"
# import live row n°5
#x4=`sudo eflowlive whout grep "^4\(.*W\)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
#curl -s "http://192.168.0.193/control?cmd=oled,5,1,Immisio+$x4+W"
if i lunch this script, it works, i'm able to see the result but not displayed with frame rotation, but all the value on one page.
how i can see for example n°2 row on every page and using "big characters as possibile" ??
second question:
i heve 2 display oled one 0.96" and one 1.3"
to use the 1.3" i have modify the surce code as sugested in a previous pos
changing the line:
change line 415 : for (i = 0; i < 128; i++) //clear all COL
into this line 415: for (i = 0; i < 132; i++) //clear 132 COL
it works perfect but only with "standard oled plugin" with framed plugin i'm able to see nothing, all rows are displayed with wrong characters ( i mean also compiling the rows on espmega not using my external script)
i see the code of framed plugin but there are't the value like before that i could modify. how i can solve?
with 0.96" oled there are no issue
thanks so mutch!