jeffmur / MMM-DeviceControl

Google Smart TV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MMM-DeviceControl

The purpose of this repository is to communicate back and forth with a Firebase Realtime Database with read + write permissions.

It will execute local commands to control the a Raspberry Pi 4, Debian Buster, volume + screensaver.

Note: requies Firebase Token + Firebase node packages.

Setup

Credentials are in the form of service keys json files and are created in the IAM Console of Google Cloud Console.

Dependencies

Repository Purpose
firebase-smarthome/ Firebase Function + Testing user-interface
Magic Mirror MagicMirror User Interface
MMM-GoogleAssistant Embedded Assistant api v2
MMM-ProfileSwitcher Google Pub/Sub subscriber for events

Install + Integration

Assuming Magic Mirror is already installed!

cd ~/MagicMirror/modules
git clone https://github.com/jeffmur/MMM-DeviceControl
cd MMM-DeviceControl
npm install

Run Time Tasks

Reference Realtime Database image.

Daemon Database Attribute
display_daemon() OnOff.on state
volume_daemon() Volume.volumeLevel state
mute_daemon() Volume.isMuted state

Install

About

Google Smart TV


Languages

Language:JavaScript 100.0%