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

telegraf error #26

Open
reli3 opened this issue Jan 2, 2022 · 4 comments
Open

telegraf error #26

reli3 opened this issue Jan 2, 2022 · 4 comments

Comments

@reli3
Copy link

reli3 commented Jan 2, 2022

2022-01-02T01:26:15Z E! [inputs.http] Error in plugin: [url=http://pypowerwall:8675/api/meters/aggregates]: Get "http://pypowerwall:8675/api/meters/aggregates": dial tcp: lookup pypowerwall: Temporary failure in name resolution,
2022-01-02T01:26:20Z E! [inputs.http] Error in plugin: [url=http://pypowerwall:8675/api/meters/aggregates]: Get "http://pypowerwall:8675/api/meters/aggregates": dial tcp 172.18.0.4:8675: connect: connection refused,
2022-01-02T01:26:20Z E! [inputs.http] Error in plugin: [url=http://pypowerwall:8675/strings]: Get "http://pypowerwall:8675/strings": dial tcp 172.18.0.4:8675: connect: connection refused

Unable to pull data

@reli3
Copy link
Author

reli3 commented Jan 2, 2022

@jasonacox any suggestions? Thanks

@jasonacox
Copy link
Contributor

Hi @reli3 - I made quite a few edits and accepted a few PRs (#1 and #2) that I need to submit as PRs here too. For now, I suggest you try this version: https://github.com/jasonacox/powerwall_monitor

I suspect the error is related to the pypowerwall section in powerwall.yml:

    pypowerwall:
        image: jasonacox/pypowerwall:latest
        container_name: pypowerwall
        hostname: pypowerwall
        restart: always
        ports:
            - target: 8675
              published: 8675
              mode: host
        environment:
            PW_PASSWORD: "password"
            PW_EMAIL: "[email protected]"
            PW_HOST: "192.168.91.1"
            PW_TIMEZONE: "America/Los_Angeles"
            PW_DEBUG: "yes"

Or it is in the telegraf.conf inputs section:

[[inputs.http]]
	urls = [
		"http://pypowerwall:8675/aggregates",
		"http://pypowerwall:8675/soe",
		"http://pypowerwall:8675/strings"
	]
	method = "GET"
	insecure_skip_verify = true
	timeout = "4s"
	data_format = "json"

@reli3
Copy link
Author

reli3 commented Jan 4, 2022

@jasonacox this is amazing thank you for the update its now working.
Is it possible to have a dashboard to show the Connected:True or false?

I am running your string python manually would love to see this in a dashboard since sometimes my strings are offline and I have to go reboot the powerwall+ inverters 👎

{
"A": {
"Connected": true,
"Current": 0.02,
"Power": 0.0,
"State": "PV_Disabled",
"Voltage": 5.5
},

@jasonacox
Copy link
Contributor

Hi @reli3 - that's a great idea. Telegraf will filter out non-numeric data points so we need to figure out a way to get it to record the true/false or translate it to 1/0. I'll see what I can do... Alternatively, you could craft a script to poll the /strings API from pypowerwall and text you when it sees a Connected: false event.

Also, I wonder why your strings are failing. Have you opened the issue with Tesla?

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