Skip to content

tux-/aidon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aidon ams han power meter

A Power meter for Aidon ams han. This project is just a visulizer for https://github.com/robinsmidsrod/ams-han-decoder.

Shows current hour avarage, last 5 min average and current watt.

Installation

Clone this repository. And then use npm to install dependency packages.

npm install

Dependency list that will be automatically installed with the command above:

npm install ws
npm install mqtt
npm install ini
npm install cli-color

Configuration

Copy config.example.ini to config.ini and edit values to your preferences.

Set application title

This is the title used in the browser tab, and on the page.

title = "Aidon"

Guage colours and limits

  • peak: The maximum value for the guage.
  • green: The bar will remain green colour until this value.
  • yellow: The bar will remain yellow colour until this value.
  • orange: The bar will remain orange colour until this value.

Values above orange will be red.

[watt]
peak = 10000
green = 3000
yellow = 5000
orange = 7000

AMS mqtt broker

The address for the AMS mqtt broker.

[mqtt]
read = "mqtt://192.168.1.10:1883"

AMS mqtt broker

  • interface: The interface address to run the webserver on.
  • www_port: The port to run the webserver on.
  • ws_port: The port to run the websocket on.
[server]
interface = "192.168.1.10"
www_port = 8302
ws_port = 8303

Proxy

If you wish to run the application behind a proxy, it will need to know the address to connect the websocket.

[proxy]
ws = "wss://example.com/socket"