frtz13 / UPSPlus_mqtt

GNU General Public License v3.0
19 stars 6 forks source link

PIP or PIP3? #1

Closed ArjenR49 closed 3 years ago

ArjenR49 commented 3 years ago

Your package looks great. I'm going to install it today instead of (or next to) what I cobbled together from the GeeekPi scripts based on my own preferences and driven by the persistent problems I have experienced with the i2c bus of the UPS. I have never learned any OOP, or what is it called today, and it has always felt very complicated. At last I have what looks like a proper example to learn from. Thanks! Even FAN control of a two wire FAN (Ice Tower). Time to get the soldering iron out and find that MOSFET.

I have a question: shouldn't pip be pip3 nowadays?

frtz13 commented 3 years ago

you are right about pip3. if you don't have a corresponding MOSFET in your junk box, a simple NPN transistor (2N2222, BC137 or whatever) and a 680 Ohm resistor from GPIO pin to the base do the job here.