Code Monkey home page Code Monkey logo

nextdaemon's Introduction

NextDaemon

Playground for creating Homeassistant Add-Ons based on NetDaemon.

Steps

  1. Created project with CLI and called it NextDaemon.
  2. Added MVC and Blazor stuff following the tutorial.
  3. Changed folder structure and moved project to src to align with NetDaemon repository.
  4. Added Dockerfile, Dockerfile.AddOn and sh6 scripts in Dockerfolder from NetDaemon repository.
  5. Run the container locally
    1. Created the image locally with docker build -t nextdaemon .
    2. Run it from Docker Desktop and mapped port 10000
    3. NetDaemon Hello World Apps run successfully.
    4. Kestrel responding (APIs, ...)
    5. Blazor Counter page works including IScheduler and HA entities.
    6. css not working (-> publish?) Running in Container
  6. Setting up a local docker registry (so that add-on config.yaml can pull image locally). ()
    1. docker run -d -p 4000:5000 --restart always --name registry registry:2
    2. add { "insecure-registries": ["local_ip:4000"] } in Docker Desktop Settings -> Docker Engine Docker Settings
    3. docker tag nextdaemon local_ip:4000/nextdaemon
    4. docker push local_ip:4000/nextdaemon
  7. Creating image for AddOn
    1. docker build -t nextdaemon-addon -f .\Dockerfile.AddOn .
    2. docker tag nextdaemon-addon local_ip:4000/nextdaemon-addon
    3. docker push local_ip:4000/nextdaemon-addon

Still ToDo

  • config.yaml to create add-on (pref. from local registry)
  • add secrets
  • Workflow / Action to deploy docker image
  • clean run and finishscripts
  • get the damn thing running!!!

nextdaemon's People

Contributors

mutzl 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.