Core Temperatures Widget
-
Puslate a typo? Pulsate.
-
@onhel:
Puslate a typo? Pulsate.
D'oh! Corrected. File and link are updated.
Thank you onhel.
-
That looks interesting, I recently did a widget for Dynamic DNS and got the suggestions (and some help) from the posts here:
http://forum.pfsense.org/index.php/topic,58278.msg312391.html#msg312391
I'd never dealt with Git before but I ended up with my Widget in the pfSense Git and accepted into the project's code.
Thank you Stan for good points.
Never dealt with Git ether. I'll play with it this weekend, see if I can fork and put these files in.Just need first to understand Git better and figure out which version, branch or tag I need to fork for pfSense v2.0.2 (for current widget) as well as jQuery version for pfSense v2.1…
I would really appreciate any guidance on proper forking.
-
These links might help too:
http://devwiki.pfsense.org/GitWorkflow
http://devwiki.pfsense.org/GitInfo
http://devwiki.pfsense.org/GitLinks
-
thanks again Stan!
-
New features always have to go into the master branch first, which is 2.1 right now. We can't accept any new features into 2.0.x since it's just a bug fix/maintenance release branch now.
There are some differences between 2.0.2 and 2.1 in the UI code for the dashboard/widgets, mostly that it's using jquery instead of prototype.
Also on 2.1 the coretemp and amdtemp modules are built in and selectable in the GUI under System > Advanced on the Misc tab, so it's even easier to use. The temperature is also displayed in the system information widget but it only checks/reports on one core.
-
Thank you Jim.
Yep, no new features for 2.0.1 (learned it the hard way :-[).I have jQuery version of the widget ready, but still would like to test it on 2.1 before pushing it.
I've managed to temporary plug-in jQuery on my 2.0.1 box and test it that way, but this is not a 100% test.
Trying to figure out now how to install latest 2.1 snapshot on VM on my Vista box (hopefully it is possible somehow) to do a final test.
You have mentioned that the coretemp/amdtemp modules are built-in now, could you please clarify the following (in case i'm not successful with VM):
1. are any of them set by default (on install), or user has to explicitly select one to turn it on?
2. what would be the best way to programmatically (PHP, I'd assume) determine if module is turned on?Thanks in advance.
-
1. None by default. User has to select.
2. There is an is_module_loaded() function you can use. Check util.inc. e.g. is_module_loaded("coretemp.ko") -
Perfect!
Just checked the code and the description on System > Advanced > Misc mentions that if module is not installed it will try to read from ACPI.
Can I assume that "sysctl -a | grep temperature" command would return at least one zone sensor (like "hw.acpi.thermal.tz0.temperature") even if none of the modules turned on/installed (assuming it is ACPI-compliant motherboard)?
-
Not sure off the top of my head what all the sysctls are. Check /usr/local/www/includes/functions.inc (or thereabouts) and look at get_temp();
-
thanks Jim,
looks like it was a moot-point question on my part.even if "sysctl -a | grep temperature" returns nothing, we can just put a msg and point user to Misc page (with a direct link).
some thing like this (see last snapshot), would that be appropriate?