Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

HowTo: Update values in the docker image #5

Open
emeins opened this issue May 4, 2018 · 4 comments
Open

HowTo: Update values in the docker image #5

emeins opened this issue May 4, 2018 · 4 comments

Comments

@emeins
Copy link

emeins commented May 4, 2018

Maybe it is worth to update the documentation how to put values from outside into the docker container: "http://:/data/$UUID.json?operation=add&ts=&value="

It is only a documentation issue, but it costs me some hours. The container itself runs very well.

@artcrime
Copy link

it took me some hours too! Here is an example for my meter (I use a different port for the image)

{
"uuid": "7a7b9980-49c8-11e6-a31d-8b29f99xzzy",
"identifier": "1-0:16.7.0",
"api": "volkszaehler",
"middleware": "http://192.168.100.200:8090/",
"type": "device",
"scaler": 1,
"aggmode": "max",
"duplicates": 0
},

@andig
Copy link
Contributor

andig commented May 13, 2018 via email

@artcrime
Copy link

normaly you configure your vzlogger.conf like that

{
"uuid": "7a7b9980-49c8-11e6-a31d-8b29f99xzzy",
"identifier": "1-0:16.7.0",
"api": "volkszaehler",
"middleware": "http://192.168.100.200:8090/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "max",
"duplicates": 0
},

for the docker container you have to leave out "middleware.php" or you'll get an exeption error. I moved my configuration from an existing installation and didnt understand why I got no data until I found the comment from emeins.

Gruß Sascha

@andig
Copy link
Contributor

andig commented May 14, 2018

Thanks for raising this topic.

For performance reasons the docker image uses ppm instead of Apache or Nginx to provide the middleware (and static httpd file service): https://github.com/volkszaehler/docker/blob/master/src/bootstrap.sh#L18

That means that according to https://github.com/volkszaehler/docker/blob/master/README.md (and https://github.com/volkszaehler/volkszaehler.org/blob/master/etc/middleware.json#L3) both frontend end middleware will be provided on port 8080 of the docker container. middleware.php is no longer invoked and instead the middleware directly run on that port.

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

No branches or pull requests

3 participants