Thank you for your donation!


Moode version from Python
#1
Hi, I'm writing the python code to populate my I2C 16x2 display (not still wired, at now I'm writing on the terminal...)
How can I get Moode version (and eventually other info) to show during system startup?

thanks!
Andrea
Reply
#2
Hi Andrea,

Use the following cmds:


Code:
System parameters and values
sqlite3 /var/local/www/db/moode-sqlite3.db "select param,value from cfg_system"

moOde version
Long form
awk '/Release: /{print $2 " " $3;}' /var/www/footer.php | sed 's/,//'
Short form
awk '/Release: /{print $2;}' /var/www/footer.php | sed 's/,//'

-Tim
Reply


Forum Jump: