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
 
LinkBack (1) Thread Tools Display Modes
Old 2008-03-31, 23:12   #11 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Default

Looks nice, will include it in 0.0.0.2!
Will take your small "<define>#selecteditem:-</define>" improvement into the standard skin xml, too - just didn't know how to do that
panni is offline   Reply With Quote
Old 2008-04-01, 17:27   #12 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Default

Quote:
Originally Posted by Inker View Post
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
}
}
I currently am at 95% development of version 0.0.0.2.
The last thing I've added was your threshold alarm dialog idea, which seems to break the whole system.
GUIWindowManager.ActivateWindow(GetID); seems to misallocate the resources needed for FANatic Monitors window - visiting the window manually still works.

Been debugging this the whole night, though my C# skill doesn't seem to be hight enough yet, to fix this problem.
It's not that it's an easy one, because the error resulting after clicking "OK" seems to be random.

Want to have a look?
Possible error 1
Possible error 2
Source (a bit messed up, because of the testing)
Sample config
Skin file
panni is offline   Reply With Quote
Old 2008-04-01, 17:51   #13 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,210
Thanks: 20
Thanked 172 Times in 90 Posts

Country:

My System

Default

Hmm, at first i don't understand this line
Code:
        public bool showDialogOnThreshold(ArrayList hits)
        {
            if (GUIWindowManager.ActiveWindow != GetID)
The dialog is only shown if another window than this plugin is shown.
I would assume that the dialog shows up even if i am already in the plugin screen because i may have forgotten about the exact threshold values.
Regarding the actual bug, i am not quite sure but it's this is not a good idea:
Code:
        protected override void OnPageDestroy(int newWindowId)
        {
            if (timer != null && timer.Enabled)
            {
                timer.Stop();
            }
            Info("PAGEDESTROY");
            if (wantsAlarm)
                startAlarmTimer();
        }
You start the timer when the page gets destroyed.
This might cause issues too.
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2008-04-01, 17:58   #14 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Default

1st code:
Yes, the dialog is only shown when you're NOT in FANatic's window, that's the alert feature, Inker suggested.
You don't need an annoying alert dialog if you're just seeing the sensors overview, and the alarm-red threshold reached sensors.

2nd code:
Yeah, that's true, the alarm dialog should exclusively be shown if requested by configuration and if not in FANatic's window.

Am I using the wrong event here?
Is there something like OnWindowDeactivate?

[Edit]
Hmm, a workaround would be to let the timer run all the time but explicitly check the current window ID.

[Edit2]
Another exception has been added to the random exception list:
Code:
2008-04-01 19:15:24.750000 [Info.][11]: Exception   :Fehler in der Anwendung.
-2005530516 (D3DERR_INVALIDCALL)
   bei Microsoft.DirectX.Direct3D.Device.BeginScene()
   bei MediaPortalApp.Render(Single timePassed)
2008-04-01 19:15:24.750000 [Info.][11]: Exception   :Fehler in der Anwendung.
2008-04-01 19:15:24.750000 [Info.][11]:   site      :Void BeginScene()
2008-04-01 19:15:24.750000 [Info.][11]:   source    :Microsoft.DirectX.Direct3D
2008-04-01 19:15:24.750000 [Info.][11]:   stacktrace:   bei Microsoft.DirectX.Direct3D.Device.BeginScene()
   bei MediaPortalApp.Render(Single timePassed)
[edit4]
Okay, I've done what you suggested, and added some further debugging to the source.
I've set the initial timeout of the alarmTimer to 10 seconds, because it seems to hardcrash only, if the timer hits while MediaPortal Window0 (GUIHome) isn't active (being loaded).

Now the skin doesn't fail with a black screen anymore, but with destroyed controls, reproducably.
Only after the modal window - manually visiting FANatic's window works, but only after clean start of MP.



Anyway, here's the updated source
and the debug build, if you want to try it.

Last edited by panni; 2008-04-01 at 18:57.
panni is offline   Reply With Quote
Old 2008-04-12, 23:24   #15 (permalink)
MP Donator
 
MoPhat's Avatar
 
Join Date: Jun 2007
Location: Berg, Switzerland
Age: 35
Posts: 640
Thanks: 4
Thanked 40 Times in 10 Posts

Country:

My System

Default

Hi i have tryed this plugin with the latest speedfan beta version (4.34 beta 51) and i noticed that in the logfiles are only lines like this writen:

Code:
SFLog20080413-0001.csv
--------------------------------------------------------------
Seconds
1155
1157
1160
1164
1167
1170
1173
1176
1179
1182
1185
1188
1191
1194
1197
No other informations are in the files !?!?!

What do i am wrong?

thanks for any help
MoPhat

Sorry, its me again... i had checked the wrong checkbox for logging

I hadt not checked on every temp and fan that should be logged...

MoPhat

Last edited by MoPhat; 2008-04-12 at 23:36. Reason: Automerged Doublepost
MoPhat is offline   Reply With Quote
Old 2008-04-16, 09:05   #16 (permalink)
Portal Member
 
Join Date: Jan 2008
Posts: 89
Thanks: 5
Thanked 2 Times in 2 Posts

Country:


Default

How about giving an option to rename in the home menu? E.g. I would like to have "System Monitor" instead "FANantic Monitor". I just like to keep things simple.

Very nice plugin by the way.
NewUser is offline   Reply With Quote
Old 2008-05-27, 10:43   #17 (permalink)
Portal Member
 
Join Date: Sep 2006
Posts: 230
Thanks: 2
Thanked 2 Times in 2 Posts

Country:


Default

any news for this nice plugin?
Hi.
massimo
mamachan is offline   Reply With Quote
Old 2008-05-31, 17:48   #18 (permalink)
Portal Member
 
Join Date: Oct 2006
Age: 39
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I can't wait to install the plugin.

I've been wanting to monitor my temps. Tried to install MBM, but my mobo is not supported (to new).

Like all of you, I want to make my HTPC as silent as possible. Because of that, some parts are fanless and most fans have reduce voltage.

In such an environment, monitoring temps is critical. Having a plugin tan can repport realtime temps is nice and important.

I'm using LCD Smartie to display info on the lcd panel of my Ahanix case. It would have been nice to display Temps on the case lcd but again MBM most be install / enable (my Asus P5DL2 is not supported).

As soon as I get a chance to install it I'll report back.

«Regards.
PC_Pal68 is offline   Reply With Quote
Old 2008-07-11, 11:39   #19 (permalink)
Portal Member
 
Join Date: Feb 2008
Posts: 46
Thanks: 4
Thanked 4 Times in 4 Posts


Default

I agree, I have an Antec Fusion. During a movie it shows the movie time which is ok, but it would be great to have this toggle between movie time and case temps. Anyone think this is possible?
digitalfm is offline   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 On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://forum.team-mediaportal.com/plugins-47/fanatic-monitor-37406/
Posted By For Type Date
MediaPortal - Mediacenter - - FANatic Monitor This thread Refback 2008-07-24 19:57

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 20:09.


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