#home-automation #engine #hassium #nodejs #setup

hassium-core

Core module for Hassium home automation engine

4 releases

0.1.3 Sep 8, 2019
0.1.2 Sep 8, 2019
0.1.1 Sep 8, 2019
0.1.0 Sep 8, 2019

#14 in #hassium

Download history 24/week @ 2024-07-22 21/week @ 2024-07-29 28/week @ 2024-08-05 15/week @ 2024-08-12 19/week @ 2024-08-19 52/week @ 2024-08-26 4/week @ 2024-09-02 20/week @ 2024-09-09 18/week @ 2024-09-16 48/week @ 2024-09-23 15/week @ 2024-09-30 2/week @ 2024-10-07 21/week @ 2024-10-14 5/week @ 2024-10-21 10/week @ 2024-10-28 24/week @ 2024-11-04

60 downloads per month
Used in 11 crates

Custom license

57KB
2K SLoC

logo

Hassium

A home automation engine, using HTML5 + WASM at it's core.

Table of contents

  1. Installation
  2. Project Setup
  3. Building for development and production
  4. Roadmap

Installation

  1. Make sure that you have latest node.js with npm tools installed (https://nodejs.org/)
  2. Make sure that you have latest wasm-pack toolset installed (https://rustwasm.github.io/wasm-pack/installer/)
  3. Make sure that you have latest hassium-ignite application installed (from project repository releases)

Project Setup

Create a new Hassium home automation engine project with hassium-ignite:

cd /path/to/parent/
hassium-ignite new 'project-name'

Which will create a new home automation project using defaults (the web-composite-smarthome preset.)

Then you have to go to your project directory and run npm install to install all nodejs dependencies.

Note, You can also create projects with different presets: desktop-headless-smarthome (a backend, server-like project without graphics.)

example:

cd /path/to/parent/
hassium-ignite new 'project-name' -p desktop-headless-smarthome

You can also specify the directory in which to create the new project:

hassium-ignite new 'project-name' -d /path/to/parent/

Building for development and production

  • Launch live development with hot reloading (app will be automatically recompiled in background):
npm start
  • Build production distribution (will be available in /dist folder):
npm run build
  • Build crate without of running dev env:
cargo build --all

Dependencies

~6MB
~116K SLoC