vMix Forums
»
General
»
General Discussion
»
Accessing XML for Data Source via FTP
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.comPassword: 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/2/2015(UTC) Posts: 364 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.
|
1 user thanked corporatejames for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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?
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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.
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Accessing XML for Data Source via FTP
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close