Hi all!
I am using REST Custom sensor to get data in JSON format, using JSONPath.
I can't solve two problems:
- I need to get the device temperature. I get it in format "60 *C" (without quotes). How to "tell" prtg get only digits from this text, while performing http get and JSONPath?
- I need to collect device status info. It is like "On" or "Off". How can I interprete that? I think I need to equate On=0, and Off=1. Or there is better ways? If no, how can I do this using JSONPath?
Thank you very much!
Add comment