DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-11-08 12:04:22

mikasa
Member
Registered: 2008-10-02
Posts: 12

Temperature show on web, DNS-313

Is it possible to get DNS-313 temperature shown on website? Not only in the web panel.

Offline

 

#2 2008-11-08 13:22:58

pcp
Member
From: Moravistan
Registered: 2008-04-23
Posts: 75

Re: Temperature show on web, DNS-313

Search for the g751ctl binary I've posted some time ago. It allows you to query the temp sensor, so you can redirect the output to the file (you would like to do this via cron job probably), and read the file contents from php script.
Alternatively, you can try system() or popen() or whatever stuff php use to exec system commands.

Offline

 

#3 2009-01-09 22:45:27

mikasa
Member
Registered: 2008-10-02
Posts: 12

Re: Temperature show on web, DNS-313

Anyone got work the temperature show with phpSysInfo-2.5.4 ? I'm getting a few error messages on the /phpsysinfo web page:

common_functions.php      158      find_program(who)      program not found on the machine
common_functions.php     213     /bin/df     /bin/df: invalid option -- P
BusyBox v1.00-pre1 (2008.03.07-06:35+0000) multi-call binary

Usage: df [-hmk] [FILESYSTEM ...]
Return value: -1
common_functions.php     213     /bin/df     /bin/df: invalid option -- i
BusyBox v1.00-pre1 (2008.03.07-06:35+0000) multi-call binary

Usage: df [-hmk] [FILESYSTEM ...]
Return value: -1
common_functions.php     213     /bin/mount    
Return value: -1

In the config.php is listed the motherboard monitoring programs. Can some of them work?

What about line:

// if the hddtemp program is available we can read the temperature, if hdd is smart capable
// !!ATTENTION!! hddtemp might be a security issue
// $hddtemp_avail = "tcp";      // read data from hddtemp deamon (localhost:7634)
// $hddtemp_avail = "suid";     // read data from hddtemp programm (must be set suid)

in config.php
Could that be used?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB