Comments (7)
Tried to install it on Ubuntu Server 22.10 (32-bit) instead of Pi OS Lite (64-bit), but i still can not add it to home-assistant.
Another question, is it possible to make the script install the new version 2.8.0 instead of the 2.7.4 that seems to be the latest one when "apt install nut"
from nutandrpi.
Ah.. My mistake.
When i chaged the ip to 205 Home-Assistant was able to connect.
Thanks for your help.
Maybe you find time and a way to upgrade to latest version in the future.
from nutandrpi.
Hey @mcfrojd
But when trying to connect with Windows NUT Client or when trying to add the server into Home-Assistant i dont seem to be able to connect.
I haven't tested this, but my hunch is you'll be able to get it working by adding a LISTEN
directive with the appropriate address and port to the /etc/upsd.conf.
The default config here gets the web server and SNMP going — which use port 80 and 161 (the snmp
in your netstat
output) — but doesn't modify the default LISTEN
settings for upsd
. The default upsd
port is 3493 and the default behavior is to listen on localhost
(which is happening based on your netstat
showing localhost:nut
).
Example LISTEN
directives below:
LISTEN 127.0.0.1 3493 # localhost IPv4
LISTEN 192.0.2.11 3493 # Another IPv4 address
After you make config changes you can reload upsd like this
upsd -c reload
If you're able to test it out and it works, let me know!
Another question, is it possible to make the script install the new version 2.8.0 instead of the 2.7.4 that seems to be the latest one when "apt install nut"
Good question! We could add something that installs from source code. I've kinda debated whether or not it makes sense to depend on the package managers or to go out and get specific versions of NUT and build from source. I expect that most of the popular OS repos will have 2.8.0 "soon" and the problem will solve itself, but I don't have a good feel for exactly how long "soon" is.
from nutandrpi.
Hello.
I added the lines:
LISTEN 127.0.0.1 3493
LISTEN 192.168.111.90 3493
LISTEN 192.168.111.25 3493
to the file /etc/nut/upsd.conf
Now the windows nut client gives these log lines:
[Id 5: 2022-11-28 17:01:49] Connection to Nut Host 192.168.111.205:3493 Failed: Value can not be null. Parametername: value
[Id 3: 2022-11-28 17:01:49] Disconnected from Nut Host
[Id 2: 2022-11-28 17:01:49] Connection to Nut Host 192.168.111.205:3493 Established
So at least it was able to connect a short while.
Home-Assistant can't connect still.
from nutandrpi.
@mcfrojd
Is the IP address of the PI 192.168.111.205
?
If so, use that in the LISTEN
directive
from nutandrpi.
Cool, thanks @mcfrojd!
I'll close this question and create a feature request for 2.8.0.
If you have other questions, just reply back. Thanks for using the project!
from nutandrpi.
Created #3 and closing this one.
from nutandrpi.
Related Issues (11)
- Update the docs on how to export the data to grafana. HOT 6
- Apache2 not installing (fix) HOT 3
- Play date with Klipper HOT 4
- Uninstall HOT 6
- Build from source/support 2.8.0
- Adding multiple UPSs with the script HOT 6
- Add option to enable remote upsd connections
- Fix references to tripplite.com and [email protected] to call out something else HOT 1
- Script is failing to install "snmp-mibs-downloader" on debian 11. HOT 7
- Accessing UPS info page results in "Error: can't open template file (upsstats.html)" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nutandrpi.