pygooglehomenotifier
google-home-notifier for python
Description
This library is that adds voice speech function to PyChromecast. For Python 3.6+.
Install
$ pip install pygooglehomenotifier
Usage
Note You need to keep the port open for mdns (5353/udp).
>> import pygooglehomenotifier
>> # Get all googlehomes on your network (use mdns)
>> googlehomes = pygooglehomenotifier.get_googlehomes()
>> # Get googlehome by IP Address
>> googlehomes = pygooglehomenotifier.get_googlehomes(ipaddr = "xxx.xxx.xxx.xxx")
>> # Get googlehomes by friendly name (use mdns)
>> googlehomes = pygooglehomenotifier.get_googlehomes(friendly_name = "xxxxxxx")
>> # Get googlehomes by UUID (use mdns)
>> googlehomes = pygooglehomenotifer.get_googlehomes(uuid = "xxxx-xxxx-xxxx-xxxx")
>> # Wait connecting
>> googlehomes[0].wait()
>> # Notify (asynchronous)
>> googlehomes[0].notify("Test.", lang = "en")
>> # Play mp3 file (asynchronous)
>> googlehomes[0].play("https://xx/xx/xx/xx.mp3")
>> # Suspend playback
>> googlehomes[0].pause()
>> # Resume playback
>> googlehomes[0].resume()
>> # Check if notifing message or playing mp3 file
>> googlehomes[0].is_playing()
>> # Wait for playback to complete
>> googlehomes[0].block_while_playing()
Requirement
- PyChromecast
Author
Licence
Metadata
Release files for PyGoogleHomeNotifier 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyGoogleHomeNotifier-0.1.1.tar.gz | 3.2 kB | Without provenance | Details for PyGoogleHomeNotifier-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyGoogleHomeNotifier-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for PyGoogleHomeNotifier-0.1.1-py3-none-any.whl |
Total release size: 7.5 kB
Release files / PyGoogleHomeNotifier-0.1.1.tar.gz
| Download URL | PyGoogleHomeNotifier-0.1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3a3849c6b1025ce5716fbc439bcc33e85afbf5fd1142a75c5d5189e57c5c677
|
|
BLAKE2b-256 checksum How to use checksums |
3c6b61c37ae83e72ff6946789f7be1fc99be2a93c8a8ecfe57e2c5525d3d2abc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
|
Release files / PyGoogleHomeNotifier-0.1.1-py3-none-any.whl
| Download URL | PyGoogleHomeNotifier-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac269ba5e12106e6c4c837e833808781b5e7eb81d3f75bf52f447a7562bb1154
|
|
BLAKE2b-256 checksum How to use checksums |
852f189c8108157c463605e9bb8ce3eb6edab746bf8df38471c9259a5cf0514c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
|
Security for PyGoogleHomeNotifier 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.