An application that reads out new Gmail messages on Google Home.
Works on Raspberry Pi.
- Node.js v18
- Yarn
-
Create a project in Google Cloud Console and set up OAuth authentication.
-
Enable the Gmail API in your project.
-
Clone repo.
-
Copy
config.sample.js
toconfig.js
. -
Edit
config.js
. -
Run
yarn --production
. -
Run
yarn start
.First, will be prompted for Google authentication. After authenticating with your browser, paste the authentication code into the console.
Running this script will check mail only once. Use cron to run it periodically.
$ sudo touch /var/log/gmail-google-home-notify.log
$ sudo chmod 666 /var/log/gmail-google-home-notify.log
$ crontab edit -e
The following example will run the script once per minute.
*/1 * * * * '/path/to/repo/start.sh'