BOINC Plugin Help
Sensors:
- CPU Time:
- Percentage:
- Result Name:
- Current Completed:
- Current Total:
- Host Total Credit:
- Host Expected Average Credit:
- Host Create Time:
- User Total Credit:
- User Expected Average Credit:
- User Create Time:
- Project Name:
- User Name:
- Team Name:
- Host ID:
- Scheduler URL:
- Master URL:
- Expected Average CPU:
- Expected Average Mod Time:
- Last Update:
- Active Project Name:
Parameters:
Default Parameters:
- Filename: The location of client_state.xml. Default value is C:\Program Files\BOINC\client_state.xml.
- ProjectNumber: Which project to get the data for. (1 based index). Default value is 1.
- SlotNumber: If you have multiple CPU's choose which slot (or CPU) is returned. (1 based index). Default value is 1.
Optional Parameters:
- Decimal: The number of decimal places to return. Default value is 2.
- FormatString: How to format the string. Default value is %dd %h:%m for CPU time or %X %x for dates.
Notes:
Should now work with special characters, but will break if the client_state.xml file already contains an xml declaration line at the top.
For CPU time, the following formatters apply:
%d
Days
%h
Hours
%m
Minutes
If there is a day value, then the Hours is formatted with a leading zero, otherwise, there is no leading zero.
For date format strings, the following are valid.
%a
Abbreviated weekday name
%A
Full weekday name
%b
Abbreviated month name
%B
Full month name
%c
Date and time representation appropriate for locale
%d
Day of month as decimal number (01 – 31)
%H
Hour in 24-hour format (00 – 23)
%I
Hour in 12-hour format (01 – 12)
%j
Day of year as decimal number (001 – 366)
%m
Month as decimal number (01 – 12)
%M
Minute as decimal number (00 – 59)
%p
Current locale's A.M./P.M. indicator for 12-hour clock
%S
Second as decimal number (00 – 59)
%U
Week of year as decimal number, with Sunday as first day of week (00 – 53)
%w
Weekday as decimal number (0 – 6; Sunday is 0)
%W
Week of year as decimal number, with Monday as first day of week (00 – 53)
%x
Date representation for current locale
%X
Time representation for current locale
%y
Year without century, as decimal number (00 – 99)
%Y
Year with century, as decimal number
%z, %Z
Either the time-zone name or time zone abbreviation, depending on registry settings; no characters if time zone is unknown
%%
Percent sign
Note: Taken from the MSDN documentation for strftime.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strftime.2c_.wcsftime.asp
Changelog:
0117
* Fix - When the file isn't found, don't crash
* Fix - Returns -1 rather than -100 when error occurs.
* Fix - Returns N/A rather than a blank string when error occurs.
115:
* Fixed the decimal points when the locale settings meant that the decimal seperator is "," rather than "." so that it will now work with these and return decimal points.