Hi, I got this message as error:
XML: The returned XML does not match the expected schema. (code: PE233) -- JSON: The returned JSON does not match the expected structure ('0.1055' is not a valid integer value). (code: PE231)
That is the entire output:
{
"prtg": {
"result": [
{
"channel": "LastBackup",
"Value": "0.1064"
},
{
"channel": "LastStatus",
"Value": "2"
}
]
}
}
If I round the first value to "0" the custom sensor works. But I need 3 decimal places to measure the changes. How can I work with decimal numbers?
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Hi there,
If you want to use float values, you will need to define this for each channel. This can be done by adding following after the line with you value:
to your JSON output. You may also take a look at our manual about Custom Sensors to get more detailed information about the output.
Kind regards
Felix Wiesneth - Team Tech Support
Oct, 2021 - Permalink