<div dir="ltr"><div class="gmail_default" style="font-size:small">> If you don't have a machine that can run nut as part of the always on,<br>> then your RPI0W approach makes a lot of sense.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is definitely my scenario.</div><div class="gmail_default" style="font-size:small">No other intelligence is involved so the Rpi was one-stop-shopping.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I had thought about an Rpi Pico, but again, it would not have been as straight-forward to easily run NUT. I had NUT running within maybe a half hour on the Pi, and talking to the NAS.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I can see and appreciate your passion here. I have to laugh because I would feel like I was setting up an entire enterprise infrastructure just to protect my scrawny little NAS from the occasional power spike !! If you have that infrastructure already (for whatever reason) then it is just a small tweak to incorporate something new like this.</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 20, 2023 at 1:55 PM Greg Troxel <<a href="mailto:gdt@lexort.com" target="_blank">gdt@lexort.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Tom via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a>> writes:<br>
<br>
>>That makes sense. So you'll have input voltage, output voltage, and<br>
>>output current I would guess. You might consider a nodemcu (ESP8266)<br>
>>publishing via MQTT to reduce power and use of unobtainium.<br>
><br>
> Yes, that is exactly what I was planning to instrument. Maybe battery<br>
> voltage too if I can access it. I thought it might be useful to be able to<br>
> see the open circuit battery voltage while charging, I dunno.<br>
<br>
Actually, given that the output is a DC-DC converter, you really will<br>
want to have some way to measure battery voltage so you can get<br>
SOC/runtime. I would suggest writing to their support and tell them<br>
what you want. From the site, they have higher than usual odds of being<br>
cooperative.<br>
<br>
> I'll look into this. I have no experience with nodemcu's, and never heard<br>
> of MQTT until your message, but I am always willing to learn<br>
> something new. Has NUT been deployed on a nodemcu? It looks like these do<br>
> not run traditional operating systems?<br>
<br>
This would not run NUT or unix -- it's an arduino-class CPU. I was<br>
assuming you have another computer on that will and the RPI was just to<br>
drive the i2c.<br>
<br>
Basically:<br>
<br>
ESP8266: very small/low-power/cheap ($7?) arduino-ish dev board with<br>
wifi and GPIO/i2c/etc.<br>
<br>
nodemcu: software that lets you write in lua for the esp8266/esp32.<br>
Or you can write raw arduino code.<br>
<br>
MQTT: message bus for IOT where you have a broker and then some device<br>
writes values to a topic. This lets you decouple the IO and the<br>
processing.<br>
<br>
I have a python program that watches nut on a system and publishes a<br>
json dictionary to an MQTT topic. I have a remote Home Assistant that<br>
ingests this and does display/logging/alerting.<br>
<br>
<br>
So basically I am suggesting making a UPS that interfaces via MQTT and<br>
an MQTT driver. A lot more work that what you are proposing; I am<br>
thinking the long game, which is not necessarily what you want to or<br>
should do -- but it's what I do....<br>
<br>
<br>
If you don't have a machine that can run nut as part of the always on,<br>
then your RPI0W approach makes a lot of sense.<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>