Skip to content

fujikky/gmail-google-home-notify

Repository files navigation

gmail-google-home-notify

An application that reads out new Gmail messages on Google Home.
Works on Raspberry Pi.

Requirements

  • Node.js v18
  • Yarn

Get started

  1. Create a project in Google Cloud Console and set up OAuth authentication.

  2. Enable the Gmail API in your project.

  3. Clone repo.

  4. Copy config.sample.js to config.js .

  5. Edit config.js .

  6. Run yarn --production .

  7. Run yarn start .

    First, will be prompted for Google authentication. After authenticating with your browser, paste the authentication code into the console.

Cron configuration

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'

About

An application that reads out new Gmail messages on Google Home

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published