Giter VIP home page Giter VIP logo

at-home-remote's Introduction

At Home Remote

Variant of the HomeRemote home automation dashboard, that is only accessible from the local network.

Publish to Docker Hub

Usage

With Docker Compose

Create a docker-compose.yml with:

services:
  at-home-remote:
    image: ghcr.io/mdvanes/at-home-remote:main
    volumes:
      - ./data:/usr/src/app/data
      - ./.env:/usr/src/app/.env
    restart: unless-stopped
  nginx:
    image: nginx:latest
    ports:
      - 3044:443
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf
      - ./certs:/etc/nginx/certs
      - ./auth:/etc/nginx/auth
    restart: unless-stopped 

Set up a .env file based on the example file in this repo.

Create certs:

mkdir -p certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./certs/nginx.key -out ./certs/nginx.crt

Create basic authentication user:

mkdir -p auth
htpasswd -c ./auth/.htpasswd <USERNAME>

Copy nginx.conf from this repo to the dir where the docker-compose.yml is.

start with docker-compose up -d

With Docker Compose (for Kronaby)

The Kronaby app can't use webhooks with (self signed) https nor with basic authentication. So in that case use:

Create a docker-compose.yml with:

services:
  at-home-remote:
    image: ghcr.io/mdvanes/at-home-remote:main
    ports:
      - 3044:3000
    volumes:
      - ./data:/usr/src/app/data
      - ./.env:/usr/src/app/.env
    restart: unless-stopped

start with docker-compose up -d

Build manually

  • npm i
  • npm run build
  • npx dotenvx run -- node dist/analog/server/index.mjs

Analog App

This project was generated with Analog, the fullstack meta-framework for Angular.

Setup

Run npm install to install the application dependencies.

Development

Run npm start for a dev server. Navigate to http://localhost:5173/. The application automatically reloads if you change any of the source files.

Build

Run npm run build to build the client/server project. The client build artifacts are located in the dist/analog/public directory. The server for the API build artifacts are located in the dist/analog/server directory.

Test

Run npm run test to run unit tests with Vitest.

Community

TODO

// NOTE: http://192.168.0.8:3044/api/webhooks/homesec/toggle

at-home-remote's People

Contributors

mdvanes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.