Categorygithub.com/KyleBrandon/plunger-server
module
0.0.0-20241221212343-24cc2cad74d2
Repository: https://github.com/kylebrandon/plunger-server.git
Documentation: pkg.go.dev

# README

Plunge Server

Control your plunge tub with a Raspberry Pi

Configuration

Environment Variables

The following environment variables are used when configuring the Plunger Server.

PropertyTypeDescription
DATABASE_URLstringThe connection string used to connect to the database.
PORTnumberThe port used by the Plunger API server.
LOG_FILE_LOCATIONstringThe path to the location to store the log file.
CONFIG_FILE_LOCATIONstringThe path to the location to store the configuration file.
TWILIO_ACCOUNT_SIDstring | nullThe account identifer from the Twilio admin console.
TWILIO_AUTH_TOKENstring | nullThe authentication token from the Twilio admin console.
TWILIO_FROM_PHONE_NOstring | nullThe phone number in Twilio to send SMS messages from.
TWILIO_TO_PHONE_NOstring | nullThe phone number to send SMS messages to.

Examples

 DATABASE_URL="postgres://<username>:<password>@<IP address>:<port>/<database name>?sslmode=disable"
 PORT=8080
 LOG_FILE_LOCATION="./plunger-server.log"
 CONFIG_FILE_LOCATION="./config/config.json"
 TWILIO_ACCOUNT_SID="<account identifier>"
 TWILIO_AUTH_TOKEN="<auth token for the account>"
 TWILIO_FROM_PHONE_NO="11235551212"
 TWILIO_TO_PHONE_NO="12345551212"

# Packages

No description provided by the author
No description provided by the author
No description provided by the author