MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2008-03-31, 00:39   #1 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Lightbulb FANatic Monitor

FANatic Monitor

Last updated: 08/03/31
Current version: 0.0.0.1b
Author: panni
Type: Utilities

Information
After failing in setting up the "My SpeedFan" plugin, which seems to have died in 2007 I decided a new system monitoring plugin for MediaPortal has to be developed.
With the working title "Speedphan" FANatic Monitor is the first MediaPortal plugin I've made and the first time I (was forced to) use C# - in the meantime I'm a Python developer.

Description
FANatic Monitor is a plugin which wraps up the information gathered from logfiles of the most famous Fan/Temperature/Voltage monitoring tool "SpeedFan" by Alfredo Milani Comparetti into a neat, lightweight MP plugin.
Compared to "My SpeedFan" this tool requires only a very short and easy to do setup and has a way clearer and more flexible output.

Downloads
Dependencies
  • MediaPortal 0.2.3.0 or later
  • SpeedFan (at least a version with Log support)

Installation
  • install SpeedFan (SpeedFan - Access temperature sensor in your computer - download the newest beta build if you want to have correct temperature readings on multi core systems for CoreX)
  • enable logging in the configuration of SpeedFan
  • check the "Logging" box of every sensor you want to have displayed in FANatic Monitor
  • use MPInstaller to install the MPI package, or extract the ZIP package to your MediaPortal folder (source included)
  • run FANatics setup
  • if your SpeedFan folder was not automatically detected by FANatic, please specify it
  • for every sensor in SpeedFan's config having "Logged" set to true please specify the type of the sensor in the "Sensors" part of the setup - this will define the unit of a sensor-reading's value (°F or °C for a temperature, rpm for a fan speed, V for a Voltage)
  • run MediaPortal

Roadmap
0.0.0.2
  • perhaps a neater look, some custom icons
  • configurable sensor reading threshold
  • threshold alarm on threshold reach
  • you tell me

Issues
  • fanatic.xml config file's layout is pretty ineffective; I was too lazy to improve the MPXMLConfig class stolen from My Speedfan; perhaps will redo it in some upcoming version

Version history
0.0.0.1b:
  • sensor hover didn't work
  • invalid installer MPI for custom skins now fixed
0.0.0.1:
  • initial release


Please comment on this plugin to help me improving it.

Last edited by panni; 2008-03-31 at 23:25.
panni is offline   Reply With Quote
5 Users Say Thank You:
Old 2008-03-31, 11:26   #2 (permalink)
MP Donator
 
Sh4nn0w's Avatar
 
Join Date: Sep 2006
Location: Hook, Hampshire
Age: 28
Posts: 213
Thanks: 17
Thanked 6 Times in 6 Posts

Country:

My System

Default

Nice work, thanks. I had been using the old plugin in the past.

Just to let you know when I used the MPI installer, it identifed my installed skins during the setup, but after finishing configuring it I noticed it hadn't actually copied over the fanatic.xml skin file into any of my skin directories. (error came up about missing xml file in Mediaportal).

I got around this by downloading the source zip and copying over from there.

Now i've got it showing CPU temps ok, I'm going to play around with speedfan a bit more and add some of the other sensors into the log.

Keep up the good work.

__________________
Desktop:
Intel Core 2 Duo E6750 | Patriot 4GB PC2-6400 | Gigabyte GA-P35-DS3R | BFG GeForce 8800 GTS OC 512MB
2x WD Caviar WD5000AAKS 500GB | Pioneer DVR-109 DVD±RW
Antec P160 Case | Seasonic S12 430W PSU | Samsung SM-226BW
Media Server:
Intel Pentium Dual Core E2180 | 2GB Kingston PC2-5300 | Gigabyte GA-G33-DS3R | Pinnacle 3010iX TV Tuner |
2x Icy Dock MB-454SPF | 2x WD5000AAKS 500GB | 4x WD10EACS 1TB
Cooler Master Centurion 590 | Seasonic M12 600W PSU
Sh4nn0w is online now   Reply With Quote
Old 2008-03-31, 16:54   #3 (permalink)
Portal Member
 
jburnette's Avatar
 
Join Date: Aug 2006
Location: Kentucky
Age: 23
Posts: 700
Thanks: 125
Thanked 90 Times in 49 Posts

Country:

My System

Default

I've never been able to actually get the old Speedfan plugin to work. This one seems to work perfectly, thanks a lot. Love the name, by the way.
jburnette is offline   Reply With Quote
Old 2008-03-31, 17:03   #4 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,550
Thanks: 34
Thanked 133 Times in 57 Posts

My System

Default

Nice, seems very useful (have yet to try it though).

As for feature requests, any way to pop-up a warning when some value exceeds a threshhold? That would be awesome!
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte
Inker is offline   Reply With Quote
Old 2008-03-31, 18:40   #5 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Default

Good idea Inker, though I won't add a popup, more like additional info in RED or something, if the value exceeds the threshold.
I'm thinking about some detailed statistics, too, like for example a "Today's min" or "Today's max" view on sensor hover.

