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

Reading Data via httpd #4

Open
torsti09 opened this issue Jun 19, 2023 · 3 comments
Open

Reading Data via httpd #4

torsti09 opened this issue Jun 19, 2023 · 3 comments

Comments

@torsti09
Copy link

Hey,

I have installed this add on my Home Assistant and see my data succesfully in the log.
Now I want to read the data direclty over the httpd interface without an middleware.
I have set the port "8081" an tried to connect over IP of Home Assistant 192.168.XXX.XXX:8081, but i don't get a connection. Is there a way to grab the data or is it just impossible?

Thanks for helping!

@markussiebert
Copy link
Owner

ok,

the current config exposes the port 8088 from inside the container on port 20080 on the host. So try to assign port 8088 in your config but than access it via 20080 (you can change the 20080 in the config aof the addon).

@SchmidSP
Copy link

SchmidSP commented Jun 22, 2024

Hi,
checked, but no httpd connection on host:20080 (http://xxx.xxx.xxx.xxx:20080)

vzlogger.conf

{
  "retry": 0,
  "verbosity": 1,
  "log": "/var/log/vzlogger.log",
  "push": [],
  "local": {
    "enabled": true,
    "port": 8088,
    "index": true,
    "timeout": 0,
    "buffer": 0
  },
  "meters": [
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "api": "null",
          "uuid": "26d216c2-ac88-11ed-afa1-0242ac120002",
          "identifier": "1-0:1.8.0"
        },
        {
          "api": "null",
          "uuid": "26d218e8-ac88-11ed-afa1-0242ac120002",
          "identifier": "1-0:2.8.0"
        },
        {
          "api": "null",
          "uuid": "26d21b68-ac88-11ed-afa1-0242ac120002",
          "identifier": "1-0:16.7.0"
        }
      ],
      "protocol": "sml",
      "device": "/dev/ttyUSB0",
      "pullseq": "",
      "baudrate": 9600,
      "parity": "8n1",
      "use_local_time": true
    }
  ]
}

Log:

-----------------------------------------------------------

 Add-on: vzLogger
 A tool to read and log measurements of a wide variety of smartmeters and sensors.
-----------------------------------------------------------
 Add-on version: 0.0.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.4  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.6.4
 Home Assistant Supervisor: 2024.06.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[10:20:41] INFO: ==============================================================================
/dev/ttyUSB0 - FTDI_USB__-__Serial
[10:20:41] INFO: ==============================================================================
[10:20:41] INFO: {
  "retry": 0,
  "verbosity": 1,
  "log": "/var/log/vzlogger.log",
  "push": [],
  "local": {
    "enabled": true,
    "port": 8088,
    "index": true,
    "timeout": 0,
    "buffer": 0
  },
  "meters": [
    {
      "enabled": true,
      "allowskip": false,
      "interval": -1,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "api": "null",
          "uuid": "26d216c2-ac88-11ed-afa1-0242ac120002",
          "identifier": "1-0:1.8.0"
        },
        {
          "api": "null",
          "uuid": "26d218e8-ac88-11ed-afa1-0242ac120002",
          "identifier": "1-0:2.8.0"
        },
        {
          "api": "null",
          "uuid": "26d21b68-ac88-11ed-afa1-0242ac120002",
          "identifier": "1-0:16.7.0"
        }
      ],
      "protocol": "sml",
      "device": "/dev/ttyUSB0",
      "pullseq": "",
      "baudrate": 9600,
      "parity": "8n1",
      "use_local_time": true
    }
  ]
}
[10:20:41] INFO: ==============================================================================
[10:20:41] INFO: Starting vzlogger
[Jun 22 10:20:41][main] vzlogger v0.8.0 based on heads/master-0-gccb6d8ee49 from Fri, 5 Nov 2021 03:13:34 +0100 started.
[Jun 22 10:20:41][main] log level is 1

What do you mean "config aof"?

Ha 12.4

Thanks.

@markussiebert
Copy link
Owner

Aof=of

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

3 participants