amcrest-go

command module
v0.0.0-...-1b19d38 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 16 Imported by: 0

README

amcrest-go

Running

Go

Build with go build and run the executable, or run directly with go run main.go. Make sure to set the required envrionment variables defined below.

Docker

A docker image is available on dockerhub: nbr23/amcrest-go

You can launch it with:

docker run nbr23/amcrest-go

Make sure to pass the required environment variables with --env or --env-file.

Parameters

Parameters are passed through environment variables. The following are available:

# Connection variables
AMCREST_BASEURL=http://X.X.X.X # Base url for your Amcrest device. Mandatory
AMCREST_USER=admin # Defaults to "admin" if not set
AMCREST_PASSWORD= # Mandatory

AMCREST_TIMEZONE=America/New_York # Defaults to UTC if not set

# Telegram notification parameters
TELEGRAM_BOT_KEY= # Key of the bot to leverage. Mandatory for telegram notifications
TELEGRAM_CHAT_ID= # Id of the chat to post to. Mandatory for telegram notifications

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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