Text on LCD Panel

Share your awesome tips and tricks here.
nissl
Posts: 25
youtube meble na wymiar Warszawa
Joined: Sat Jan 18, 2014 10:48 pm

Text on LCD Panel

Post by nissl »

Hi,

I'm looking for some Tipps how to configure the LCD Panel.
As you can write what ever you like i was wondering if it isn't possible to write a 'variable' text in the Panel like the CPU Temp, FreeSpace, Uptime, Time/Date etc.

i thought it must be available as some kind of Variable to use it like this: My Nas CPU: %CORETEMP% - %TIME%

Any ideas ?
User avatar
orion
Posts: 3485
Joined: Wed May 29, 2013 11:09 am

Re: Text on LCD Panel

Post by orion »

It will be a nice feature. However my as-304t does not equip a LCD panel. :)
Oh, I believe there are no variables available yet. It might be a good idea to create an APP for this feature.
nissl
Posts: 25
Joined: Sat Jan 18, 2014 10:48 pm

Re: Text on LCD Panel

Post by nissl »

That would be great.
Vortex
Posts: 13
Joined: Sat Aug 02, 2014 2:48 pm

Re: Text on LCD Panel

Post by Vortex »

To write the text on LCD panel, enter next shell command (You can do it in .sh script etc):

Code: Select all

lcmctrl -info "LINE1 TEXT" "LINE2 TEXT"
or

Code: Select all

lcmctrl -warn "LINE1 TEXT" "LINE2 TEXT"
info text displayed approx 10 secomds, warn text appears permamnt.
max text length for each line is 16 symbols.
nissl
Posts: 25
Joined: Sat Jan 18, 2014 10:48 pm

Re: Text on LCD Panel

Post by nissl »

Vortex wrote:To write the text on LCD panel, enter next shell command (You can do it in .sh script etc):

Code: Select all

lcmctrl -info "LINE1 TEXT" "LINE2 TEXT"
or

Code: Select all

lcmctrl -warn "LINE1 TEXT" "LINE2 TEXT"
info text displayed approx 10 secomds, warn text appears permamnt.
max text length for each line is 16 symbols.
Do you have an idea how to implement it with the mentioned variables. I'd like to show %NAS name% - %USEDSPACE% - %CPUTMP%.

Thanks
User avatar
mafredri
Posts: 371
Joined: Sat Mar 22, 2014 8:41 am

Re: Text on LCD Panel

Post by mafredri »

Here's some examples..

For hostname:

Code: Select all

lcmctrl -info "$(hostname)"
For disk usage:

Code: Select all

lcmctrl -info "$(df -h|grep '/volume1$'|awk '{print $3"/"$2}')"
For available disk space:

Code: Select all

lcmctrl -info "$(df -h|grep '/volume1$'|awk '{print $4}')"
I'll leave it up to you how to use them :)...
Hi, I'm new here. Looking to be active in the community and help with development :).
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
User avatar
mafredri
Posts: 371
Joined: Sat Mar 22, 2014 8:41 am

Re: Text on LCD Panel

Post by mafredri »

Here's another one that calculates the average of your 2 CPU core temperatures and gives you the value in Celcius:

Code: Select all

lcmctrl -info "$(cat /sys/class/hwmon/hwmon0/device/temp*_input | awk '{ sum += $1; n++ } END { if
 (n > 0) print sum / n / 1000"C"; }')"
You can test their output by replacing "lcmctrl -info" with "echo".
Hi, I'm new here. Looking to be active in the community and help with development :).
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)