Code Monkey home page Code Monkey logo

gnotify's People

Contributors

bierdok avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

gnotify's Issues

sound management

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

Errors since last week

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:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

AttributeError (Var error with '.split')

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"

dependences needed in docker?

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

only notification sound at the first attempt

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.