Is there a way to map parameter?

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
bigboss97
Posts: 9
Joined: Sun Feb 24, 2019 7:19 pm

Is there a way to map parameter?

Post by bigboss97 »

I checked https://push2run.com/help_v2.1.1.0.html#command
and found that I can use $ sign as a placeholder.
In my case, I want to for example, say "open map of <a country>". The country will then map to a URL. Is there a way to map the country to a URL or I have to create for each URL an action?
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Is there a way to map parameter?

Post by RobLatour »

I'm sure there is a way to do what you want to do, but I'm a little unclear on if you want specific urls open for specific countries or not. If yes, you might also need a script or a batch file - but ultimately I suspect you can do what you want with only one push2run card.

if you want any map opened for a country, you can put the following in the Push2Run card's open field:

https://www.google.com/search?q=map+$&btnI

You can also create an ifttt apple to trigger it thru a variable text google assistant phrase that starts with 'open a map' and ends with the text ingredient (which is identified in Push2Run as the dollar sign.
bigboss97
Posts: 9
Joined: Sun Feb 24, 2019 7:19 pm

Re: Is there a way to map parameter?

Post by bigboss97 »

Thank you, I think script is the solution.
Post Reply