Deployed Host and DACS ID

I want to use the Python: How to configure the JSON file to ld.open_session('platform.rdp'). I attempted to create a platform session (platform.ldp), but I couldn't get it to work because I dont know my Deployed host and DACS ID - where can I get this?

"sessions": {

        "default": "platform.ldp",

        "platform": {

            "ldp": {

                "app-key": "f6bfc703497749ce91a4ef06254ee94b5619dc4d",

                "username": "anca.oltean@ntnu.no",

                "password": "PASS"

            },

            "deployed": {

                "app-key": "f6bfc703497749ce91a4ef06254ee94b5619dc4d",

                "realtime-distribution-system": {

                    "url" : "YOUR DEPLOYED HOST:PORT GOES HERE!",

                    "dacs" : {

                        "username" : "YOUR DACS ID GOES HERE!",

                        "application-id" : 256,

                        "position" : ""

                    }

                }

            }

        },

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    edited February 21

    @CDTiamzon

    Thank you for reaching out to us.

    If you would like to use the platform.ldp session, there is no need to configure the platform.deployed session.

    The code to open the plaform.ldp session is:

    ld.open_session('platform.ldp')
    

    However, you need to set the LD_LIB_CONFIG_PATH enviornment variable, as shown in the examples.

    import os
    os.environ["LD_LIB_CONFIG_PATH"] = "../../Configuration"