Graphics

 View Only
  • 1.  Datalinq Default URL Macros

    Posted 12 days ago
    Hi
    I'm trying to set up an RSS/HTTP Datalinq, and want to use a macro in the URL. Below is an example of what I want to achieve
    URL is: http://feeds.bbci.co.uk/news/rss.xml?edition=%edition%

    %edition% has been set as a macro in Default URL Macros, without the % sign at each end. So in the Datalinq Default URL Macros tab, Name is set to edition, and the Value set to uk.
    This should then pull down the BBC RSS feed. But looking at the log window, it appears that %edition% is not being expanded to its value, and the URL is then invalid, so I get no returned data.
    What am I doing wrong here?
    This is on v11.0 of Datalinq. v10.5 didn't work either.
    My actual use case is different, but this proves what I'm trying to achieve.
    Thanks
    Simon

    ------------------------------
    Simon Latus
    Simon Latus Media Ltd
    United Kingdom
    ------------------------------


  • 2.  RE: Datalinq Default URL Macros

    Posted 9 days ago
    hello Simon.
    A little wrong
    There are following rss
    http://feeds.bbci.co.uk/news/rss.xml - top stories
    http://feeds.bbci.co.uk/news/uk/rss.xml - UK
    http://feeds.bbci.co.uk/news/politics/rss.xml - politics
    http://feeds.bbci.co.uk/news/education/rss.xml - education
    etc.

    this results in a scheme
    http://feeds.bbci.co.uk/news%edition%/rss.xml

    and macros "edition":
    "" - empty without text for top stories
    "/uk"
    "/politics"
    "/education"
    etc.


    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 3.  RE: Datalinq Default URL Macros

    Posted 8 days ago
    Hi Roman
    Thanks for this.
    Where are you setting %edition%? Ideally I'd like to do it within Datalinq and not feed in macro data from XPression.

    thanks
    Simon

    ------------------------------
    Simon Latus
    Simon Latus Media Ltd
    United Kingdom
    ------------------------------



  • 4.  RE: Datalinq Default URL Macros

    Posted 8 days ago
    Hi Simon
    I think it would be better for understanding to describe the task in full
    Everything you need about it is here
    I can offer you this option.


    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 5.  RE: Datalinq Default URL Macros

    Posted 8 days ago
    Hi Roman
    Thanks for all your help with this. The way I want to implement this works if I use Dynamic URLs, but not Static. No reason why I can't use Dynamic, but would like to know why the Static version fails. If you open the log viewer in Datalinq, it comes up with invalid URL, which it would do if the %feed% macro is not being expanded.

    What is wrong the the way I have this as per below? It's as if in Static URL mode, any macro in the Default URL Macros tab is being ignored. Switch it to Dynamic, and it works.
    Simon


    ------------------------------
    Simon Latus
    Simon Latus Media Ltd
    United Kingdom
    ------------------------------



  • 6.  RE: Datalinq Default URL Macros

    Posted 8 days ago
    Hi Simon.
    Static mode only works with direct URLs, no macros. Macros can only be used in Dynamic mode.

    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 7.  RE: Datalinq Default URL Macros

    Posted 8 days ago
    ok, thanks

    Simon

    ------------------------------
    Simon Latus
    Simon Latus Media Ltd
    United Kingdom
    ------------------------------



  • 8.  RE: Datalinq Default URL Macros

    Posted 7 days ago

    Hey Simon,
    You're hitting on something I've been confused about for a long time.

    With a Static URL, you're allowed to use %macroname%, but when you look at Default Macro URLs, they are for url "macros that would normally be set by Datalinq Keys in a scene", but Static datalinqs can't use %datalinqkeys%... What?

    I've always used Static URLs for our projects, so one direct URL per Datalinq Source, which can be unwieldy as our projects have grown and gotten more complex. I tried to get Dynamic to work for us, but never seemed performant enough for my use-cases, so always fell back to Static or had to build in large workarounds for Dynamic data.

    Luckily, with XPression 11, they did introduce Table Presets for Static URLs which has been a godsend.
    Would still love to find a way to build my table preset without operators getting into Datalinq Server (like I would before with Dashboard -> Datalinq Keys), but hugely a step in the right direction.

    So, the table that Roma showed you will work with Static, you just have to check the Use Table Presets checkbox under Static URL.

    What I do is use a %DatalinqKey% or @textMacro@ in the Table field for the datalinq in XPression, and have that object as a Template Link so as you build your sequencer, you can tell the scene which URL you want it to use.



    Using the %track% datalinq key to determine which URL to use:

    Datalinq Keys are just tied to Text Objects in the scene:

    The i_Track text object Data Source:

    The Published Objects for the scene in the Sequencer:

    Could be cleaner for sure, but I have it abstracted in a way that hopefully an Operator could add new scenes to the Sequencer if the occasion arose that they needed to and I wasn't available.

    ​Not sure if all that helps, but figured I would chime in since this is something I've spent a lot of time on myself.

    ------------------------------
    Mike DeMarco
    Video Production Engineer
    Las Vegas United States
    ------------------------------



  • 9.  RE: Datalinq Default URL Macros

    Posted 7 days ago
    Hi Mike
    Thanks for this.
    Sounds like I've misunderstood the Default Macros tab completely!
    I can do what I need using Dynamic URL.
    I can't add it to the XPression project yet so as to avoid dipping in and out of Datalinq as the value I need to pass to make the URL is a long string, and I need to marry it up with other data. But by do this as a dynamic URL I don't have to copy and paste a long UUID into the middle of a URL, so less mistakes!

    Thanks
    Simon

    ------------------------------
    Simon Latus
    Simon Latus Media Ltd
    United Kingdom
    ------------------------------