bierdok / gnotify Goto Github PK
View Code? Open in Web Editor NEWGet notified on your Google Home device from text-to-speech
License: MIT License
Get notified on your Google Home device from text-to-speech
License: MIT License
Thank you very much for your program that allows me to speak my home. Would it be possible to make a change to change the volume of google home?
Thank you
Hello,
I use gnotify in a docker installation and allways works great, but recently it stop working
this is the error:
root@domoticz-oficial:/opt/domoticz/scripts/personales/GHome# gnotify -H 192.168.1.122 -l es Atencion
Traceback (most recent call last):
File "/usr/local/bin/gnotify", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/gnotify/gnotify.py", line 58, in main
from pychromecast import Chromecast
File "/usr/local/lib/python3.7/dist-packages/pychromecast/init.py", line 11, in
from . import socket_client
File "/usr/local/lib/python3.7/dist-packages/pychromecast/socket_client.py", line 23, in
from . import cast_channel_pb2
File "/usr/local/lib/python3.7/dist-packages/pychromecast/cast_channel_pb2.py", line 36, in
type=None),
File "/usr/local/lib/python3.7/dist-packages/google/protobuf/descriptor.py", line 755, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Installed it from github with pip3.
The script just won't start, showing the following error :
File "/home/pi/.local/bin/gnotify", line 11, in <module>
load_entry_point('gnotify==0.1.0', 'console_scripts', 'gnotify')()
File "/home/pi/.local/lib/python3.7/site-packages/gnotify/gnotify.py", line 20, in main
ips = os.getenv("GNOTIFY_IPS").split(',')
AttributeError: 'NoneType' object has no attribute 'split'
Apparently, it's caused by trying to split a null string. And in fact, the environment variables the script is trying to read are null, like GNOTIFY_LANG
or GNOTIFY_IPS
.
Running on a RPi 3B+ r1.2 with Raspbian Buster
Python 3.7.3 / pip 18.1
EDIT : Works with exporting manually the env variables. For exemple :
export GNOTIFY_LANG="fr-FR"
export GNOTIFY_IPS="192.168.1.4"
hello
this is ver y usefull for me a Works perfect in a raspberry.
but o try to run it in a docker container (domoticz) and not run. Maybe gnotify need any aditional librarys to run?
when i launch the comand no thing happends :-( not error but not sound
thanks
Hello Benoit, we share the same native language but I'll continue in English so almost people can understand.
Merci beaucoup for this excellent solution, installed in what... 1 minute ! Difficult to make easier :)
Here is my problem: at the first attempt to make my Home Mini speaks I'm only able to only hear a notification sound. At the second one I get the notification and the message (as expected).
Another guy has the same issue on the french Domoticz forum.
I don't have such issue with sox + libsox-fmt-mp3/libttspico-utils/stream2chromecast.
Any idea what could be the problem ?
Merci and best whishes for end 2019.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.