SysInfo is now a "measure" instead of a "plugin".
Change:
Code: Select all
[SomeMeasure]
Measure=Plugin
Plugin=SysInfo
Code: Select all
[SomeMeasure]
Measure=SysInfo
We consolidated a few of the network functions into a new file called NetworkUtil in the Common project. This allowed for SysInfo and the NET measures to share the same functions instead of duplicating things.
First, for interface adapter types, SysInfoData will now reference the interface index (or "ifindex") instead of the "position" of the adapter array returned from Windows. This "ifindex" is now logged when Rainmeter first starts when using Debug mode.
Second, for the interface adapter types, the default value for SysInfoData is now Best. Also, negative values will default to Best as well.
The SysInfoData values for network interfaces are indexed starting at one (1) not zero (0). Any measure that is currently set to SysInfoData=0 will automatically default to Best.
Third, all the values are now retrieved in the "Update" function, instead of some of the string values that were retrieved in "GetString". This will help with performance, however, if skins took advantage of this, they may not work they way they used to. I don't see this as a BWC issue really, but more of a performance fix.
Fourth, SysInfoType=DOMAINWORKGROUP has been changed to SysInfoType=DOMAIN_WORKGROUP for consistency. The old version is now deprecated, but still works.
New Types:
We added a few new types.
- INTERNET_CONNECTIVITY_V4 (Number value) - Tests specifically for IPV4 internet connectivity. 1 for connected, -1 for not connected.
Space - INTERNET_CONNECTIVITY_V6 (Number value) - Tests specifically for IPV6 internet connectivity. 1 for connected, -1 for not connected.
Space - LAN_CONNECTIVITY_V4 (Number value) - Tests specifically for IPV4 local lan connectivity. 1 for connected, -1 for not connected.
Space - LAN_CONNECTIVITY_V6 (Number value) - Tests specifically for IPV6 local lan connectivity. Not super useful...yet. 1 for connected, -1 for not connected.
Space - GATEWAY_ADDRESS_V4 (Number value) - Returns the gateway / router IPv4 IP address.
Space - GATEWAY_ADDRESS_V6 (Number value) - Returns the gateway / router IPv6 IP address.
Space - ADAPTER_STATE (Number and String values) - Gets the "media connected state" of the adapter. This works for physical and non-physical adapters. The number value will return 1 for connected, and -1 for disconnected. The string value will return Connected or Disconnected. Any other state returns 0 and Unknown.
MS Docs: https://docs.microsoft.com/en-us/windows/win32/api/ifdef/ne-ifdef-net_if_media_connect_state
Space - ADAPTER_STATUS (Number and String values) - Gets the operational status of the adapter. This works for physical and non-physical adapters. The values returned are:
- Number: -3 String: Not Present
- Number: -2 String: Lower Layer Down
- Number: -1 String: Down
- Number: 0 String: Unknown
- Number: 1 String: Up
- Number: 2 String: Dormant
- Number: 3 String: Testing
MS docs: https://docs.microsoft.com/en-us/windows/win32/api/ifdef/ne-ifdef-if_oper_status
Space - MAC_ADDRESS (String value) - Gets the physical MAC address of the adapter. Not all adapters will have addresses.