logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
DC Mike  
#1 Posted : Friday, March 24, 2017 1:10:47 PM(UTC)
DC Mike

Rank: Member

Groups: Registered
Joined: 8/19/2014(UTC)
Posts: 28

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
I'm trying to access a constantly updated XML file via FTP for live sports stats. Everything is working fine with a local XML file, but I'm not able to connect to the FTP server.

Server: ftp.xxxxxxx.com
Username: stats@xxxxxxx.com
Password: password

Here's what I'm putting in the Data Source URL/Filename: ftp://stats@xxxxxxx.com:password@xxxxxxx.com

I get this message: ERROR: The requested URl is invalid for this FTP command.

Is there a different format that will work? I'm out of ideas.

Thanks!

Mike Nelson
Media Services, Inc.
DWAM  
#2 Posted : Friday, March 24, 2017 1:23:56 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Hi Mike

I can see 2 reasons why it doesn't work

first your username is containing an @ which is normally the separator between credentials and destination server.

second such connections with credentials in the url is a major security issue and has been removed by some systems.

What you can try is to use a script with ftp commands to retrieve the xml file every x seconds and point vMix datasources to this "local" file

Hope this helps
Guillaume
DC Mike  
#3 Posted : Sunday, March 26, 2017 4:15:21 AM(UTC)
DC Mike

Rank: Member

Groups: Registered
Joined: 8/19/2014(UTC)
Posts: 28

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Hi Guillaume... Thanks for the reply.

I figured the "@" could be a problem. Also tried using %40, but that didn't work either. I've tried a ftp server that didn't require a "@" in the username, but still didn't work.

If I don't put in a password, vMix says "not logged in". There's no option to input a username or password as in a browser.

This really shouldn't be this difficult, and I've found nothing in the documentation. It would be nice for vMix to have the option to input ftp credentials when using ftp for Data Sources.


Mike
corporatejames  
#4 Posted : Sunday, March 26, 2017 5:00:39 AM(UTC)
corporatejames

Rank: Advanced Member

Groups: Registered
Joined: 8/2/2015(UTC)
Posts: 364
Man
Australia
Location: Sydney

Thanks: 283 times
Was thanked: 76 time(s) in 62 post(s)
Is there a reason why you are accessing the file via FTP and not placing it inside a webserver and using http://path.com/file.xml?
Can be simple to setup the webserver or place on cheap host if needed.
thanks 1 user thanked corporatejames for this useful post.
DWAM on 3/26/2017(UTC)
DWAM  
#5 Posted : Sunday, March 26, 2017 5:02:47 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Quote:
This really shouldn't be this difficult


Well I don't know that but I think it is certainly easier to publish (and even securize) the XML to a web server. It's very weird to use the FTP protocol for such a file whose content is dynamic and supposed to be exploited in realtime. I'm always surprised to see how often the simplest things are made complicate by the misuse of technologies.

Did you try what I suggested? Writing a shell script?
DC Mike  
#6 Posted : Thursday, March 30, 2017 1:27:28 AM(UTC)
DC Mike

Rank: Member

Groups: Registered
Joined: 8/19/2014(UTC)
Posts: 28

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Quote:
Well I don't know that but I think it is certainly easier to publish (and even securize) the XML to a web server. It's very weird to use the FTP protocol for such a file whose content is dynamic and supposed to be exploited in realtime. I'm always surprised to see how often the simplest things are made complicate by the misuse of technologies.

Did you try what I suggested? Writing a shell script?


I'm told that the stats application only uploads via FTP. I'm concerned that it won't continually update, but they said it should.

In the meantime, I was able to configure the server so I'm able to retrieve the xml file in vMix, so if they can get the stats app to upload updated data, we should be good. Hopefully we'll get this figured out tomorrow.

Mike
DWAM  
#7 Posted : Thursday, March 30, 2017 4:42:04 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Hi Mike

I now seem to understand the FTP server we're talking about is your own. Right?

If so, why don't you simply make this FTP directory usable by your web server? This is the most typical scenario for use of FTP. I use FTP to send files to my web server so that they are given access by http protocol.

I don't know which web server you use but any web server can do this.
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.