| Author |
Message |
Blomsterbob
Joined: 09 Jun 2009 Posts: 1
|
|
Jump to a new design when SysFan.Temps.5 is larger than 70 |
|
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.
- Fredrik
|
|
| Tue Jun 09, 2009 8:12 pm |
|
 |
spock
Site Admin

Joined: 17 Feb 2003 Posts: 4522 Location: Athens, Greece |
|
Hot |
|
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 |
 |
 |
JDogg
Joined: 23 Jun 2009 Posts: 2
|
|
|
|
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
 |
 |
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 .
|
|
| Tue Jun 23, 2009 12:15 pm |
|
 |
spock
Site Admin

Joined: 17 Feb 2003 Posts: 4522 Location: Athens, Greece |
|
C |
|
Just lose the quotation marks around true and false...
_________________ Live long and prosper... |
|
| Wed Jun 24, 2009 1:35 am |
 |
 |
JDogg
Joined: 23 Jun 2009 Posts: 2
|
|
|
| Wed Jun 24, 2009 6:37 am |
|
 |
spock
Site Admin

Joined: 17 Feb 2003 Posts: 4522 Location: Athens, Greece |
|
Custom |
|
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 |
 |
 |
sporb
Joined: 16 Oct 2007 Posts: 4
|
|
|
|
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 |
|
 |
spock
Site Admin

Joined: 17 Feb 2003 Posts: 4522 Location: Athens, Greece |
|
Custom |
|
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 |
 |
 |
|