• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Trying to use Http Request with Automagic for android to do some task but I can get it to work.

General Discussion
2
3
426
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    Noah Nauman
    last edited by Nov 18, 2020, 2:15 AM

    I have some HTTP request working with fine with Tasker on my to do some things for me. I want to use some of these request with Automagic for Android so I can have some shortcuts on my wear os watch. I have the task in tasker setup with following which works perfectly:

    Method:
    Post
    URL:
    https://triggercmd.com/api/Tasker
    Query Parameters:
    trigger:Turn On Computer
    computer:HomePi
    token:(My token)

    How do I move this HTTP request to Automagic?

    R 1 Reply Last reply Nov 18, 2020, 11:13 PM Reply Quote 0
    • R
      Russ @Noah Nauman
      last edited by Russ Nov 18, 2020, 11:15 PM Nov 18, 2020, 11:13 PM

      @Noah-Nauman, are you trying to use this?

      https://automagic4android.com/trigger_http_request_en.html

      If so, it looks that doesn't make a request to external sites like TRIGGERcmd's API. That feature seems to request something on your own phone. It gives these examples:

      • Send an SMS from your Phone using your PC when the URL http://192.168.1.XX:8080/sms?receiver=12345&text=test is requested.
      • Return a page with the list of files on the SD card when the URL http://192.168.1.XX:8080/files/xyz is requested.

      But, if Automagic can do a request to an external site, here's a simple URL format for a GET request:

      https://www.triggercmd.com/api/run/triggerSave?computer=HomePi&trigger=Turn On Computer&token=(token)

      Russell VanderMey

      N 1 Reply Last reply Nov 19, 2020, 10:56 PM Reply Quote 1
      • N
        Noah Nauman @Russ
        last edited by Nov 19, 2020, 10:56 PM

        @Russ got it to work (spaces need %20 in names for anyone looking this up in the future).

        Thanks a million. So cool to use commands on my fossil

        1 Reply Last reply Reply Quote 1
        1 out of 3
        • First post
          1/3
          Last post