|
 |
|
08-29-2006, 09:11 PM
|
#1
|
|
Low Bitrate
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
|
PowerMon plugin - for laptop carpcs
Here's a simple little RRExtension plugin for reporting power information on laptop based carpcs. I wrote it because I was having issues with my charging system, and wanted to keep an eye on it from within RR.
PowerMon Extension Plugin for RoadRunner
========================================
PowerMon lets you monitor your laptop's power state through RoadRunner.
History
-------
0.4 07/01/09 slider images within a skin now take preference
0.3 21/07/08 Feature addition
0.2 21/07/08 2 years after 0.1 release with no updates 
added indicator, releasing source
0.1 08/06 Initial release
Commands provided:
------------------
* none
Labels provided:
----------------
powermon_battstate Charging/Discharging
powermon_powersrc Battery/External
powermon_battlevel High/Low/Critical/Charging/No battery
powermon_battpercent % of battery charge remaining
Indicators provided:
--------------------
powermon Returns true (indication that plugin is running)
powermon_gbattlevel Displays image from slider_n.gif , ie. 80% remaining displays slider_80.gif.
To use these labels in your skin, just add the line:
to menu.skin. Don't forget to regsvr32 powermon.dll first.
Last edited by festy; 01-06-2009 at 08:27 PM..
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
08-29-2006, 10:09 PM
|
#2
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,019
|
Very Nice
__________________
Ride Runner RR's Myspace
"Being happy is not about having what you want, it's about wanting what you have."
"The best things in life are always free - but that doesn't mean money can't buy you good things."
|
|
|
08-30-2006, 11:55 PM
|
#3
|
|
The Last Good Gremlin
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
|
Tried this today, works great! Except you didn't warn me to only put the "X,Powermon" in only the first skin (menu.skin in my case). If I put it on every skin that has the label codes in them the variable doubles and doubles and doubles, i.e., BATTPERCENT says "99%" the first time and the next screen says "99%99%" and the next time its "99%99%99%99%." Luckily, I removed all but one reference to the plugin and now it works perfectly.
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
|
|
|
08-31-2006, 12:45 AM
|
#4
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,019
|
I have to add a fail-safe to only load X plugins from menu.skin.
__________________
Ride Runner RR's Myspace
"Being happy is not about having what you want, it's about wanting what you have."
"The best things in life are always free - but that doesn't mean money can't buy you good things."
|
|
|
01-28-2007, 03:28 PM
|
#5
|
|
Maximum Bitrate
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
|
cant seem to get this one running... must be me
i have copyed the dll into c:\windows\system, and run regsvr32 powermon.dll in a command prompt and the message came back that the dll had been instaled sucessfully.
Edited the menu.skin and added the following (with and without brackets):
X,Powermon
BATTSTATE (Charging/Discharging)
POWERSRC (Battery/External)
BATTLEVEL (High/Low/Critical/Charging)
BATTPERCENT (x%)
for me nothing happens, any ideas?
|
|
|
01-28-2007, 05:53 PM
|
#6
|
|
The Last Good Gremlin
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
|
Quote: Originally Posted by jonessc 
cant seem to get this one running... must be me
i have copyed the dll into c:\windows\system, and run regsvr32 powermon.dll in a command prompt and the message came back that the dll had been instaled sucessfully.
Edited the menu.skin and added the following (with and without brackets):
X,Powermon
BATTSTATE (Charging/Discharging)
POWERSRC (Battery/External)
BATTLEVEL (High/Low/Critical/Charging)
BATTPERCENT (x%)
for me nothing happens, any ideas?
TRY THIS:
Code:
X,Powermon
L24,580,185,105,28,192,192,192,18,"GE Drover","=STATE","LEFT"
L25,688,186,90,28,255,127,000,18,"GE Drover","BATTSTATE","LEFT"
L26,581,215,105,28,192,192,192,18,"GE Drover","=SOURCE",
L27,689,214,90,28,255,127,000,18,"GE Drover","POWERSRC",""
L28,580,301,105,28,192,192,192,18,"GE Drover","=BATT %",
L28,582,275,105,28,192,192,192,18,"GE Drover","=BATTLEVEL",
L29,690,302,90,28,255,127,000,18,"GE Drover","BATTPERCENT",
L29,689,276,90,28,255,127,000,18,"GE Drover","BATTLEVEL",
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
Last edited by GizmoQ; 01-28-2007 at 05:56 PM..
|
|
|
01-29-2007, 05:10 PM
|
#7
|
|
Maximum Bitrate
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
|
thats fantatic, works a treat, thats some clever thinking!
can the similar principle be incorporated for adding the status of a wireless network, ie reception as displayed by windows? that would be handy!
thank you for the help!
|
|
|
01-30-2007, 12:40 AM
|
#8
|
|
The Last Good Gremlin
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
|
Quote: Originally Posted by jonessc 
thats fantatic, works a treat, thats some clever thinking!
can the similar principle be incorporated for adding the status of a wireless network, ie reception as displayed by windows? that would be handy!
thank you for the help!
If you're talking about WiFi, there's already an indicator for Online status built into RR. Some users also incorporate a program that's more accurate. As far as signal strength goes - WHO CARES - unless you're in a WiFi rally race.
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
05-03-2007, 09:47 AM
|
#9
|
|
"Speaker of the Truth"
Join Date: Nov 2001
Posts: 265
|
Any idea why i am only showing BATTERYLEVE and not BATTERYLEVEL
BTW nice plugin - i have BATT **% incorporated on all my main screens so i can watch my latop battery and switch to car battery plug with the flip of a switch
__________________
"Geeks dont need girlfriends we can ping ourselves"
Sony Vaio 2Ghz 40G HHD, Routis 2004 GPS, 7" VGA TS Lilliput, BackUp Camera running RoadRunner with Simplistique Skin.
|
|
|
06-01-2007, 12:06 PM
|
#10
|
|
FLAC
Join Date: Jun 2003
Location: Memphis - TN
Posts: 1,195
|
Maybe your textbox isnt big enough and its being cut off.
BTW I was thinking about something like this. When I take outmy carPC to do updates I usually use my laptop.
__________________
2007 Mazdaspeed 6
Last edited by Custommx3; 06-01-2007 at 01:42 PM..
|
|
|
07-20-2008, 05:37 PM
|
#11
|
|
Low Bitrate
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
|
New version up - see post #1
|
|
|
07-20-2008, 09:05 PM
|
#12
|
|
Maximum Bitrate
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
|
Very nice festy!
Glad to see some further development
__________________
CarPuter Progress:
Planning:-----> [||||||||||] 100%
Hardware Buying:-> [||||||||||] 100%
Software:-----> [||||||||||] 100%
Installing:-----> [||||||||||] 100%
Current Project= Making skins in photoshop...
|
|
|
07-21-2008, 03:01 AM
|
#13
|
|
Low Bitrate
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
|
...and another - incorporating external power source into the slider (shows 1 set of images for batt level when running from battery, a different set for when running from external power)
|
|
|
07-23-2008, 01:48 PM
|
#14
|
|
Maximum Bitrate
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
|
Festy.
Can you give an example of the code to use the new indicators on a skin?
__________________
CarPuter Progress:
Planning:-----> [||||||||||] 100%
Hardware Buying:-> [||||||||||] 100%
Software:-----> [||||||||||] 100%
Installing:-----> [||||||||||] 100%
Current Project= Making skins in photoshop...
|
|
|
07-23-2008, 08:40 PM
|
#15
|
|
Low Bitrate
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
|
An example -
Code:
L,135,216,200,35,255,255,255,16,"Verdana","=Power","LEFT"
L01,137,285,100,30,202,202,202,12,"Verdana","=Batt:","LEFT"
L01,136,253,100,30,202,202,202,12,"Verdana","=State:","LEFT"
I,316,286,35,19,"POWERMON_GBATTLEVEL"
L04,239,285,74,30,202,202,202,14,"Verdana","POWERMON_BATTPERCENT",
L04,239,253,123,30,202,202,202,14,"Verdana","POWERMON_BATTSTATE",
Just remember the images folder has to be in the same folder as powermon.dll
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:24 PM.
| |