Giter Club home page Giter Club logo

speedtest2ha's Introduction

speedtest2ha's People

Contributors

stonegray avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pyrech

speedtest2ha's Issues

does not work anymore ?

Hi,

I tried the docker image but the speedtest test no longer seems functional, a cli speedtest update is missing?

Thanks

Poor handling of unavailable speedtest server / Test fails after a while

I installed this using this docker-compose.yaml

---
version: "3.4"
services:
################################################################
# Speedtest2ha                                                ##
# https://github.com/stonegray/speedtest2ha                   ##
################################################################
  speedtest:
    image: stonegray/speedtest2ha:main
    container_name: speedtest2ha
    environment:
      - MQTT_HOST=mqtt://192.168.***.**
      - MQTT_USER=**********
      - MQTT_PASS=***********
      - CRON=*/30 * * * *
    restart: always

The initial run worked fine and the sensors was auto discovered in HA.

Later when i checked i found this error from the container.

2023-01-12T14:30:00.977816463Z Starting test...
2023-01-12T14:30:00.977960694Z Data { testinprogress: 'true' }
2023-01-12T14:30:00.977967612Z Processing sensor upload undefined speedtest/upload
2023-01-12T14:30:00.977970486Z Processing sensor download undefined speedtest/download
2023-01-12T14:30:00.977972940Z Processing sensor ping undefined speedtest/ping
2023-01-12T14:30:00.977975313Z Processing sensor jitter undefined speedtest/jitter
2023-01-12T14:30:00.977977608Z Processing sensor uploadtotal undefined speedtest/uploadtotal
2023-01-12T14:30:00.977979947Z Processing sensor downloadtotal undefined speedtest/downloadtotal
2023-01-12T14:30:00.977986906Z Backend did not provide the following key, skipping: upload
2023-01-12T14:30:00.977989655Z Backend did not provide the following key, skipping: download
2023-01-12T14:30:00.977991924Z Backend did not provide the following key, skipping: ping
2023-01-12T14:30:00.977994165Z Backend did not provide the following key, skipping: jitter
2023-01-12T14:30:00.978006608Z Backend did not provide the following key, skipping: uploadtotal
2023-01-12T14:30:00.978009169Z Backend did not provide the following key, skipping: downloadtotal
2023-01-12T14:30:00.978054128Z Processing sensor testinprogress true speedtest/testinprogress
2023-01-12T14:30:00.980534476Z Processing sensor runtest undefined speedtest/runtest
2023-01-12T14:30:00.980551787Z Processing sensor schedule undefined speedtest/schedule
2023-01-12T14:30:00.980555001Z Finished updating sensors
2023-01-12T14:30:00.980562264Z Backend did not provide the following key, skipping: runtest
2023-01-12T14:30:00.980565037Z Backend did not provide the following key, skipping: schedule
2023-01-12T14:30:01.804363727Z Data { testinprogress: 'false' }
2023-01-12T14:30:01.804396412Z Processing sensor upload undefined speedtest/upload
2023-01-12T14:30:01.804402261Z Processing sensor download undefined speedtest/download
2023-01-12T14:30:01.804406353Z Processing sensor ping undefined speedtest/ping
2023-01-12T14:30:01.804410098Z Processing sensor jitter undefined speedtest/jitter
2023-01-12T14:30:01.804413801Z Processing sensor uploadtotal undefined speedtest/uploadtotal
2023-01-12T14:30:01.804417624Z Processing sensor downloadtotal undefined speedtest/downloadtotal
2023-01-12T14:30:01.804421339Z Processing sensor testinprogress false speedtest/testinprogress
2023-01-12T14:30:01.804424944Z Sending data...
2023-01-12T14:30:01.804428431Z Data {
2023-01-12T14:30:01.804432075Z   error: true,
2023-01-12T14:30:01.804435766Z   message: 'Unable to connect to servers to test latency.'
2023-01-12T14:30:01.804439491Z }
2023-01-12T14:30:01.804443205Z Processing sensor upload undefined speedtest/upload
2023-01-12T14:30:01.804465018Z Processing sensor download undefined speedtest/download
2023-01-12T14:30:01.804467892Z Processing sensor ping undefined speedtest/ping
2023-01-12T14:30:01.804470123Z Processing sensor jitter undefined speedtest/jitter
2023-01-12T14:30:01.804472306Z Processing sensor uploadtotal undefined speedtest/uploadtotal
2023-01-12T14:30:01.804474615Z Processing sensor downloadtotal undefined speedtest/downloadtotal
2023-01-12T14:30:01.804476915Z Processing sensor testinprogress undefined speedtest/testinprogress
2023-01-12T14:30:01.804479161Z Processing sensor runtest undefined speedtest/runtest
2023-01-12T14:30:01.804481336Z Processing sensor schedule undefined speedtest/schedule
2023-01-12T14:30:01.804483546Z Finished updating sensors
2023-01-12T14:30:01.804485735Z Processing sensor runtest undefined speedtest/runtest
2023-01-12T14:30:01.804487926Z Processing sensor schedule undefined speedtest/schedule
2023-01-12T14:30:01.804490149Z Finished updating sensors
2023-01-12T14:30:01.804368531Z Backend did not provide the following key, skipping: upload
2023-01-12T14:30:01.804525674Z Backend did not provide the following key, skipping: download
2023-01-12T14:30:01.804528098Z Backend did not provide the following key, skipping: ping
2023-01-12T14:30:01.804530292Z Backend did not provide the following key, skipping: jitter
2023-01-12T14:30:01.804532528Z Backend did not provide the following key, skipping: uploadtotal
2023-01-12T14:30:01.804534750Z Backend did not provide the following key, skipping: downloadtotal
2023-01-12T14:30:01.804537047Z Backend did not provide the following key, skipping: upload
2023-01-12T14:30:01.804539242Z Backend did not provide the following key, skipping: download
2023-01-12T14:30:01.804541424Z Backend did not provide the following key, skipping: ping
2023-01-12T14:30:01.804543624Z Backend did not provide the following key, skipping: jitter
2023-01-12T14:30:01.804545822Z Backend did not provide the following key, skipping: uploadtotal
2023-01-12T14:30:01.804548033Z Backend did not provide the following key, skipping: downloadtotal
2023-01-12T14:30:01.804550242Z Backend did not provide the following key, skipping: testinprogress
2023-01-12T14:30:01.804552447Z Backend did not provide the following key, skipping: runtest
2023-01-12T14:30:01.804554663Z Backend did not provide the following key, skipping: schedule
2023-01-12T14:30:01.804556849Z Backend did not provide the following key, skipping: runtest
2023-01-12T14:30:01.804559049Z Backend did not provide the following key, skipping: schedule

Any idea why this is?
The sensors in HA are now "unavailable"
The current release in github when i deployed the docker was:
https://github.com/stonegray/speedtest2ha/releases/tag/20230112053512
And it looks as the image tag on dockerhub is from the same release time as the github release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.