Very Nice![]()
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.Code:X,Powermon
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."
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 ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
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."
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 ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
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 ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
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.
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.
2011 Nissan Frontier SL
AMD X3 2.2 | M4-ATX | 16Gb SSD | 2GB DDR3-1333 | MSI GF615M-P33 MB
OBDPROS USB | BU-303 GPS l LILLIPUT TS | Car2PC adapter | XM Direct | USB Dual band N with custom mag-mount antenna.
Bookmarks