Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/liwde/telegraf-hoymiles-wifi

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/liwde/telegraf-hoymiles-wifi

  • v0.0.0-20241005143040-9df79f7b9779
  • Source
  • Go
  • Socket score

Version published
Created
Source

telegraf-hoymiles-wifi

Telegraf Plugin for Hoymiles Wifi Inverters

Running as a telegraf plugin

  • Build the binary, i.e. via go build -o hoymiles ../cmd/hoymiles
  • Add a configuration for the plugin (take a look at sample.conf)
  • Add to your telegraf.conf
    [[inputs.execd]]
      command = ["hoymiles -config my-config.conf"]
      signal = "none"
    
  • Run telegraf

Bundling in gokrazy

config.json

{
    "Packages": [
        // ...
        "github.com/liwde/telegraf-hoymiles-wifi/cmd/hoymiles",
        "github.com/influxdata/telegraf/cmd/telegraf"
    ],
    "PackageConfig": {
        // ...
        "github.com/liwde/telegraf-hoymiles-wifi/cmd/hoymiles": {
            "DontStart": true
        },
        "github.com/influxdata/telegraf/cmd/telegraf": {
            "ExtraFilePaths": {
                "/etc/telegraf/telegraf.conf": "./telegraf.toml",
                "/etc/telegraf/hoymiles.conf": "./hoymiles.toml",
            },
            "Environment": [
                "INFLUX_TOKEN=<your-token>"
            ],
            "WaitForClock": true
        }
    },
    // ...
}

telgraf.toml

[[inputs.execd]]
  command = ["/user/hoymiles", "-config", "/etc/telegraf/hoymiles.conf"]
  signal = "none"

[[outputs.influxdb_v2]]
  urls = ["<your-influx-url>"]
  token = "${INFLUX_TOKEN}"
  organization = "<your-organization>"
  bucket = "<your-bucket>"

hoymiles.toml

[[inputs.hoymiles_wifi]]
  hostname = "<your-hoymiles-hostname>"

Thanks

Based on the fabulous work of https://github.com/BLun78/hoymiles_wifi

FAQs

Package last updated on 05 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc