{ "info": { "author": "Samapriya Roy", "author_email": "samapriya.roy@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: GIS" ], "description": "# ghome: Simple CLI for Google Home & Mini\nThis is an application of the google home API Blueprint reported [here](https://github.com/rithvikvibhu/GHLocalApi). While a lot of the end points maybe of interest to quite a few people, I used the ones I use most and I thought would be most useful and created a command line tool for you to search for a Google home mini device and then use this tool to interact with it and perform actions as needed.\n\n## Table of contents\n* [Installation](#installation)\n* [Getting started](#getting-started)\n* [ghome Simple CLI for Earth Engine Uploads](#ghome-simple-cli-for-earth-engine-uploads)\n * [list](#list)\n * [reboot](#reboot)\n * [alarm](#alarm)\n * [do not disturb](#do-not-disturb)\n * [bluetooth status](#bluetooth-status)\n * [bluetooth scan](#bluetooth-scan)\n * [bluetooth paired](#bluetooth-paired)\n * [bluetooth discovery](#bluetooth-discovery)\n * [wifi scan](#wifi-scan)\n\n## Installation\nThis assumes that you have native python & pip installed in your system, you can test this by going to the terminal (or windows command prompt) and trying\n\n```python``` and then ```pip list```\n\nIf you get no errors and you have python 2.7.14 or higher you should be good to go. Please note that I have tested this only on python 2.7.15, but it should run on Python 3.\n\nTo install **ghome: Simple CLI for Google Home & Mini** you can install using two methods.\n\n```pip install ghome```\n\nor you can also try\n\n```\ngit clone https://github.com/samapriya/ghome.git\ncd ghome\npython setup.py install\n```\nFor Linux use sudo or try ```pip install ghome --user```.\n\nInstallation is an optional step; the application can also be run directly by executing ghome.py script. The advantage of having it installed is that ghome can be executed as any command line tool. I recommend installation within a virtual environment. If you don't want to install, browse into the ghome folder and try ```python ghome.py``` to get to the same result.\n\n\n## Getting started\n\nAs usual, to print help:\n\n```\nusage: ghome [-h] {list,reboot,alarm,dnd,bstat,bscan,bpair,bdisc,wscan} ...\n\nSimple Google Home Mini Client\n\npositional arguments:\n {list,reboot,alarm,dnd,bstat,bscan,bpair,bdisc,wscan}\n list Lists all google home mini devices & IP address\n reboot Reboot a google home mini using IP address\n alarm Print out the current alarms setup on your google home\n mini\n dnd Enable or disable for a google\n home mini using IP address\n bstat Print current bluetooth status for a google home mini\n using IP address\n bscan Scan for Bluetooth devices near a google home mini\n using IP address\n bpair Print current paired bluetooth devices for a google\n home mini using IP address\n bdisc Enable or disable bluetooth discovery for a google\n home mini using IP address\n wscan Scan for Wifi networks near a google home mini using\n IP address\n\noptional arguments:\n -h, --help show this help message and exit\n```\n\nTo obtain help for specific functionality, simply call it with _help_ switch, e.g.: `ghome wscan -h`. If you didn't install ghome, then you can run it just by going to *ghome* directory and running `python ghome.py [arguments go here]`\n\n## ghome Simple CLI for Earth Engine Uploads\nThe tool is based on curret unofficial API blueprint published for the device and is subject to change in the future.\n\n### list\n**This is a key step since it lists all google home mini devices in your wifi, it used nmap to identify said devices. You can avoid this tool by using a third party tool like [Fing] to identify your google home devices.Usage is simply\n\n``` ghome list```\n\n### reboot\nJust a simple tool to reboot your google home device quickly.\n\n```\nusage: ghome reboot [-h] [--ip IP]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n```\n\n### alarm\nThis tool will simply list all alarms currently on your device including date , time and time zone.\n\n```\nusage: ghome alarm [-h] [--ip IP]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n```\n\n### do not disturb\nEnable or disable do not disturb mode on the Google home mini.\n\n```\nusage: ghome dnd [-h] [--ip IP] [--action ACTION]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n --action ACTION enable|disable do not disturb mode\n\n```\n\n### bluetooth status\nThe bluetooth status prints whether the device discovery is enabled,whether scanning is enabled and whether it is connected to a device.\n\n```\nusage: ghome bstat [-h] [--ip IP]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n```\n\n### bluetooth scan\nThis prints bluetooth status, including is possible bluetooth device name and mac name\n\n```\nusage: ghome bstat [-h] [--ip IP]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n\n```\n\n### bluetooth paired\nCheck if device is paried via bluetooth to any current device as well as history of all deviced connected, last connected and whether or not they are currently connected.\n\n```\nusage: ghome bpair [-h] [--ip IP]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n\n```\n\n### bluetooth discovery\nThis is to enable or disable bluetooth discovery to allow for pairing as needed. The action can be enable or disable coupled with the ip.\n\n```\nusage: ghome bdisc [-h] [--ip IP] [--action ACTION]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n --action ACTION enable|disable bluetooth discovery\n```\n\n### wifi scan\nPrints the wifi scan results of all available wifi connections and their ssid based on the proximity of the device to other connections. You might want to run this twice, since it may not build the device cache directly.\n\n```\nusage: ghome wscan [-h] [--ip IP]\n\noptional arguments:\n -h, --help show this help message and exit\n\nRequired named arguments.:\n --ip IP Use \"ip\" for Google Home Mini device\n\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/samapriya/ghome", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "ghome", "package_url": "https://pypi.org/project/ghome/", "platform": "", "project_url": "https://pypi.org/project/ghome/", "project_urls": { "Homepage": "https://github.com/samapriya/ghome" }, "release_url": "https://pypi.org/project/ghome/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Simple CLI for Google Home & Mini", "version": "0.0.1" }, "last_serial": 4738039, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3c486b8a3e87bbc7dfa90ee43198c2cd", "sha256": "c8821b33b94a909fcbe0a344f6f0b60c4c48c5d6f91574723dd57eeca0d99ee4" }, "downloads": -1, "filename": "ghome-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3c486b8a3e87bbc7dfa90ee43198c2cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6817, "upload_time": "2019-01-25T01:21:43", "url": "https://files.pythonhosted.org/packages/89/d9/02463afbea4bebe6bd03d8aac97e3b2bfcac40e814fbe0f82d2780efd8b1/ghome-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c486b8a3e87bbc7dfa90ee43198c2cd", "sha256": "c8821b33b94a909fcbe0a344f6f0b60c4c48c5d6f91574723dd57eeca0d99ee4" }, "downloads": -1, "filename": "ghome-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3c486b8a3e87bbc7dfa90ee43198c2cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6817, "upload_time": "2019-01-25T01:21:43", "url": "https://files.pythonhosted.org/packages/89/d9/02463afbea4bebe6bd03d8aac97e3b2bfcac40e814fbe0f82d2780efd8b1/ghome-0.0.1.tar.gz" } ] }