Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner > RR Plugins > RR Released Plugins


Reply
 
Share Thread Tools Display Modes
Old 08-29-2006, 09:11 PM   #1
Low Bitrate
 
festy's Avatar
 
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
festy is on a distinguished road
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:
Code:
X,Powermon

to menu.skin. Don't forget to regsvr32 powermon.dll first.
Attached Files
File Type: zip powermon.zip (30.9 KB, 92 views)

Last edited by festy; 01-06-2009 at 08:27 PM..
festy is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 08-29-2006, 10:09 PM   #2
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,019
guino will become famous soon enoughguino will become famous soon enough
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."
guino is offline   Reply With Quote
Old 08-30-2006, 11:55 PM   #3
The Last Good Gremlin
 
GizmoQ's Avatar
 
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
GizmoQ has a spectacular aura aboutGizmoQ has a spectacular aura about
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
GizmoQ is offline   Reply With Quote
Old 08-31-2006, 12:45 AM   #4
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,019
guino will become famous soon enoughguino will become famous soon enough
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."
guino is offline   Reply With Quote
Old 01-28-2007, 03:28 PM   #5
Maximum Bitrate
 
jonessc's Avatar
 
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
jonessc is an unknown quantity at this point
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?
jonessc is offline   Reply With Quote
Old 01-28-2007, 05:53 PM   #6
The Last Good Gremlin
 
GizmoQ's Avatar
 
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
GizmoQ has a spectacular aura aboutGizmoQ has a spectacular aura about
Quote: Originally Posted by jonessc View Post
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..
GizmoQ is offline   Reply With Quote
Old 01-29-2007, 05:10 PM   #7
Maximum Bitrate
 
jonessc's Avatar
 
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
jonessc is an unknown quantity at this point
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!
jonessc is offline   Reply With Quote
Old 01-30-2007, 12:40 AM   #8
The Last Good Gremlin
 
GizmoQ's Avatar
 
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
GizmoQ has a spectacular aura aboutGizmoQ has a spectacular aura about
Quote: Originally Posted by jonessc View Post
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
GizmoQ is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 05-03-2007, 09:47 AM   #9
"Speaker of the Truth"
 
veedubya's Avatar
 
Join Date: Nov 2001
Posts: 265
veedubya is on a distinguished road
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.
veedubya is offline   Reply With Quote
Old 06-01-2007, 12:06 PM   #10
FLAC
 
Custommx3's Avatar
 
Join Date: Jun 2003
Location: Memphis - TN
Posts: 1,195
Custommx3
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..
Custommx3 is offline   Reply With Quote
Old 07-20-2008, 05:37 PM   #11
Low Bitrate
 
festy's Avatar
 
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
festy is on a distinguished road
New version up - see post #1
festy is offline   Reply With Quote
Old 07-20-2008, 09:05 PM   #12
Maximum Bitrate
 
jonessc's Avatar
 
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
jonessc is an unknown quantity at this point
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...
jonessc is offline   Reply With Quote
Old 07-21-2008, 03:01 AM   #13
Low Bitrate
 
festy's Avatar
 
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
festy is on a distinguished road
...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)
festy is offline   Reply With Quote
Old 07-23-2008, 01:48 PM   #14
Maximum Bitrate
 
jonessc's Avatar
 
Join Date: Nov 2006
Location: Wales, UK
Posts: 787
jonessc is an unknown quantity at this point
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...
jonessc is offline   Reply With Quote
Old 07-23-2008, 08:40 PM   #15
Low Bitrate
 
festy's Avatar
 
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
festy is on a distinguished road
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
Attached Images
  
festy is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Garo's Extra POI Plugin 1.0 beta 1 garo Map Monkey 63 01-18-2007 01:32 PM
XMLTraffic Plugin 307SW_NLD RR Plugins 20 09-14-2006 06:20 PM
Hello World plugin paulpv CF Plugins 5 06-08-2006 11:07 PM
How do I use the Base plugin sources ? guino RR FAQ 1 04-24-2006 04:43 PM
Winamp LCD display plugin / IRMan plugin - together? Jarrod Software & Software Development 9 06-03-2002 06:39 AM



All times are GMT -5. The time now is 02:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
"VaultWiki" powered by VaultWiki v2.5.2.
Copyright © 2008 - 2009, Cracked Egg Studios.Ad Management by RedTyger
Message Board Statistics