occ-ai / obs-urlsource

OBS plugin to fetch data from a URL or file, connect to an API or AI service, parse responses and display text, image or audio on scene
https://obsproject.com/forum/resources/url-api-source-fetch-live-data-and-display-it-on-screen.1756/
GNU General Public License v2.0
130 stars 18 forks source link

Key/Value format .txt file Preset/Format? #95

Closed monkeejuice25 closed 1 month ago

monkeejuice25 commented 1 month ago

Feature Request: Just following up here per your OBS Forum response to my inquiry about the possibility of adding preset functions for parsing key/value format .txt file requests. Great work on the plugin!

royshil commented 1 month ago

what is the format of your file? also - would you be able to supply it in JSON format? b/c then the parser already supports it and JSON is naturally a key-value format

monkeejuice25 commented 1 month ago

The key/value data request would periodically update into a local .txt file.

The format:

pos1fname=Bryan pos1lname=Thomas pos1num=58 pos1additional=Texas Roadhouse

..etc.

I assume that this is a very simplified method of K/V

monkeejuice25 commented 1 month ago

Hey Roy,

Let me clarify a bit. The local .txt file is periodically updated via a portal that handles the .txt update.
All the plugin needs to request from is the .txt file.
The aforementioned format is the common format for this live race timing service provider.
royshil commented 1 month ago

@monkeejuice25 no problem i will add it as a parser. just need a few more days to wrap up some pressing work..

royshil commented 1 month ago

implementd in #97

royshil commented 1 month ago

closing.