Hi, we are returning a xml result as a custom sensor. The result looks ike this: <?xml version="1.0" encoding="Windows-1252"?> <prtg> <result> <Channel>Duration</Channel> <Float>1</Float> <DecimalMode>2</DecimalMode> <Value>12,565</Value> <Unit>TimeSeconds</Unit> </result> </prtg> But the result is not shown as "sek.", only as floating. How to show the result as "12,57 Sek."?
Custom Sensors Result with Unit and Decimal
Modified on 2025-06-10 15:16:39 +0200
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Hello,
"float" overwrites the unit here.
As alternative you can use a custom unit string, but this means that no automatic conversion to hours etc.
Dec, 2020 - Permalink