fix broken anchors in README.md (#175)

This commit is contained in:
Masoko
2024-12-07 12:10:01 +02:00
committed by GitHub
parent 3cf041f9f2
commit d69ec4fe8d
2 changed files with 34 additions and 27 deletions

View File

@@ -29,18 +29,19 @@ The easiest way to track your Raspberry Pi or Ubuntu computer system health and
- [Installation](#installation)
- [Automated](#automated)
- [Manual](#manual)
- [Configuration](#configuration)
- [External Sensors](#external-sensors)
- [Test Raspberry Pi MQTT Monitor](#test-raspberry-pi-mqtt-monitor)
- [Schedule Raspberry Pi MQTT Monitor execution as a service](#schedule-raspberry-pi-mqtt-monitor-execution-as-a-service)
- [Schedule Raspberry Pi MQTT Monitor execution](#schedule-raspberry-pi-mqtt-monitor-execution)
- [How to update](#how-to-update)
- [How to update](https://github.com/hjelev/rpi-mqtt-monitor/wiki/How-to-update)
- [Configuration](https://github.com/hjelev/rpi-mqtt-monitor/wiki/Configuration)
- [External Sensors](https://github.com/hjelev/rpi-mqtt-monitor/wiki/External-Sensors)
- [Schedule Raspberry Pi MQTT Monitor execution as a service](https://github.com/hjelev/rpi-mqtt-monitor/wiki/Manual-Installation#schedule-raspberry-pi-mqtt-monitor-execution-as-a-service)
- [Schedule Raspberry Pi MQTT Monitor execution with a cron](https://github.com/hjelev/rpi-mqtt-monitor/wiki/Manual-Installation#schedule-raspberry-pi-mqtt-monitor-execution-with-a-cron)
- [Home Assistant Integration](#home-assistant-integration)
- [To Do](#to-do)
- [Feature request](#feature-request)
## What is new
* 2024-12-06: Output File by @pallago
* 2024-12-06: Allow overwriting of hostname from config by @sudhaus
* 2024-12-01: Support for Home Assistant API (no MQTT needed)
* 2024-11-06: External sensors by @pallago
* 2024-10-25: Apt updates sensor
@@ -115,7 +116,6 @@ Use '''rpi-mqtt-monitor --hass_wake''' to display the configuration for Home Ass
## To Do
- fix uptime sensor to use timestamp
- improve hass api integration
## Feature request

View File

@@ -2,6 +2,7 @@ from random import randrange
# Script version
version = "0.6.2"
# MQTT server configuration
mqtt_host = "ip address or host"
mqtt_user = "username"
@@ -10,12 +11,29 @@ mqtt_port = "1883"
mqtt_discovery_prefix = "homeassistant"
mqtt_topic_prefix = "rpi-MQTT-monitor"
# Below hass_ configuration is only needed if you use Home Assistant API instead of
# Retain flag for published topics
retain = True
# QOS setting for published topics: 0,1,2 are acceptable values
qos = 0
# Home Assistant API configuration
hass_token = "your_hass_token"
hass_host = "your_hass_host"
# Messages configuration
# Interval in seconds between probes when running the script as a service (--service option)
service_sleep_time = 120
# Interval for checking git_update and apt_updates
update_check_interval = 3600 # 1 hour
# Random delay in seconds before taking probes
# - this is used for de-synchronizing message if you run this script on many hosts.
# - if you want a fixed delay you can remove the randrange function and just set the needed value.
# random_delay = randrange(10)
# Uncomment the line bellow to send just one CSV message containing all values (this method don't support HA discovery_messages)
# group_messages = True
@@ -23,12 +41,17 @@ hass_host = "your_hass_host"
# Only works when group_messages is not used
discovery_messages = True
# System control configuration
# Enable remote restart button in Home Assistant
restart_button = True
# Enable remote shutdown button in Home Assistant
shutdown_button = True
# Enable remote update of the script via Home Assistant
update = True
# Enable control of attached display(s) via Home Assistant
display_control = False
@@ -39,27 +62,11 @@ os_user = 'os_user_to_be_replaced'
# To set a custom device name, uncomment the following line and set the custom name.
# ha_device_name = 'device_name_to_use'
# Binary sensor that displays when there are updates
# Sensors configuration
# Binary sensor that displays when there is an update for the script
git_update = True
# Enable remote update of the script via Home Assistant
update = True
# Retain flag for published topics
retain = True
# QOS setting for published topics: 0,1,2 are acceptable values
qos = 0
# Random delay in seconds before taking probes
# - this is used for de-synchronizing message if you run this script on many hosts.
# - if you want a fixed delay you can remove the randrange function and just set the needed value.
# random_delay = randrange(10)
# Interval in seconds between probes when running the script as a service (--service option)
service_sleep_time = 120
update_check_interval = 3600 # 1 hour
cpu_load = True
cpu_temp = True
used_space = True