-
I have NUTCase configured for three UPS units. They display correctly in NUTCase, but when I try to add them to homepage I don't get anything. I have noticed that if I look at the raw JSON data for any of the three, I always see the data for all three units. Is that correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi there, yes that sounds like expected behaviour. You can display the data from one ups, or indeed a combination of variables from any of the three devices, by specifying the JSON path of the values you want to display, taking care to use the correct ups device name each time. If you want to display data from each ups on a number of custom API widgets then you would need to specify multiple hits on nutcase with the same target. Homepage has a glitch in that each widget needs a different name or else the same data will be repeated for each one, watch for that one! |
Beta Was this translation helpful? Give feedback.
OK, I think I have it now. So my issue was with my services.yaml file.
I had the entry under field as "ups:" and it should have been the NAME of the ups unit!!
It SHOULD have been as follows:
href: http://x.x.x.x:9995?addr=y.y.y.y&dev=APC-1&mode=nut
description: APC-1
icon: http://x.x.x.x:9995/static/favicon.ico
widget:
type: customapi
url: http://x.x.x.x:9995/json?target=x.x.x.x:3493&dev=APC-1
refreshInterval: 60000 # In milliseconds, set to ~60s
method: GET
mappings:
- field:
APC-1: battery.runtime
label: Runtime