Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

rpimonitor
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
rpimonitor
3rd Mar, 2015, 01:51 AM
Post: #1
Fabio72 Offline
Registered
Posts: 96
Joined: Feb 2014
Reputation: 5
rpimonitor
I played a bit with rpimonitor
https://github.com/XavierBerger/RPi-Monitor
I made some further customisation for Xbian



file /etc/rpimonitor/template/version.conf
Code:
...
static.5.name=xbmc
static.5.source=grep Kodi /home/xbian/.kodi/temp/kodi.log |head -1|awk '{ print substr($6,2) " " substr($7,0,length($7)-1) }'
static.5.regexp=(.*)
static.5.postprocess=
...
static.3.name=firmware
#static.3.source=/proc/version
static.3.source=/opt/vc/bin/vcgencmd version |sed -n '1~2'p|paste -s|awk '{ print $6 " ("  $2 " " $1 " " $3  " " $4 ")"}'
static.3.regexp=(.*)
static.3.postprocess=
...
web.status.1.content.1.name=Version
web.status.1.content.1.icon=xbian_logo.png
web.status.1.content.1.line.1='Processor: <b>' + data.processor + '</b>'
web.status.1.content.1.line.3='Kodi: <b>'+ data.xbmc + '</b>'
web.status.1.content.1.line.2='Distribution: <b>'+ data.distribution + '</b>'
web.status.1.content.1.line.4='Kernel version: <b>' + data.kernel_version + '</b>'
web.status.1.content.1.line.5='Firmware: <b>' + data.firmware + '</b>'
web.status.1.content.1.line.6='Package(s): <b>' + data.upgrade + '</b>' + ShowInfo('packages','Package(s) upgradable(s)',data.packages)



file /etc/rpimonitor/template/cpu.conf
Code:
...
dynamic.5.name=h264_frequency
dynamic.5.source=/opt/vc/bin/vcgencmd measure_clock h264|awk '{split($0,array,"=")} END { print array[2] }'
dynamic.5.regexp=(.*)
dynamic.5.postprocess=$1/1000000
dynamic.5.rrd=

dynamic.6.name=core_frequency
dynamic.6.source=/opt/vc/bin/vcgencmd measure_clock core|awk '{split($0,array,"=")} END { print array[2] }'
dynamic.6.regexp=(.*)
dynamic.6.postprocess=$1/1000000
dynamic.6.rrd=
...
web.status.1.content.1.name=CPU
web.status.1.content.1.icon=cpu.png
web.status.1.content.1.line.1=JustGageBar("Load", "1min", 0, data.load1, 3, 100, 80)+" "+JustGageBar("Load", "5min", 0, data.load5, 3, 100, 80)+" "+JustGageBar("Load", "15min", 0, data.load15, 3, 100, 80)
web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_frequency + "MHz</b> Voltage: <b>" + data.cpu_voltage + "V</b>"
web.status.1.content.1.line.3="Core frequency: <b>" + data.core_frequency + "MHz</b>"
web.status.1.content.1.line.4="H264 frequency: <b>" + data.h264_frequency + "MHz</b>"
web.status.1.content.1.line.5="Scaling governor: <b>" + data.scaling_governor + "</b>"
...



file /etc/rpimonitor/template/network.conf
Code:
...
dynamic.18.name=RX_bandwidth
dynamic.18.source=ifstat -i eth0 -w  0.5 1 |sed -n 3p|awk '{ print $1 }'
dynamic.18.regexp=(.*)
dynamic.18.postprocess=$1*1000
dynamic.18.rrd=

dynamic.19.name=TX_bandwidth
dynamic.19.source=ifstat -i eth0 -w  0.5 1 |sed -n 3p|awk '{ print $2 }'
dynamic.19.regexp=(.*)
dynamic.19.postprocess=$1*1000
dynamic.19.rrd=
...
web.status.1.content.8.name=Network
web.status.1.content.8.icon=network.png
web.status.1.content.8.line.1="Sent: <b>"+KMG(data.net_send)+"<i class='icon-arrow-up'></i></b> Received: <b>"+KMG(Math.abs(data.net_received)) + "<i class='icon-arrow-down'></i></b>"
web.status.1.content.8.line.2="TX Bandwidth: <b>" +KMG(data.TX_bandwidth) + "/s<i class='icon-arrow-up'></i></b> RX Bandwidth: <b>" + KMG(data.RX_bandwidth) + "/s<i class='icon-arrow-down'></i></b>"
...

for this one you have to apt-get install ifstat
Find all posts by this user
Quote this message in a reply
3rd Mar, 2015, 04:20 AM
Post: #2
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: rpimonitor
Very nice, good work.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
7th Mar, 2015, 08:17 AM
Post: #3
Jibbij Offline
Registered
Posts: 7
Joined: Feb 2015
Reputation: 0
RE: rpimonitor
Very useful, thank you! I'll contact you in the future about integrating this with XBian.Two.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 06:58 PM Powered By MyBB, © 2002-2025 MyBB Group.