RPi-Reporter-MQTT2HA-Daemon icon indicating copy to clipboard operation
RPi-Reporter-MQTT2HA-Daemon copied to clipboard

Can I use this on my PiKVM OS?

Open thijselblaso opened this issue 3 years ago • 2 comments

Hi, how can I use this on my PiKVM? PiKVM OS is based on Arch Linux ARM. I use PiKVM on rpi zero w.

I tried to install RPi reporter on it but with no success. Maybe I use the wrong commands?

thijselblaso avatar Jan 13 '22 12:01 thijselblaso

@thijselblaso I can't really say. This does work on Arch Linux (we have users with working installs.)

I don't have any such hardware to do my own testing so I can't help there.

I'm trying to figure out how I can help. Let's start by you telling me what you are seeing? I think you are saying you have install problems. What is telling you this? What steps are failing?

ironsheep avatar Jan 26 '22 07:01 ironsheep

EDIT: when I use -Syu instead of -S I was able to install all the packages but when I try to do a test run I get the following error:

[2022-02-02 00:19:03] MQTT connection error. Please check your settings in the configuration file "config.ini"

I use the same config as all the other pi's that run successfully. This is my config.ini:


# Enable or Disable an endless execution loop (Default: true)
#enabled = true

# This script reports RPi values at a fixed interval in minutes [2-30], [Default: 5]
#interval_in_minutes = 5

# default domain to use when hostname -f doesn't return a proper fqdn
##fallback_domain = home

[MQTT]

# The hostname or IP address of the MQTT broker to connect to (Default: localhost)
# Also read from the MQTT_HOSTNAME environment variable
hostname = 192.168.1.67

# The TCP port the MQTT broker is listening on (Default: 1883)
# Also read from the MQTT_PORT environment variable
port = 1883

# Maximum period in seconds between ping messages to the broker. (Default: 60)
#keepalive = 60

# by default Home Assistant listens to the /homeassistant but it can be changed for a given installation
#  likewise, by default this script advertises on the same default topic. If you use a different
#  discovery prefix then specify yours here.  [default: homeassistant]
discovery_prefix = homeassistant

# NOTE: The MQTT topic used for this device is constructed as:
#  {base_topic}/{sensor_name}
#
# The MQTT base topic under which to publish the Raspberry Pi sensor data topics.
base_topic = raspberry_pi

# The MQTT name for this Raspberry Pi as a sensor
sensor_name = pikvm


# The MQTT broker authentification credentials (Default: no authentication)
# Will also read from MQTT_USERNAME and MQTT_PASSWORD environment variables
username = myusername
password = mypassword

# Enable TLS/SSL on the connection
#tls = false

# Path to CA Certificate file to verify host
#tls_ca_cert =

# Path to TLS client auth key file
#tls_keyfile =

# Path to TLS client auth certificate file
#tls_certfile =


^G Help         ^O Write Out    ^W Where Is     ^K Cut          ^T Execute      ^C Location     M-U Undo        M-A Set Mark    M-] To Bracket  M-Q Previous
^X Exit         ^R Read File    ^\ Replace      ^U Paste        ^J Justify      ^/ Go To Line   M-E Redo        M-6 Copy        ^Q Where Was    M-W Next```

thijselblaso avatar Jan 28 '22 22:01 thijselblaso