Git Product home page Git Product logo

home-assistant-skisporet's People

Contributors

olen avatar svhelge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

home-assistant-skisporet's Issues

Sensorer får verdi 'Unknown' etter oppdatering av skisporet.no

Hei!
Sensorene dukker opp som "Unknown" etter at skisporet.no nylig har gjort en oppdatering.
Jeg tittet på det og fant ut at man kan få ut tid siden siste kjøring i JSON-format med følgende
GET https://www.skisporet.no/map/segment/XXX?_data=routes/map/segment.$segmentId
der XXX er løypenr.
Ved å bruke en jsonpath ($.segment.newestPrep) kan man hente ut verdiene (eksempel {'level': 3, 'days': 2, 'hours': 16})

Spørsmål

Heisann, prøver å hente ut preppestatusen til et enkelt system jeg har på hytta. Bruker ikke Home-assistant, er kodet i micropython på en ESP-32.
Siden du har 'knekt koden' for hvordan man skal få ut disse dataene lurte jeg på om du har en 'oneliner' som vil gi bare 'timer siden prepp' for en gitt løypetrasé.

Feilmelding med Home Assistant 2022.3.0

Etter å ha oppgradert HA til 2022.3.0 får jeg følgende feilmelding ved "Check configuration":
Platform error sensor.skisporet - Requirements for skisporet not found: ['pandas==1.2.3']

Fra log:
`
2022-03-03 21:20:18 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of pandas==1.2.3
2022-03-03 21:20:21 INFO (MainThread) [custom_components.hpprinter.api.HPPrinterAPI] Cannot retrieve data (ConsumableConfigDyn) from printer, Error: , Line: 136
2022-03-03 21:20:29 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package pandas==1.2.3: error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
Traceback (most recent call last):
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/numpy/core/init.py", line 23, in
from . import multiarray
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/numpy/core/multiarray.py", line 10, in
from . import overrides
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/numpy/core/overrides.py", line 6, in
from numpy.core._multiarray_umath import (
ImportError: Error loading shared library /tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so: Operation not permitted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
return self._get_build_requires(
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 20, in
import numpy
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/numpy/init.py", line 144, in
from . import core
File "/tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/numpy/core/init.py", line 49, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:

  • The Python version is: Python3.9 from "/usr/local/bin/python3"
  • The NumPy version is: "1.22.0"
    and make sure that they are the versions you expect.
    Please carefully study the documentation linked above for further help.
    Original error was: Error loading shared library /tmp/pip-build-env-iyylo_dw/overlay/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so: Operation not permitted
    [end of output]
    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    note: This error originates from a subprocess, and is likely not a problem with pip.
    2022-03-03 21:20:29 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of pandas==1.2.3`

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.