I need some help with the MPI thing, because I don't exactly understand the skin handling when creating the MPI. Could someone introduce me further into that system, perhaps via IRC #mediaportal?

UPDATE:
Problem has been resolved, thanks to Dukus. MPI will be updated.

UPDATE:
Fixed installer has been added. May take some time until the official mirror serves the updated - in the meantime use my local mirror.

Last edited by panni; 2008-03-31 at 19:17.
panni is offline   Reply With Quote
Old 2008-03-31, 19:17   #6 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,550
Thanks: 34
Thanked 133 Times in 57 Posts

My System

Default

Quote:
Originally Posted by panni View Post
Good idea Inker, though I won't add a popup, more like additional info in RED or something, if the value exceeds the threshold.
I'm thinking about some detailed statistics, too, like for example a "Today's min" or "Today's max" view on sensor hover.

I need some help with the MPI thing, because I don't exactly understand the skin handling when creating the MPI. Could someone introduce me further into that system, perhaps via IRC #mediaportal?

UPDATE:
Problem has been resolved, thanks to Dukus. MPI will be updated.
Panni......what do you mean red? I mean someway to inform me about this, even when I'm not inside the plugin screen (I obviously don't stare at it all the time and the cpu is more likely to get hot while watching a movie in fullscreen or something) :-)
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte
Inker is offline   Reply With Quote
Old 2008-03-31, 19:27   #7 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Default

I don't know if that'd be possible - depends on what MediaPortal allows me to do as a plugin developer. Perhaps this can be achieved by creating a process plugin which monitors in background and alerts if a threshold is reached.
As I said it's my first plugin, so it will take me some time to figure out what's needed for achieving this goal.

Any ideas?
panni is offline   Reply With Quote
Old 2008-03-31, 19:38   #8 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,550
Thanks: 34
Thanked 133 Times in 57 Posts

My System

Default

Your dll stay loaded the whole time, so just add a timer, that checks, lets say every 10 seconds, and if a threshold is exceeded bring up a dialog....pseudocode ahead:

Code:
if(threshholdexceeded)
{
     GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO);
dlgYesNo.SetHeading(GUILocalizeStrings.Get("Warning - PC about to explode")); 
dlgYesNo.SetLine(1, "Warning, Threshold for CPU Temp exceeded - 100°C!!!");
dlgYesNo.SetLine(2, "Want to show the status window?");
dlgYesNo.DoModal(GUIWindowManager.ActiveWindow); // show the dialog
if (dlgYesNo.IsConfirmed) // user clicked yes
{
     GUIWindowManager.ActivateWindow(YOUR_WINDOW_ID); // jump to your plugins window so user can see all values
}
}
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte
Inker is offline   Reply With Quote
Old 2008-03-31, 19:42   #9 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Default

Oh, nice, thank you, didn't know that the DLL stays loaded all the time.
Will definitely add this as an option, thank you!
panni is offline   Reply With Quote
Old 2008-03-31, 22:28   #10 (permalink)
MP Donator
 
Sh4nn0w's Avatar
 
Join Date: Sep 2006
Location: Hook, Hampshire
Age: 28
Posts: 213
Thanks: 17
Thanked 6 Times in 6 Posts

Country:

My System

Default

Tweaked the fanatic.xml file to fit in better with widescreen for Indigo & Monochrome (attached). same XML works for both.
Attached Thumbnails
fanatic-monitor-fanatic-indigo.jpg  fanatic-monitor-fanatic-monochrome.jpg  
Attached Files
File Type: xml fanatic.xml (2.5 KB, 38 views)
__________________
Desktop:
Intel Core 2 Duo E6750 | Patriot 4GB PC2-6400 | Gigabyte GA-P35-DS3R | BFG GeForce 8800 GTS OC 512MB
2x WD Caviar WD5000AAKS 500GB | Pioneer DVR-109 DVD±RW
Antec P160 Case | Seasonic S12 430W PSU | Samsung SM-226BW
Media Server:
Intel Pentium Dual Core E2180 | 2GB Kingston PC2-5300 | Gigabyte GA-G33-DS3R | Pinnacle 3010iX TV Tuner |
2x Icy Dock MB-454SPF | 2x WD5000AAKS 500GB | 4x WD10EACS 1TB
Cooler Master Centurion 590 | Seasonic M12 600W PSU
Sh4nn0w is online now   Reply With Quote
Reply

Bookmarks

Tags
fanatic, monitor

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Second Monitor AdamNZ Newcomers Forum 7 2008-01-08 07:00
On the Second monitor in a Dual Monitor setup j3bu Support 10 2007-09-04 23:46
Second Monitor Issues gregsmith General Support 13 2006-07-12 16:58
TV out on second monitor? Greg_SA General Support 2 2006-04-07 18:45
Second monitor .... again pigster Improvement Suggestions 0 2006-02-15 19:51


All times are GMT +1. The time now is 04:39.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress