If the user has Loxone CloudDNS set in the Miniserver widget,
get_miniservers always resolves
PortHttps, and all other fields depending to them, so your plugin does not require to do own decisions "Is CloudDNS or not".
Changes in general.cfg
IPADDRESS: The field now may contain: An IPv4 address (like before), an IPv6 address (new) or a hostname (like before) that may resolve to an IPv4 or IPv6 (new) address by DNS.
IPV6FORMAT: The lib returns
1, if IPADDRESS is an IPv6 format. It does not check if a hostname will resolve to an IPv6 address! In some libraries that requires a
host:portconnection string, an IPv6 address must be escaped in [ square brackets ], e.g. "
[ipv6]:port". Use the IPV6FORMAT flag to easier identify if you require square brackets for the
- FULLURI: This is the most exciting new implementation in LoxBerry 2.0.2: For http/https calls to the Miniserver, this property always returns the correct full URI to the Miniserver, including escaped credentials, with the correct transport (http or https) and correct IPAddress format (IPv4 or IPv6).
FULLURIis empty if CloudDNS is enabled, as a config file cannot resolve an URI on-the-fly
PREFERHTTPS: This flag is 1, if the user has set "Prefer HTTPS" in the Miniserver widget. For http connections, this flag indicates that your plugin should consider the PORTHTTPS and
- PORTHTTPS This is the https port the user entered, or CloudDNS returned. If PREFERHTTPS is 1, use this port instead of
TRANSPORT: This property returns "
http" if "Prefer HTTPS" is disabled, and "
https" if "Prefer HTTPS" is enabled. You directly can use the TRANSPORT property to build your URI.
Pre-Announcement for deprecation