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.
Credentials are in the form of service keys json files and are created in the IAM Console of Google Cloud Console.
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 |
Assuming Magic Mirror is already installed!
cd ~/MagicMirror/modules
git clone https://github.com/jeffmur/MMM-DeviceControl
cd MMM-DeviceControl
npm install
Reference Realtime Database image.
Daemon | Database Attribute |
---|---|
display_daemon() | OnOff.on state |
volume_daemon() | Volume.volumeLevel state |
mute_daemon() | Volume.isMuted state |