Multiple commands

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
Elric
Posts: 8
Joined: Mon Dec 09, 2019 8:08 am

Multiple commands

Post by Elric »

Hi,

I've set up a card to shutdown the pc but when i say the command i'd like to:

Shutdown the PC
turn off the lights of the desk

how can i do that?

Thanks
RobLatour
Site Admin
Posts: 1017
Joined: Mon Feb 19, 2018 11:43 am

Re: Multiple commands

Post by RobLatour »

How are your desk lights controlled?
Elric
Posts: 8
Joined: Mon Dec 09, 2019 8:08 am

Re: Multiple commands

Post by Elric »

Govee and smart light, through google home

Actually i could not find the proper command to shut down the pc as well
RobLatour
Site Admin
Posts: 1017
Joined: Mon Feb 19, 2018 11:43 am

Re: Multiple commands

Post by RobLatour »

How to shut down your computer is described here:
https://push2run.com/examplecards.html

With respect to your smart lights, Push2Run is more about controlling your PC.

However, if your Govee lights can be controlled by IFTTT you may be able to set up an IFTTT applet that both turns off your lights and issue a trigger for Push2Run to use to shut down your computer. However, of note, IFTTT only supports multiple actions like that if you have a pro account with them.
Elric
Posts: 8
Joined: Mon Dec 09, 2019 8:08 am

Re: Multiple commands

Post by Elric »

I tried this
to shutdown your computer: /s /t 10 /c "requested by home automation"
But didn't seemed to work


I
RobLatour
Site Admin
Posts: 1017
Joined: Mon Feb 19, 2018 11:43 am

Re: Multiple commands

Post by RobLatour »

Can you please copy the contents of your session log into a post on this forum? Also, could you please attach a screenshot of your Push2Run card?

Thanks
Elric
Posts: 8
Joined: Mon Dec 09, 2019 8:08 am

Re: Multiple commands

Post by Elric »

The command seems to work now but it's kinda slow.

Also, besides taking an premium plan on IFTTT is there another way for multiple commands ? can i make two applets with the same trigger or it won't work?

i wanna do a "lazy" command, when i'm in bed crashing and turn off all of the pc and desk light at the same time haha
Attachments
Capture d’écran 2021-03-29 080535.jpg
Capture d’écran 2021-03-29 080535.jpg (45.64 KiB) Viewed 3395 times
RobLatour
Site Admin
Posts: 1017
Joined: Mon Feb 19, 2018 11:43 am

Re: Multiple commands

Post by RobLatour »

Hi,

The /t parameter is used to set the time until the shutdown happens. In your example below you are using
/t 10
if you want it to start the shutdown in five seconds you would use
/t 5

With respect to multiple commands in one shot, I am working on something now in Push2Run, for a future release, that will allow you to say
ok google, tell my computer to do a and b
and have both a and b run assuming both have Push2Run cards set up for them.

However, as stated earlier, Push2Run is more about controlling your PC (and by extension things that you can control with your computer). If you can control your lights via your computer then this should work for you, otherwise, you will need something else to control your lights which may or may not be IFTTT depending on if IFTTT supports them or not.
Elric
Posts: 8
Joined: Mon Dec 09, 2019 8:08 am

Re: Multiple commands

Post by Elric »

Oh ok great well i could always say two commands and live with if for now haha thanks :)
Post Reply