Coder Social home page Coder Social logo

Comments (3)

AlbertMN avatar AlbertMN commented on May 10, 2024 1

After some investigation, it seems there is a workaround that you can deploy. This sadly isn't something I can put out as an official applet, as that requires a paid account (which ACC doesn't have... it's expensive...)

How to fix this by making your own applet

1. Sign up for IFTTT platform
2. Make your own Google Drive & Google Assistant applet - follow this guide, and just use Google Assistant instead of Alexa
2.1 The fields in the Google Drive action should be;

  • File URL: https://placeholder.com/ (will be replaced shortly)
  • File name: computerAction.txt
  • Drive folder path: AssistantComputerControl/

3. After adding both the trigger (as Google Assistant) and the action (as Google Drive), click "Add filter code"
4. Paste the following code into the filter text area;

GoogleDrive.uploadFileFromUrlGoogleDrive.setUrl("https://acc.albe.pw/do_action.txt?a=" + encodeURI(GoogleAssistant.voiceTriggerWithOneTextIngredient.TextField));

This will encode the URL and result in the applet working! As said, this has to be done per. user, but it shouldn't take much longer than 5 minutes to do this.

from assistantcomputercontrol.

AlbertMN avatar AlbertMN commented on May 10, 2024

We've got Google Drive to blame for this. The "File URL" field in IFTTT when you use Google Drive doesn't encode the url to be correct before sending the request. You can't send a web request with a space, so when you try to do write_out with Google Drive and tell it to write multiple words, only the first world will be sent through - as you're experiencing.

So sadly the write out action doesn't really work for Google Drive until they (possibly) encode the URL and replace spaces with %20. If you want to help get this fixed, you can tweet at Google Drive and IFTTT on Twitter or try to get in touch with them in another way.

from assistantcomputercontrol.

DanieleR87 avatar DanieleR87 commented on May 10, 2024

Awesome! I'll try this, thank you!

from assistantcomputercontrol.

Related Issues (20)

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.