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 ?
			
			
									
						
										
						Text on LCD Panel
- 
				nissl
 - Posts: 25
 - youtube meble na wymiar Warszawa
 - Joined: Sat Jan 18, 2014 10:48 pm
 
- 
				orion
														 - Posts: 3485
 - Joined: Wed May 29, 2013 11:09 am
 
Re: Text on LCD Panel
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.
			
			
									
						
										
						Oh, I believe there are no variables available yet. It might be a good idea to create an APP for this feature.
- 
				Vortex
 - Posts: 13
 - Joined: Sat Aug 02, 2014 2:48 pm
 
Re: Text on LCD Panel
To write the text on LCD panel, enter next shell command (You can do it in .sh script etc):
or
info text displayed approx 10 secomds, warn text appears permamnt.
max text length for each line is 16 symbols.
			
			
									
						
										
						Code: Select all
lcmctrl -info "LINE1 TEXT" "LINE2 TEXT"Code: Select all
lcmctrl -warn "LINE1 TEXT" "LINE2 TEXT"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
Do you have an idea how to implement it with the mentioned variables. I'd like to show %NAS name% - %USEDSPACE% - %CPUTMP%.Vortex wrote:To write the text on LCD panel, enter next shell command (You can do it in .sh script etc):orCode: Select all
lcmctrl -info "LINE1 TEXT" "LINE2 TEXT"info text displayed approx 10 secomds, warn text appears permamnt.Code: Select all
lcmctrl -warn "LINE1 TEXT" "LINE2 TEXT"
max text length for each line is 16 symbols.
Thanks
- 
				mafredri
														 - Posts: 371
 - Joined: Sat Mar 22, 2014 8:41 am
 
Re: Text on LCD Panel
Here's some examples..
For hostname:
For disk usage:
For available disk space:
I'll leave it up to you how to use them 
...
			
			
									
						
							For hostname:
Code: Select all
lcmctrl -info "$(hostname)"Code: Select all
lcmctrl -info "$(df -h|grep '/volume1$'|awk '{print $3"/"$2}')"Code: Select all
lcmctrl -info "$(df -h|grep '/volume1$'|awk '{print $4}')"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)
			
						Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
- 
				mafredri
														 - Posts: 371
 - Joined: Sat Mar 22, 2014 8:41 am
 
Re: Text on LCD Panel
Here's another one that calculates the average of your 2 CPU core temperatures and gives you the value in Celcius:
You can test their output by replacing "lcmctrl -info" with "echo".
			
			
									
						
							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"; }')"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)
			
						Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)