Announcement

Collapse
No announcement yet.

PowerMon plugin - for laptop carpcs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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."

    Comment


    • #3
      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

      Comment


      • #4
        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."

        Comment


        • #5
          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?
          CarPuter Progress:
          Planning:-----> [||||||||||] 100%
          Hardware Buying:-> [||||||||||] 100%
          Software:-----> [||||||||||] 100%
          Installing:-----> [||||||||||] 100%
          Current Project= Making skins in photoshop...

          Comment


          • #6
            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

            Comment


            • #7
              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!
              CarPuter Progress:
              Planning:-----> [||||||||||] 100%
              Hardware Buying:-> [||||||||||] 100%
              Software:-----> [||||||||||] 100%
              Installing:-----> [||||||||||] 100%
              Current Project= Making skins in photoshop...

              Comment


              • #8
                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

                Comment


                • #9
                  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.

                  Comment


                  • #10
                    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.

                    Comment


                    • #11
                      New version up - see post #1

                      Comment


                      • #12
                        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...

                        Comment


                        • #13
                          ...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)

                          Comment


                          • #14
                            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...

                            Comment


                            • #15
                              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 Files

                              Comment

                              Working...
                              X