lux4rd0 / kasa-collector

Kasa Collector provides a way of collecting real-time energy data from Kasa Smart Plugs. These Grafana dashboards offer visualizations for their Current, Voltage, Power, and Total Watt Hours.
https://labs.lux4rd0.com/kasa-collector/
GNU Affero General Public License v3.0
42 stars 6 forks source link

Health Check is failing #1

Closed florianeichin closed 2 months ago

florianeichin commented 2 years ago

I always get this message. By visiting the code, I cannot find this file at all.

kasa-collector    | kasa-init: Starting Health Check
kasa-collector    | /kasa-collector/kasa-collector-init.sh: line 98: ./start-health-check.sh: No such file or directory

this is my compose

services:
  kasa-collector:
    container_name: kasa-collector
    environment:
      TZ: America/Chicago
      KASA_COLLECTOR_COLLECT_INTERVAL: 5
      KASA_COLLECTOR_DEVICE_HOST: 192.168.178.49
      KASA_COLLECTOR_HOST_HOSTNAME: localhost
      KASA_COLLECTOR_INFLUXDB_PASSWORD: none
      KASA_COLLECTOR_INFLUXDB_URL: http://influxdb:8086/write?db=kasa
      KASA_COLLECTOR_INFLUXDB_USERNAME: none
    image: lux4rd0/kasa-collector:latest
    restart: always
    depends_on:
      - influxdb

  influxdb:
    image: influxdb:1.8
    container_name: influxdb
    restart: always
    ports:
      - "8086:8086"

version: '3.3'
danktankk commented 2 years ago

I have the same issue and based on no reply, it looks like this is not supported anymore - or never was.

goku2k commented 2 years ago

I have the same issue as well.

nbergen commented 9 months ago

This repository is a bit incomplete...

You can disable health checks with the following additional environment variables:

  KASA_COLLECTOR_HEALTHCHECK: "false"
  KASA_COLLECTOR_DISABLE_HEALTH_CHECK: "true"

You'll also want to add the following variables so that the script doesn't try to set negative sleep intervals.

  KASA_COLLECTOR_PERF_INTERVAL: "60"
  KASA_COLLECTOR_HOST_PERFORMANCE_POLL_INTERVAL: "60"
lux4rd0 commented 2 months ago

The new version just released - sorry for the quietness!! It's all brand new - no health checks in this current version, so closing this out.