English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System > Coders. Scripting

 
 
Thread Tools
Old 14 April 2020, 17:42   #1
stevelord
Registered User
 
stevelord's Avatar
 
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.
stevelord is offline  
Old 14 April 2020, 20:42   #2
nogginthenog
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.
nogginthenog is offline  
Old 14 April 2020, 21:02   #3
Locutus
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
Locutus is offline  
Old 14 April 2020, 21:34   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
Check:
http://aminet.net/package/comm/net/AMarquee
http://aminet.net/package/util/rexx/rmh
daxb is offline  
Old 02 August 2021, 18:13   #5
Marilami
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.
Marilami is offline  
Old 03 August 2021, 08:32   #6
jPV
Registered User
 
jPV's Avatar
 
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')
Well.. fixed do loop doesn't seem that good idea anymore etc, but you get the point

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.
jPV is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:55.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08114 seconds with 13 queries