Help us shape the future of Go! Take the 2026 Go Developer Survey

meterNG

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

Docker Image CI Dependabot Status

meterNG

meterNG is a small tool with web UI to record meter readings in a household and track consumptions. This application does not need any cloud for data storage or synchronization.

Features

  • Web UI to record new meter readings, optimized for mobile usage
  • Charts in Web UI with consumption over a certain period
  • Import and Export to/from a CSV file
  • periodical mail with CSV file as backup (Mail configuration necessary, see below)
  • periodical reminder mail if X days elapsed since last reading date (Mail configuration necessary, see below)

Usage

Start meterNG with following docker-compose.yml

version: "2.1"
services:
  meterng:
    image: ghcr.io/0xerr0r/meterng
    container_name: meterng
    restart: unless-stopped
    mem_limit: 30MB
    volumes:
      - database:/data
    environment:
      # comma separated list of meters. Format: meterName(Unit)
      - METER_METERS=Water (m³), Gas (m³)
      # mail configuration
      - METER_EMAIL.RECIPIENT=xxx@gmail.com
      - METER_EMAIL.SENDER=xxx@gmail.com
      - METER_EMAIL.SMTP_HOST=smtp.gmail.com
      - METER_EMAIL.SMTP_PORT=587
      - METER_EMAIL.SMTP_USER=xxx@googlemail.com
      - METER_EMAIL.SMTP_PASSWORD=xxx
      # cron string for backup job
      - METER_TASK.BACKUP.CRON=0 0 7 1 * *
      # cron string for notification job
      - METER_TASK.NOTIFICATION.CRON=0 0 7 * * *
      # Amount of days elapsed since last reading to trigger the email notification
      - METER_TASK.NOTIFICATION.DAYS=7
      # url for record page (used as link in email)
      - METER_TASK.NOTIFICATION.URL=http://external_meter_url/record
      - TZ=Europe/Berlin
volumes:
  database:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL