![]() The music streaming from Google Music uses ().Įnter your Google userid and password in the actions.py file in the line logged_in = api.login('YOUR_GMAIL_ID', 'YOUR_GMAIL_PASSWORD', Mobileclient.FROM_MAC_ADDRESS) this can be changed the under the YouTube_Autoplay function in the actions.py script. The number of autoplay tracks has been limited to a maximum of 10. In the API window, click on "All API Credentials" and in the drop down, make sure to have a tick (check mark) against the API Key that you just generated.ĭefault keyword for playing music from YouTube without autoplay is Stream.įor example, Stream I got you command will fetch Bebe Rexha's I Got You from YouTube.ĭefault keyword for playing music from YouTube with autoplay is Autoplay and Stream.įor example, Autoplay and Stream I got you command will play the requested I Got You and after the end of the track will autoplay susequent tracks. "From the API and services" option, select library and in the search bar type youtube, select "YouTube Data API v3" API and click on "ENABLE".ħ. Make a note of the created API Key and enter it in the actions.py script at the indicated location.Ħ. Click on create credentials and select API Key and choose close. Move your mouse pointer over "API and services" and choose "credentials".ĥ. On the left top corner, click on the hamburger icon or three horizontal stacked lines.Ĥ. Go to the projects page on your Google Cloud Console-> ģ. This makes use of the YouTube Data API v3.Īdding YouTube API and Generating API Keyġ. Syntax: "Hey Google, Turn Devicename On/Off"Īdvantage of using Sonoff-Tasmota over webserver is that, with Sonoff-Tasmota you can emulate a Wemo switch and control the NodeMCU using Amazon Alexa (Echo Devices) in addition to the GassistPi. Pi3 and Pi Zero users, assign the device names and device ip addresses in the main.py script and pushbutton.py script respectively, in the marked locations. Controlling NodeMCU running Sonoff-Tasmota firmware:ĭownload the Tasmota firmware from this linkįollow the instructions in the second video to upload the firmware properly. Syntax: "Hey Google, Trigger Turn Devicename On/Off"įor more guidelines follow the first video. Add the NodeMCU's IP address in the actions.py file. Add the wifi credentials, make the desired changes and upload the Arduino code onto the NodeMCU and get the IP address from the serial monitor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |