Send variables to parameters

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
cloudpg
Posts: 3
Joined: Sat Nov 24, 2018 11:01 am

Send variables to parameters

Post by cloudpg »

Buenas tardes, de primeras agradecer este gran programa ya que funciona genial. Mi consulta es la siguiente: ¿Es posible mandar variables desde google home?,
por ejemplo: "ok google, reproduce en youtube linkin park"
En el programa quedaria asi:
http://prntscr.com/lmg7ar

El programa mozilla se iniciaria y te muestraria el resultado de %var% que en este caso es linkin park en youtube.
----------------------------------------------------------------------------------------------------------------------------------------
Good afternoon, first thank this great program because it works great. My query is as follows: Is it possible to send variables from google home ?,
for example: "ok google, play on youtube linkin park"
In the program it would be like this:
http://prntscr.com/lmg7ar

The mozilla program would start and show you the result of %var% which in this case is linkin park on youtube.

I put it in Spanish since my English is not very good.
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Send variables to parameters

Post by RobLatour »

Yes, you can do this - please take a look at the first and fourth examples at this link:
https://www.push2run.com/examplecards.html

---

Sí, puede hacer esto. Por favor, mire los ejemplos primero y cuarto en este enlace:
[url]https://www.push2run.com/examplecards.html[/ url]

( translated using Google Translate - traducido usando Google Translate )
cloudpg
Posts: 3
Joined: Sat Nov 24, 2018 11:01 am

Re: Send variables to parameters

Post by cloudpg »

thank you very much for the help!, I tried to do it in the manner of example but when sending the request to google home, this only returns the variable I indicated and then does not match the "Listen for:".

I created it as the examples of the page, these are the steps I do in https://ifttt.com:

1. New applet
2. google assistant
3. Say a phrase with a text ingredient
4. I put in that I want to say "fotos de $ firefox" where $ is what I want to look for.

This returns in Push2Run only the word "$". I need you to return the entire sentence.
Example:
I want you to return me: "fotos de gatitos firefox".
But it returns me in push2run: "gatitos"

Is there another method to do it?

Attached image.
http://prntscr.com/lmvpis
http://prntscr.com/lmvr9t
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Send variables to parameters

Post by RobLatour »

Ifttt will only return in the text ingredient the words you say as replaced by the $ sign.

Try changing your ifttt applet to be:
Dile a mi computadora para obtener $

and when you say
"Dile a mi computadora para obtener fotos de gatitos firefox"

you will get
fotos de gatitos firefox
sent to push2run
cloudpg
Posts: 3
Joined: Sat Nov 24, 2018 11:01 am

Re: Send variables to parameters

Post by cloudpg »

But I would continue the problem. The operation of the Push2Run program if I understand it correctly, google home sends the request, IFFT indicates the result of "$", this sends it to Pushbullet and Pushbullet sends it to Push2Run, then here compares with the "Listen for:", then unless you do a "Listen for: gatitos" or "Listen for: fotos de gatitos firefox " it would not work, then it would already be predefining the phrase and there would be no variable.

I'm not sure, but that's what I understand. Sorry for my brain.
Post Reply