LcdStudio.Com Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Jump to a new design when SysFan.Temps.5 is larger than 70

 
Reply to topic    LcdStudio.Com Forum Index » Designs View previous topic
View next topic
Jump to a new design when SysFan.Temps.5 is larger than 70
Author Message
Blomsterbob



Joined: 09 Jun 2009
Posts: 1

Post Jump to a new design when SysFan.Temps.5 is larger than 70 Reply with quote
Hi!

I'm trying to make myself a personal monitor-app. Only one question about the playlist-configuration:

Is it possible to make the app jump to another design when the CPU-temperature reaches 70 degrees Celsius? And in that case; how? I want a warning-message to pop up if the CPU is dangerously hot. Very Happy

- Fredrik
Tue Jun 09, 2009 8:12 pm View user's profile Send private message
spock
Site Admin


Joined: 17 Feb 2003
Posts: 4526
Location: Athens, Greece

Post Hot Reply with quote
First of all, this has nothing to do with the SDK, that's why I moved the topic into 'Designs'.
All you have to do is to create a custom variable, boolean, that will go true when the CPU temperature data item is equal to or over 70º and false when not. Then, you can go to your playlist and add an alert for that particular variable, which will show the design you want.
Easy, really.

_________________
Live long and prosper...
Wed Jun 10, 2009 4:00 pm View user's profile Send private message Send e-mail Visit poster's website ICQ Number
JDogg



Joined: 23 Jun 2009
Posts: 2

Post Reply with quote
Could you go into more detail, when I tried to do this it kept switching to my "danger" design every 5 seconds.
EDIT:I'll go into more detail
Code:
if (((Double)GetData("SysFan.Temps.2")) >= 95)
return "true";
else
return "false";

That's the code I use, I have another one which is the same but for the GPU temp, I have set up an alert in my playlist, regular rotation is Temps.xds runtime is 5 active when=always. Alerts, both my alerts set up, runtime 5 active when cputemp/gputemp changes to true. I changed the cputemp to >=15 for testing (It's at 29), but the alert wont pop up Sad.
Tue Jun 23, 2009 12:15 pm View user's profile Send private message
spock
Site Admin


Joined: 17 Feb 2003
Posts: 4526
Location: Athens, Greece

Post C Reply with quote
Just lose the quotation marks around true and false...

_________________
Live long and prosper...
Wed Jun 24, 2009 1:35 am View user's profile Send private message Send e-mail Visit poster's website ICQ Number
JDogg



Joined: 23 Jun 2009
Posts: 2

Post Reply with quote
It isn't popping up. http://img26.imageshack.us/gal.php?g=75356276.jpg
Wed Jun 24, 2009 6:37 am View user's profile Send private message
spock
Site Admin


Joined: 17 Feb 2003
Posts: 4526
Location: Athens, Greece

Post Custom Reply with quote
Mate, have you noticed what the alert dialogue clearly states? Like "active when 'cputemp' changes to true"?
If you still don't get it, the value has to change! In order to test it, just put a value a bit higher than idle, run a CPU benchmark and wait for the temperature to rise.

_________________
Live long and prosper...
Wed Jun 24, 2009 8:31 am View user's profile Send private message Send e-mail Visit poster's website ICQ Number
sporb



Joined: 16 Oct 2007
Posts: 4

Post Reply with quote
Ive been trying to do this myself with mixed success; it works till i reboot. It would appear that LCDStudio forgets all my custom variables when i reboot. Im probably missing somthing really stupid here but for the life of me i cant figure out what. Ive searched the site but i cant seem to find anything.
Thu Aug 27, 2009 1:36 am View user's profile Send private message
spock
Site Admin


Joined: 17 Feb 2003
Posts: 4526
Location: Athens, Greece

Post Custom Reply with quote
You haven't searched enough. We've talked about this a trillion times. LCDstudio saves settings and custom variables NOT on reboot, but on EXIT. That is, you have to right-click its icon in the system tray and select 'exit'.

_________________
Live long and prosper...
Thu Aug 27, 2009 9:24 am View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Display posts from previous:    
Reply to topic    LcdStudio.Com Forum Index » Designs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.