Go to file
2024-12-11 22:49:50 +01:00
.github/workflows Create pr.yml 2024-11-07 10:46:56 +01:00
configs correct dependencies 2024-11-07 10:30:40 +01:00
example Added Ports to compose.yml + moved the env check to the config file 2024-11-07 10:17:33 +01:00
internal Update calc.go 2024-11-03 22:05:10 +01:00
models Update cache.go 2024-11-03 22:07:13 +01:00
server values can be entered with an , 2024-12-05 22:12:57 +01:00
web Update index.html 2024-11-03 22:08:36 +01:00
.gitignore updated gitignore to exclude IDEA files 2024-11-14 10:19:06 +01:00
Dockerfile fixed Dockerfile 2024-11-02 19:28:47 +01:00
go.mod env 2024-11-02 13:24:36 +01:00
go.sum env 2024-11-02 13:24:36 +01:00
main.go i got to used to vscode 2024-11-07 10:35:09 +01:00
README.md UPDATED compose 2024-12-11 22:49:50 +01:00

humiditycalc

This service allows you to compare the absolute humidity from indoor and outdoor.

Setup

The setup is aimed for docker.

DOCKER COMPOSE EXAMPLE

services:
    humiditycalc:
        restart: always
        container_name: humiditycalc
        image: ghcr.io/leroid-hub/humiditycalc:latest
        environment:
          OPENWEATHERMAP_API_KEY: "YOURKEY"
          LATITUDE: "40.07"
          LONGITUDE: "9.8"
          MODE: "BOTH"

ENVIROMENT VARS

MODES: CALC, WEATHER, BOTH
BOTH is standard

OPENWEATHERMAP_API_KEY is required in WEATHER and BOTH mode

DEFAULT:
MODE=CALC

Standalone:
MODE=BOTH
OPENWEATHERMAP_API_KEY=yourkey
LATITUDE=
LONGITUDE=

WEATHER:
MODE=WEATHER
OPENWEATHERMAP_API_KEY=yourkey
DB_HOST=
DB_PORT=
DB_NAME=
DB_PASSWORD=
DB=

OPTINAL:
PORT=80