www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Sensors UI Addon

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
iulyb



Joined: 02 Jun 2016
Posts: 72

PostPosted: Mon Jul 04, 2016 10:26 pm    Post subject: Sensors UI Addon Reply with quote

Hi,
I developed a small addon that will support lm_sensors on UI. Basically it will add a new line under sysinfo frame and a link for more details window. The detail window will has an option to (re-)configurue.
It support the config from UI but this feature is not quite required since you still need to go on cmd in order to install it.

How to Install:
Create a location for it under /DB, recommended /DB/opt , then download and unpack.
Code:
mkdir /DB/opt && cd /DB/opt
wget http://jb68.com/pkg/sensors_ui-3.6.0_0.1-ZS.tar.gz
tar -xzvf sensors_ui-3.6.0_0.1-ZS.tar.gz

In order to work it we need to copy the content under /root/kerbynet dir. Add next lines under pre boot script:
Code:
# Add sensors in UI
cd /DB/opt/sensors; /bin/cp -rf * /root/kerbynet.cgi/
echo "apache ALL=     NOPASSWD:       /usr/local/sbin/sensors-detect">>/root/kerbynet.cgi/template.cfg/sudoers

Check enable, save then reboot router
Here are some screencaps:


Have fun and report bugs Wink
Back to top
View user's profile Send private message
reaperz



Joined: 13 Apr 2012
Posts: 76

PostPosted: Thu Aug 18, 2016 8:57 am    Post subject: Reply with quote

Hello

Question, how to get access to sensors from command line?

I would like to pull router CPU temp info with some shell command and then use it in my monitoring server to do some proper statistics.
Back to top
View user's profile Send private message
iulyb



Joined: 02 Jun 2016
Posts: 72

PostPosted: Fri Aug 19, 2016 4:59 am    Post subject: Reply with quote

Code:
$ sensors


https://wiki.archlinux.org/index.php/Lm_sensors

[/code]
Back to top
View user's profile Send private message
alpha_wall



Joined: 23 Mar 2009
Posts: 42

PostPosted: Tue Aug 23, 2016 2:26 pm    Post subject: Reply with quote

Great post. it was easy to follow and really useful. One quick question how did you manage to add the temp chart to Zeroshell ??

Many thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group