Resource icon

Sportzcast LiveXML Text 0.3

discorny

New Member
discorny submitted a new resource:

Sportzcast LiveXML Text - Changes text to relevant data in text sources with names that match XML tags from Sportzcast LiveXML

Modified from Jim's url-text.py
I am not a programmer, so use at your own risk. I hacked this together one day because I needed to get data from a Sportzcast Scorebot into OBS. This uses the XML file created by Sportzcast's LiveXML software and looks for text sources with names that match XML tags in the XML file.

E.g, To get <clock> data, create a new text source named %clock%

View attachment 77557

It does spit out an error every once in a while that I think is related to...

Read more about this resource...
 

Summers331

New Member
Could you explain this a little more in depth to a non-programmer, just an athletic's guy. I just bought a Scorelink and I'm trying to avoid using VMix and would like to stay in OBS as I've built and run my sports livestreams through this over the past year. Any help would be appreciated.
 

jeremydmeyer76

New Member
I am needing a script that does something similar to this.

I have an xml file that I'm trying to get sensor data from to add as an overlay on my feed.

I know next to nothing about writing code or programming.

I used your existing script and tried modifying it to look for the <probe> tag instead of <clock>. When I added %probe% as a text source it doesn't seem to populate.

I want to be able to make this work without learning to have to write a script from scratch but so far I'm not having any luck.
 

discorny

New Member
Could you explain this a little more in depth to a non-programmer, just an athletic's guy. I just bought a Scorelink and I'm trying to avoid using VMix and would like to stay in OBS as I've built and run my sports livestreams through this over the past year. Any help would be appreciated.
I'm very sorry, I did not know that this upload was approved by the mods, let alone that people had asked me questions.
Basically you need to install python 3.6 (windows), in OBS select Tools > Scripts > Python Settings and select the python install location, for me this is C:/Users/**my username**/AppData/Local/Programs/Python/Python36. Then switch back to the Scripts tab in the OBS Scripts window, click + and choose the file you downloaded here. Then just follow the instructions in the description to import your scoredata.
I have not used it on a mac but i figure it should work the same. I also haven't used a scorelink, I use a scorebot and I'm not sure how different they are.
 

discorny

New Member
I am needing a script that does something similar to this.

I have an xml file that I'm trying to get sensor data from to add as an overlay on my feed.

I know next to nothing about writing code or programming.

I used your existing script and tried modifying it to look for the <probe> tag instead of <clock>. When I added %probe% as a text source it doesn't seem to populate.

I want to be able to make this work without learning to have to write a script from scratch but so far I'm not having any luck.
I'm not sure how your xml file is set up. This plugin looks specifically for the root element in the xml and then lets you choose which child element to pull data from. in this case it sees that <info> is the root element:
Code:
<?xml version="1.0" encoding="utf-8"?>
<info>
  <site>*Internal Test BOT</site>
  <sport>Football</sport>
  <clock>13:07</clock>
  <clockmin>13</clockmin>
  <clocksec>07</clocksec>
  <playclock>21</playclock>
  <Hscore>13</Hscore>
  <Vscore>12</Vscore>
</info>

I could probably modify it to make it more flexible, but that might take me a while since I'm not much of a programmer myself. You could modify it yourself and change the line looking for the root element to look for your specific "parent" element.
 
Top