14 April 2020, 17:42 | #1 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 540
|
TCP/IP Scripting
Hi all,
I'm working on a modplaying streaming tool using EaglePlayer, and possibly the Arexx Port. I was hoping to load a track, extract title data, hit play and send the title data via TCP/IP to a service on a raspberry Pi that would integrate the title into a stream with ffmpeg and some animations that I can send to YouTube for a weekly stream I'm thinking of running. Does anyone know where I can find some info on how to use TCP/IP via Arexx? Specifically I'd like to make HTTP requests to a simple Flask app on the Pi that can kick off recording. |
14 April 2020, 20:42 | #2 |
Amigan
Join Date: Feb 2012
Location: London
Posts: 1,309
|
There is a TCP: device in most stacks.
You need to use normal file I/O to write to TCP:hostname/80 (or maybe TCP:hostname/http). AmigaOS is pretty neat sometimes. My ARexx is rusty, can't help with the specifics. |
14 April 2020, 21:02 | #3 |
Registered User
Join Date: Jul 2014
Location: Finland
Posts: 1,176
|
might be a bit of a pain in the arse to set headers and write POST's with potentially request bodies in just plain rexx + TCP sockets.. not undoable ofcourse.
There's also just curl for AmigaOS: http://aminet.net/package/comm/tcp/curl-7.10.5 |
14 April 2020, 21:34 | #4 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
|
02 August 2021, 18:13 | #5 |
Registered User
Join Date: Jul 2021
Location: Chicago, IL
Posts: 1
|
I am new to TCP/IP scripting, actually, and I am also looking to do a similar project. The problem is, I cannot find any information or some guides about using TCP/IP via Arexx. The idea of sending the title data via TCP/IP to a service on a Raspberry Pi that would integrate the title into a stream is outstanding. Have you made it? I did not even think about such a thing, but it sounds like something constructive. I have actually decided to abandon the project and hire some javascript specialists to finish it. I have found some fantastic freelancers on https://ithire.com/category/javascript-developers. You can find an insane number of freelance specialists on this platform, basically out of any domain.
Last edited by Marilami; 04 August 2021 at 18:08. |
03 August 2021, 08:32 | #6 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,006
|
I've used the TCP: device solution many times from ARexx and other scripts. You can check a full example here: http://aminet.net/package/mus/play/MultiMeedio
In other example I made it like this (to fetch weather infos): Code:
IF Open('f','TCP:someaddress.atsomewhere.com/80','RW') THEN DO WriteLn('f',"GET /weather.html HTTP/1.0") WriteLn('f',"") DO i=1 TO 19 rivi=readln('f') END ...and so on.... Close('f') The TCP: device wasn't enabled on all stacks (was on AmiTCP/IP), but maybe all offer that still? Either as a switch or mountlist. Last edited by jPV; 03 August 2021 at 08:39. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ARexx scripting: How to | BigFan | Coders. Scripting | 103 | 21 December 2023 06:14 |
Very Basic Scripting. Confused. | marduk_kurios | Coders. System | 5 | 06 February 2014 11:13 |
C= 64 BASIC as a Scripting Language | Charlie | Retrogaming General Discussion | 2 | 17 November 2008 14:23 |
AmigaDOS 1.3 Scripting Language | redblade | Coders. General | 10 | 16 August 2008 12:58 |
|
|