Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow paths without middleware.php #5

Open
SeraphimSerapis opened this issue Jan 9, 2021 · 1 comment
Open

Allow paths without middleware.php #5

SeraphimSerapis opened this issue Jan 9, 2021 · 1 comment

Comments

@SeraphimSerapis
Copy link
Contributor

_RESOURCE = "{schema}://{host}:{port}/middleware.php/data/{uuid}.json"

The docker version of volkszaehler (and probably a few other ways to run volkszaehler) simply have middleware.php listening on a certain port (e.g., localhost:8080). This behaviour causes issues when calling any URL with /middleware.php, as that path doesn't exist anymore. Thew newish path would be http://localhost:8089/data/{uuid}.json?from={ts}&to={ts} instead.

SeraphimSerapis added a commit to SeraphimSerapis/python-volkszaehler that referenced this issue Jan 11, 2021
fabaff pushed a commit that referenced this issue Mar 10, 2021
* Formats code with black

* Introduces the middleware parameter to handle #5
@zaziki23
Copy link

i still can not use this fix, since its an invalid option to set in configuration.yml

Invalid config for [sensor.volkszaehler]: [middleware] is an invalid option for [sensor.volkszaehler]. Check: sensor.volkszaehler->middleware. (See ?, line ?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants