Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

205 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-muh

muh unified homeautomation

A Homeautomation Frontend & Backend built with Vue.js for Raspberry Pi

Contents

Features

  • Display garage & doors
  • Control garage & doors
  • Doorbell
  • Status LED
  • Notification via Email & Pushmessage
  • Autolock doors after specific time
  • Store all changes in database

Software

  • nodejs socket.io
  • pigpio
  • mqtt
  • influxdb

Hardware

  • Magnetic reed switch
    • Display state open or closed of garage & doors
  • Relay switch
    • Close & open garage
    • Lock, unlock & open doors
  • Button switch
    • Doorbell
  • LED status indicator
    • Display all doors in the basement are locked
  • PIR sensor

Installation

Prerequisites

Install the pigpio C library

pacman -S base-devel git npm
yay -S pigpio-git

Set default modes in /boot/config.txt

# Pull-down button & reed switch 
gpio=5,6,8,13,25,7=pd
# Output relays (driving high)
gpio=12,16,20,19,26=op,dh
# Output LED (driving low)
gpio=24=op,dl

Installation

Clone git node-muh repository, install node-muh dependencies

git clone https://github.com/13/node-muh.git

npm install

After a NodeJS update, rebuild pigpio

rm -Ir node_modules && npm install

Run with root privileges

sudo node muh.js

Or run with development environment

export NODE_ENV=dev && sudo node muh.js

Troubleshooting

Allow port 80 on linux

sudo setcap 'cap_net_bind_service=+ep' $(which node)

Set env on powershell

$env:NODE_ENV='dev'

Todo

  • add reed sensors

  • add relays

  • add influxdb

  • add mqtt

  • add mail (mstmp-queue)

  • add pushmessage (pushover)

  • add klingel

  • add rfid

  • enable/disable services like pushover

  • add autolock timer

  • clear buffer socket (problems!!!)

  • add influxdb send timestamp || test what happens

  • wol popup window

  • sounds page with volume slider, mute button, ...

About

homeautomation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages