Page 1 of 6 123456 LastLast
Results 1 to 10 of 60

Thread: PowerMon plugin - for laptop carpcs

  1. #1
    Low Bitrate festy's Avatar
    Join Date
    Jun 2006
    Location
    Sydney, OZ
    Posts
    109

    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 Attached Files

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  3. #3
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    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

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  5. #5
    Maximum Bitrate jonessc's Avatar
    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?

  6. #6
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    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 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

  7. #7
    Maximum Bitrate jonessc's Avatar
    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!

  8. #8
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    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 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

  9. #9
    "Speaker of the Truth" veedubya's Avatar
    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.

  10. #10
    FLAC
    Join Date
    Jun 2003
    Location
    Memphis - TN
    Posts
    1,272
    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.

Page 1 of 6 123456 LastLast

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •