Access to NUT fields/further rework options?
I am using an APC UPS with a "split phase" output -- 220 volts input, with two 120V outputs (L1-N-L2). This results in some extra data values, and also a complication because the total values nut reports (e.g., "output.current") is not correct -- they just pick up the value of the first phase.
So for nutcase, I would like to display those extra values so I can see the per-phase data, and I also need to do some math to get the total values So for example to get the total output power I need to do (output.L1-L2.voltage * output.L1.current) + (output.L2-L3.voltage * output.L2.current).
Is there a way to accomplish this with nutcase?
Thanks!
Hi John, that sounds interesting but a very specific use case. I would be interested in the data you are getting from the UPS, if you could attach a JSON file using the raw data method I’d like to have a look. For this kind of complex requirement I suggest using nutcase to provide data to a scraper such as Prometheus and then do the calculations and display using Grafana. That’s the tool for the job as it’s quite complex. Regards, Arthur
(Ô,Ô) ({::::}) =WW===- Sent by owl post
From: John Ackermann N8UR @.> Sent: Saturday, November 16, 2024 3:44:09 PM To: ArthurMitchell42/nutcase @.> Cc: Subscribed @.***> Subject: [ArthurMitchell42/nutcase] Access to NUT fields/further rework options? (Issue #68)
I am using an APC UPS with a "split phase" output -- 220 volts input, with two 120V outputs (L1-N-L2). This results in some extra data values, and also a complication because the total values nut reports (e.g., "output.current") is not correct -- they just pick up the value of the first phase.
So for nutcase, I would like to display those extra values so I can see the per-phase data, and I also need to do some math to get the total values So for example to get the total output power I need to do (output.L1-L2.voltage * output.L1.current) + (output.L2-L3.voltage * output.L2.current).
Is there a way to accomplish this with nutcase?
Thanks!
— Reply to this email directly, view it on GitHubhttps://github.com/ArthurMitchell42/nutcase/issues/68, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATTOABUHGTCAPUNDVXFBYD32A5R4TAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY3DINJWGE4DENA. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks, Arthur. That's kind of what i expected. I already have influxdb and telegraf sucking in the data and a pretty nice Grafana dashboard doing what I want (screenshot attached -- titles are tiny but gauges show available runtime, charge level, and load on each leg, while graphs show temperature, input voltage, output voltages, output currents, and output powers). I got to nutcase through wanting to set up a homepage widget for the UPS. This may be one rabbit hole too far...
Very nice dashboard, I’ve tried to get into Grafana but never had the time to master it. As I said, I’d be interested in the raw JSON capture just to understand what’s coming over from the UPS. I can’t promise I can do much with it though.
(Ô,Ô) ({::::}) =WW===- Sent by owl post
From: John Ackermann N8UR @.> Sent: Saturday, November 16, 2024 4:41:59 PM To: ArthurMitchell42/nutcase @.> Cc: Arthur Mitchell @.>; Comment @.> Subject: Re: [ArthurMitchell42/nutcase] Access to NUT fields/further rework options? (Issue #68)
Thanks, Arthur. That's kind of what i expected. I already have influxdb and telegraf sucking in the data and a pretty nice Grafana dashboard doing what I want (screenshot attached -- titles are tiny but gauges show available runtime, charge level, and load on each leg, while graphs show temperature, input voltage, output voltages, output currents, and output powers). I got to nutcase through wanting to set up a homepage widget for the UPS. This may be one rabbit hole too far... grafana-ups.png (view on web)https://github.com/user-attachments/assets/ff8d1870-e384-478d-99b2-99600452e458
— Reply to this email directly, view it on GitHubhttps://github.com/ArthurMitchell42/nutcase/issues/68#issuecomment-2480648021, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATTOABTDMQOTO4XS6JVVPGT2A5YVPAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGY2DQMBSGE. You are receiving this because you commented.Message ID: @.***>
I'd be happy to send you some raw data; I'm not sure just where/how to grab the raw JSON. Give me a pointer, and I'll capture some.
Most of the hard work in Grafana seems to be done in building the query to the database, here Influxdb v2 with their "flux" query language. I actually found it useful to get the basic query from the Influx GUI query builder, and then feed it into chatGPT for tweaking to do things like math functions.
Thanks, John
On 11/16/24 11:46, ArthurMitchell42 wrote:
Very nice dashboard, I’ve tried to get into Grafana but never had the time to master it. As I said, I’d be interested in the raw JSON capture just to understand what’s coming over from the UPS. I can’t promise I can do much with it though.
(Ô,Ô) ({::::}) =WW===- Sent by owl post
From: John Ackermann N8UR @.> Sent: Saturday, November 16, 2024 4:41:59 PM To: ArthurMitchell42/nutcase @.> Cc: Arthur Mitchell @.>; Comment @.> Subject: Re: [ArthurMitchell42/nutcase] Access to NUT fields/further rework options? (Issue #68)
Thanks, Arthur. That's kind of what i expected. I already have influxdb and telegraf sucking in the data and a pretty nice Grafana dashboard doing what I want (screenshot attached -- titles are tiny but gauges show available runtime, charge level, and load on each leg, while graphs show temperature, input voltage, output voltages, output currents, and output powers). I got to nutcase through wanting to set up a homepage widget for the UPS. This may be one rabbit hole too far... grafana-ups.png (view on web)https://github.com/user-attachments/assets/ff8d1870-e384-478d-99b2-99600452e458
— Reply to this email directly, view it on GitHubhttps://github.com/ArthurMitchell42/nutcase/issues/68#issuecomment-2480648021, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATTOABTDMQOTO4XS6JVVPGT2A5YVPAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGY2DQMBSGE. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/ArthurMitchell42/nutcase/issues/68#issuecomment-2480660026, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNCPP3SKPRBAJ7MXPEQPFD2A5ZGTAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGY3DAMBSGY. You are receiving this because you authored the thread.Message ID: @.***>
You just open the nutcase the way you do for Prometheus but change the endpoint from metrics to raw. The other way is to open it via the GUI and select download raw json at the menu bar
(Ô,Ô) ({::::}) =WW===- Sent by owl post
From: John Ackermann N8UR @.> Sent: Saturday, November 16, 2024 7:34:17 PM To: ArthurMitchell42/nutcase @.> Cc: Arthur Mitchell @.>; Comment @.> Subject: Re: [ArthurMitchell42/nutcase] Access to NUT fields/further rework options? (Issue #68)
I'd be happy to send you some raw data; I'm not sure just where/how to grab the raw JSON. Give me a pointer, and I'll capture some.
Most of the hard work in Grafana seems to be done in building the query to the database, here Influxdb v2 with their "flux" query language. I actually found it useful to get the basic query from the Influx GUI query builder, and then feed it into chatGPT for tweaking to do things like math functions.
Thanks, John
On 11/16/24 11:46, ArthurMitchell42 wrote:
Very nice dashboard, I’ve tried to get into Grafana but never had the time to master it. As I said, I’d be interested in the raw JSON capture just to understand what’s coming over from the UPS. I can’t promise I can do much with it though.
(Ô,Ô) ({::::}) =WW===- Sent by owl post
From: John Ackermann N8UR @.> Sent: Saturday, November 16, 2024 4:41:59 PM To: ArthurMitchell42/nutcase @.> Cc: Arthur Mitchell @.>; Comment @.> Subject: Re: [ArthurMitchell42/nutcase] Access to NUT fields/further rework options? (Issue #68)
Thanks, Arthur. That's kind of what i expected. I already have influxdb and telegraf sucking in the data and a pretty nice Grafana dashboard doing what I want (screenshot attached -- titles are tiny but gauges show available runtime, charge level, and load on each leg, while graphs show temperature, input voltage, output voltages, output currents, and output powers). I got to nutcase through wanting to set up a homepage widget for the UPS. This may be one rabbit hole too far... grafana-ups.png (view on web)https://github.com/user-attachments/assets/ff8d1870-e384-478d-99b2-99600452e458
— Reply to this email directly, view it on GitHubhttps://github.com/ArthurMitchell42/nutcase/issues/68#issuecomment-2480648021, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATTOABTDMQOTO4XS6JVVPGT2A5YVPAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGY2DQMBSGE. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/ArthurMitchell42/nutcase/issues/68#issuecomment-2480660026, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNCPP3SKPRBAJ7MXPEQPFD2A5ZGTAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGY3DAMBSGY. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHubhttps://github.com/ArthurMitchell42/nutcase/issues/68#issuecomment-2480752029, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATTOABVFGRU2O45BLLKPDMD2A6M3TAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQG42TEMBSHE. You are receiving this because you commented.Message ID: @.***>
Here's the raw json file. For some reason, going to URL/raw doesn't return anything. apc-5000_raw.json
Thank you
(Ô,Ô) ({::::}) =WW===- Sent by owl post
From: John Ackermann N8UR @.> Sent: Saturday, November 16, 2024 8:15:22 PM To: ArthurMitchell42/nutcase @.> Cc: Arthur Mitchell @.>; Comment @.> Subject: Re: [ArthurMitchell42/nutcase] Access to NUT fields/further rework options? (Issue #68)
Here's the raw json file. For some reason, going to URL/raw doesn't return anything. apc-5000_raw.jsonhttps://github.com/user-attachments/files/17787823/apc-5000_raw.json
— Reply to this email directly, view it on GitHubhttps://github.com/ArthurMitchell42/nutcase/issues/68#issuecomment-2480777011, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATTOABX7O7DSRKLQFFHQE7T2A6RVVAVCNFSM6AAAAABR46A77OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQG43TOMBRGE. You are receiving this because you commented.Message ID: @.***>