WELCOME TO EHOST.COM.NP

Wednesday, January 17, 2018

The Google Home has an undocumented local API that you can now access

ads space

Google Home, Google’s growing lineup of AI-powered speakers, offers a wealth of possibilities for smart home hobbyists. Problem is, it’s locked down pretty tightly. When it comes accessing alarms data, settings, Bluetooth modes, and other on-device info, you’ve got two options: Checking the Google Home companion app on your smartphone and/or tablet, or shouting a command. As of right now, Google Home lacks a proper API.

That hasn’t stopped an intrepid developer on the Google Home subreddit from piecing together one himself. Redditor rithvikvibhu painstakingly sniffed a Google Home device’s traffic and recorded each network request, collating the results in a nifty cheat sheet on Github. So far, he’s managed to identify local GET and POST commands for equalizer settings, device options, night mode, and more, in addition to connectivity requests that return a given speaker’s Wi-Fi configuration, its supported list of timezones and locales, and the names of bonded Bluetooth devices.

It’s a relatively simple process. After you’ve identified the IP address of your Google Home speaker by using an app like Fling, you can make GET and POST calls by appending the address with URIs in the Google Home local API documentation.

This URI, for example, grabs a list of local alarms and timers on a Google Home speaker:


/setup/assistant/alarms

Here’s the GET call (the “X” marks are placeholders):


http://192.168.x.x:8008/setup/assistant/alarms

Navigating to that address on any device connected to the same network as the Google Home will return a JSON response with the day, month, year, and time the alarm is scheduled to sound:

Source: Google Home Local API

This related URI returns the alarm and timer volume on a Google Home speaker:


/setup/assistant/alarms/volume

The POST call returns the volume level in decimal form:


0.8199999928474426

If you’re feeling brave, this URI reboots a Google Home device:


/setup/reboot

The unofficial documentation for the Google Home’s local API is available on rithvikvibhu’s Github repository, along with the code required to use it. Keep in mind, though, that it’s in no way official — don’t expect the APIs to behave predictably.


Source: Google Home Local API Source 2: /r/GoogleHome

Want more posts like this delivered to your inbox? Enter your email to be subscribed to our newsletter.

ads space
ADS SPACE

0 comments:

Post a Comment

Categories

Article How-to All Posts WordPress Android Web design Blogger Plugins CSS Google JQuery Plugins Programming Reviews Web Hosting Blogger Blogging Blogging Tips Tricks Web Development Facebook Git Internet Make Money Online Social Plugins Tips Tips and Tricks Tools Tutorials Windows WordPress Plugins Blogging Tips and Tricks Freebies GSM Google Analytics HTML How To's JavaScript Plugin Development S.E.O SEO SMS SmartPhone Social Media Tips amp; Tricks Top-Most Updates Webmaster Tools Whatsapp Applications Apps Blogger Basics Documentary Downloads Entertainment Gadgets Games Gmail Google AdSense Guest Post IPhone Make Money Blogging SVN Security Softwares Web Hosting Tips and Tricks Wordpress Tips Wordpress Tips and Tricks hostgator iOS Advertising Networks Advertising Technology Affiliates Antivirus Audience amp; Traffic Biography Blog post Blog post Blogger Blogger Errors Blogger Tips Blogger Tools Blogger Widget Blogosphere Bogger Widgets CSS selectors CSS symbols CSS3 Computer amp; Internet Content Writing Coupon Codes Data amp; Analytics Deleted blog Design DoubleClick for Publishers Email and newsletter marketting Email marketing Excel Tips Excel Tips and Tricks Facebook Tricks Feed Feedburner Feedburner subscribers Font Fun GitHub Giveaways Gmail primary inbox Gmail tabs Google sign-in Guides HTML amp; CSS HTML5 Infographics Inspirational Instagram Internet Marketing Internet Tips amp; Tricks Job Listings Knowledge Life Hacks Lists Make-Money Monetization amp; Conversion Monetize Navigation Online Marketing Other PHP Tutorials Passport Publishing amp; Content Quotes RSS Sidebar Smartphones Social Networking Status Tech Tech Blog Technology Telegram Themes UI / UX User Psychology amp; Research VB.Net Web Tools Web browser Widget Windows Tips Windows-10 ad viewability admin notice blogging tools bluehost cherry-pick clone cors custom scrollbar customizer dismissible notices duplicate post feed title git branch git clone gpg gpg2 hybridauth iPad icon font notice responsive wordpress theme same origin policy scrollbar signed git commit smartsvn theme customizer vcs wordpress theme wordpress themes

Blog Archive