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%
You can use this for other XML Data as well but it will need to be formatted like so:
You can use the "Search Whole XML File" added in version 0.3 to allow pulling data that is not formatted just like above. WARNING: This may break something if you have multiple elements with the same name or use a parent element name.
Example:
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%
You can use this for other XML Data as well but it will need to be formatted like so:
You can use the "Search Whole XML File" added in version 0.3 to allow pulling data that is not formatted just like above. WARNING: This may break something if you have multiple elements with the same name or use a parent element name.
Code:
<?xml version="1.0" encoding="utf-8"?>
<info>
<parameter1>value1</parameter1>
<parameter2>value2</parameter2>
</info>
Example:
Code:
<?xml version="1.0" encoding="utf-8"?>
<info>
<Hscore>42</Hscore>
<Vscore>30</Vscore>
<possession>H</possession>
<Hpos>.</Hpos>
<Vpos>
</Vpos>
<Htimeouts>4</Htimeouts>
<Vtimeouts>3</Vtimeouts>
<HTOGraphic>- - - -</HTOGraphic>
<VTOGraphic>- - -</VTOGraphic>
<down>2</down>
<downtext>2nd</downtext>
</info>