Yes sir.... you can get the 32- and 64-bit plugins here from the .rmskin. Please note that the "BatChargeRate" measure type returns a positive number when charging and a negative number when discharging, so there is no need to have two measures to get the chargerate/discharge rate values as supplied by Windows. Documentation on the plugin is in the Resources folder.Yincognito wrote: ↑January 5th, 2019, 4:01 pm I'll further investigate the issue, but in the meantime, SilverAzide, could you provide a link to your 64-bit version of your plugin, to see if it works for me? Assuming, of course, that you didn't hardcode Battery Status (with spaces) in your DLL, so that it can work with BatteryStatus (no spaces) and the other no spaces names used to query these things in my case. By the way, I tried WMIC Path Win32_Battery Get BatteryStatus /Format:List and it doesn't have charge/discharge rates available to display - are these only available programatically?
Code: Select all
[MeasureBatteryInstance]
Measure=Plugin
Plugin=ActiveNet
Type=BatInstanceName
UpdateDivider=-1
[MeasureChargeRate]
Measure=Plugin
Plugin=ActiveNet
Type=BatChargeRate
Name=[MeasureBatteryInstance]
BTW, the Win32_Battery class does not include charge/discharge rates (I think that class is in the wrong "namespace"). To get those, you need to use:
wmic /Namespace:"\\root\wmi" Path BatteryStatus Get * /Format:list, or more specifically
wmic /Namespace:"\\root\wmi" Path BatteryStatus Get ChargeRate,DischargeRate /Format:list.
Or use Powershell:
gwmi -Class BatteryStatus -Namespace root\wmi, or
gwmi -Class BatteryStatus -Namespace root\wmi | Format-List -Property ChargeRate, DischargeRate