Terminal command and string command

edited September 18 in MAIN

Hi,

when I send a command in the terminal it works and when I send it in millumin via the string server command it doesn't work. I don't get it.

My server is right and my port is ok also...

curl "http://127.0.0.1:3000/api/v1/start_or_stop?room_id=KT07YXC1&api_key=..."

Comments

  • Hello @Peppino,

    CURL is not a string command, it is an HTTP request. It is very different.

    You should rather use the Browser media (see Millumin's library).

    Best. Philippe

  • ok

    I've tried in the browser media but it doesn't work.


    It's really a command that gives an order to a software program, stagetimer.io, which starts the timer and stops the timer.


    Why does it work when I put this command in the terminal? How can I run this command from millumin? For example, when I run column 1, it also sends the CURL command.

  • Hello @Peppino,

    The command CURL in the Terminal is sending a HTTP request. Just like a browser asking for a web page. Use Safari and enter the address http://127.0.0.1:3000/api/v1/start_or_stop?room_id=KT07YXC1&api_key=... : what is the result ? It should work the same as in the Terminal.

    Another solution is to create a script in Millumin with the following code : do shell script "curl http://127.0.0.1:3000/api/v1/start_or_stop?room_id=KT07YXC1&api_key=..."

    Best. Philippe

  • mmm I'have try but not working too.


    But via the shell script I can tell the Terminal to run the command CURL? How can I do That?

Sign In or Register to comment.