Pira.cz Technical Forum

Magic RDS 4 => Configuration Options and Possibilities => Topic started by: rjh008 on December 13, 2023, 12:26:34 pm

Title: Sending from Magic 4 to webserver running php script using http GET?
Post by: rjh008 on December 13, 2023, 12:26:34 pm
Hi, Magic 4 is working fine for sending RDS to the 164 Encoder I am using connection 1 with TCP that is connected and working. I now have a DAB encoder that needs to read the now playing from a text file on a webserver. I have a PHP script that runs on the webserver but I cant figure out how to send the same info that is going to the RDS connection1 to HTTP Push.
I have set up a Bridge connection but its not receiving / sending as far as i can tell...
Title: Re: Sending from Magic 4 to webserver running php script using http PUSH ?
Post by: Jan on December 13, 2023, 12:33:19 pm
I think your setup only requires a few corrections:

1)
In the External Text tool, section Output, add following line:
sendto "DAB"

Explanation: Bridges are not included automatically when you fill the *

2)
In the DAB connection properties, remove the line sendto *, as you only need to send that text to the http server
Title: Re: Sending from Magic 4 to webserver running php script using http GET?
Post by: rjh008 on December 13, 2023, 03:34:51 pm
Hi i have done what you said can I check that this URL is correctly formatted ? Im looking for the data to be in the variable "s"
 sendhttp url:"https://server/NowPlaying/showhrp.php?key=XXXXXXXXXXX;s=%data%"
Title: Re: Sending from Magic 4 to webserver running php script using http Post?
Post by: rjh008 on December 13, 2023, 03:53:32 pm
I think i see the issue - haha i have used the ; rather than the & in the post URL ! Thanks for your assistance a great product !
Title: Re: Sending from Magic 4 to webserver running php script using http PUSH ?
Post by: brainycheep on January 15, 2024, 05:16:12 am
I think your setup only requires a few corrections:

1)
In the External Text tool, section Output, add following line:
sendto "DAB"

Explanation: Bridges are not included automatically when you fill the *

2)
In the DAB connection properties, remove the line sendto *, as you only need to send that text to the http server
I have tried and it's worked.