Skip to content

Bridge Ecowitt Protocol into a resender and a prometheus exporter

License

Notifications You must be signed in to change notification settings

JosephRPalmer/ecowitt-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecowitt Event Bridge

This python app creates an endpoint from which you can resend Ecowitt stats to Homebridge for use in Homekit but also presents you a Prometheus exporter endpoint.

Working Items

  • Prometheus Exporter
  • Homebridge Forwarder

Future Items

  • Graphite Support

How To Use

  • This has been tesed to work with this plugin for Homebridge - https://github.com/spatialdude/homebridge-ecowitt
  • Setup the plugin as expected, with the stations mac address and port 8080
  • Make use of the docker compose example below or the example in the repo and customise for your use case
  • Set the following environment vars: - LISTEN_PORT=8082 (incoming port) - PROM_PORT=9110 (prometheus endpoint port) - RESEND_DEST (forwarding destination) - RESEND_PORT (forwarding port) - RESENDING=1 (to make forwarding turn on
  • Ensure the ports exposed in the docker compose match the ports referenced under LISTEN_PORT and PROM_PORT

Docker Compose Example

version: "3.3"

services:
  ecowitt-eventbridge:
    image: josephrpalmer/ecowitt-eventbridge
    container_name: ecowitt-eventbridge
    network_mode: bridge
    restart: always
    environment:
      - LISTEN_PORT=8082
      - PROM_PORT=9110
      - RESEND_DEST=10.10.1.233
      - RESEND_PORT=8080
      - RESENDING=1
      - LISTEN_ADDR=10.10.1.233
    ports:
      - "8082:8082"
      - "9110:9110"

About

Bridge Ecowitt Protocol into a resender and a prometheus exporter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published