• Stars
    star
    114
  • Rank 306,291 (Top 7 %)
  • Language
    Python
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A google home notification webservice

A notification server that sends notifications to Google Home

This is pretty simple. I had started using noelportugal's really great node Google Home Notifier but was having some issues with stability.

I decided to write it in a language i know a bit better - python! yay. Python is your friend.

The gist is this:

This is a webservice that has two endpoints:

  • /play/ - plays an mp3 on the google home that is in the static folder
  • /say/ - uses googles unofficial google translate TTS service to say a notification

use

getting started

This uses flask and you should just be able to install the requirements: pip install -r requirements.txt and then run the webservice python main.py

You will have to edit main.py and change the chromecast_name to one of your google home device's name. If you have more than 1 google home, I would recommend you put all your google homes into a play group and place the play groups name in the device_name variable.

URLs

/play/mp3name.mp3

This will play mp3name.mp3 over the google homes. I put two mp3s in the static dir for you to try out: JR.mp3 and doorbell1.mp3. Try them: /play/JR.mp3 or /play/doorbell1.mp3

/say/?text=Oh My God this is awesome

Just pass a GET variable to the /say/ endpoint and the google homes will say your text. It also caches this so that the second time it will be a bit quicker than the first time. yay.

You can also do other languages too:

/say/?text=็Œฟใ‚‚ๆœจใ‹ใ‚‰่ฝใกใ‚‹&lang=ja

running for real

I use docker to run it. It works pretty well. I even included some pretty good docker script that will make it easier. Please check that out for more help.

How

Google homes are just chromecasts! Who knew! You just have to treat them like chromecasts. They show up when you browse for chromecasts via python or any other code library. You can then just send audio their way.

TODO

  • Break out the google home bits and make it easy to integrate into other projects and not just a webservice

HMU

[email protected]

@harper on twitter

More Repositories

1

gpt3-persona-bot

a simple bot that allows you to chat with various personas
Python
73
star
2

Asterisk-CallerID-Spoofing

CallerID spoofing script using PHPAGI
PHP
63
star
3

SmartThings-webhook

An installable groovy SmartApp that provides event-based webhook functionality for SmartThings.
Groovy
49
star
4

chromecast-control

Control a chromecast with python
Python
46
star
5

life360-python

A simple python life360 client
Python
32
star
6

gae-superfeedr-shell

A Google App Engine shell application for interacting with Superfeedr
31
star
7

twitteroauth-python

Python Oauth client for Twitter
Python
30
star
8

bigpy

a quick python helper that generates a big.js presentation
Python
26
star
9

pyawair

a very simple python class to access the (private) awair api
Python
25
star
10

transitapi

CTA Transit API
21
star
11

zooooom.us

A screensaver for these anxious times
HTML
20
star
12

eo-python

Electric Objects python library
Python
20
star
13

social-auth-for-django-appengine

Social Registration for Django/GAE.
Python
16
star
14

node-ifttt-mqtt-bridge

Firebase Webhook (IFTTT/API.AI) -> MQTT bridge
JavaScript
15
star
15

japan-mini-guide

A miniguide to japan
14
star
16

harperreed-blog

My jekyll blog for nata2
HTML
12
star
17

instant-location

A terrible and slow replacement for the sadly departed latitude API
Python
11
star
18

Baby-Chains

Markov Chain Baby Name Generator
Python
10
star
19

harper.tilde

My tilde.club page
CSS
10
star
20

effigy.im

This is a simple service that will return a identicon of an ethereum address. You can use this to power avatars or whatever in your webapp
JavaScript
10
star
21

node-irc-partychat-gateway

a node script that acts as a gateway between IRC and Partychat
9
star
22

gae-flickr-backup

A simple flickr backup app that pushes (most of) your photos into the App Engine blobstore
Python
8
star
23

glass_share

Share Google Glass media to an email address
Python
7
star
24

harper.eth

A simple eth landing page. Show off your NFTs, and ENS metadata
Vue
7
star
25

resume

Harper's resume
HTML
6
star
26

chicago-card-crawler

A crawler for the chicago card plus website.
Python
6
star
27

ctaalerts

CTA Alerts api class
Python
6
star
28

partychat-markovchain-bot

A markov chain bot for @partychat
Python
5
star
29

ChicagoCanoeClub

chicagocanoeclub
JavaScript
5
star
30

simple-basecamp

simple-basecamp
Python
4
star
31

simple-simplegeo

In the vein of my simple-twitter client. here is a simple client for simplegeo.
Python
4
star
32

C4-API-bridge-python

Python class for the Houselogix Control4 HTTP Web API Bridge driver
Python
4
star
33

simple-twitter-client

stupid simple twitter client
Python
4
star
34

crisis-proposal-bot

Python
4
star
35

art.pizza

Vue
3
star
36

emfit-summary-bot

A simple bot that sends you a text of your previous nights sleep
JavaScript
3
star
37

twitter-things-to-opml

Get your twitter friends feeds, get your list members feeds, start reading feeds!
Python
3
star
38

modest-chat

Modest Chat
JavaScript
3
star
39

orbiting

a visual chat app
JavaScript
3
star
40

Polaroid600se-adapters

Adapters to add/hack backs for a Polaroid 600se camera
OpenSCAD
3
star
41

tweets

An archive of tweets by @harper. Generated by technoweenie/madrox. HT to @holman
Shell
3
star
42

simple-circleci

A python wrapper for the circleci REST api
Python
3
star
43

control4-drivers

3
star
44

2016

Countdown to 2016
JavaScript
2
star
45

look-at-the-camera

Look at the camera!!
HTML
2
star
46

harperreed

My readme
Python
2
star
47

ybox-php

PHP
2
star
48

smartthings

Smartthings.py
Python
2
star
49

Google-Latitude-Demo

Demonstration of how to use the Google Latitude API with PHP (CLI)
2
star
50

drydrop-sites

sites for my multidomain drydrop
JavaScript
2
star
51

simple-everyblock

Simple API Consumer for Everyblock's API
2
star
52

harperreed.github.com

harperreed.github.com
Ruby
2
star
53

horace-hubot

CoffeeScript
2
star
54

big-pptx

A simple python script that takes a dir of images and turns it into a pptx file
Python
2
star
55

3gDemon

3G(sprint) Phone download database generator
PHP
2
star
56

harper-media-hugo-theme

HTML
1
star
57

dotfiles

Dotfiles. Managed by YADM
Vim Script
1
star
58

homeassistant-config

Python
1
star
59

micromorts

HTML
1
star
60

dylans-stories

My brothers story prompts tweaked by GPT-3
1
star
61

reed.family

HTML
1
star
62

harpercraft.com

JavaScript
1
star
63

reedazawa-dashboard

A simple dashboard for my house
JavaScript
1
star
64

slides

Slides for talks
1
star
65

cta_clock

A bit of messy code that will update a quirky Nimbus clock with the Chicago CTA bus time near you
Python
1
star
66

busylight-for-mqtt

a quick python server for handling mqtt busy lights
Python
1
star
67

twitter2appdotnet

simple node app to sync twitter
JavaScript
1
star
68

simsim

A simple CLI to the anthropic worldsim prompt. Enjoy the quantum multiverse
Go
1
star
69

office-avatar-vrm

this is ridiculous
JavaScript
1
star