Google Home Starter Guide
Thanks for looking through this guide! If you have any questions getting this up and running, please feel free to submit an Issue or email me at firstname.lastname@example.org.
If you haven't already, install git and node.js on your device.
- Fork or clone this repository onto your device.
- In your console, run
npm installto install the required components.
touch .envto create your hidden, gitignored environment config file.
- In .env, configure your environment as follows:
TRUEif you are on desktop, or
FALSEif you are on your raspberry pi
443for HTTP or HTTPS
PASS=Whatever you want your password to be
npm startto launch the server
When you make a POST request to the server, follow this structure:
You will want to configure the Python files to suit your project's needs.
To add or edit a switch, go into saveState.json. Use the first switch as a guide, and add a new object to the switches array.
You can serve your own frontend out of the public folder, and it will be accessible on the root route if you make a get request to your IP address.