This shows you the differences between two versions of the page.

Link to this comparison view

dglux5_wiki:getting_started:access_dsa_data [2019/07/17 19:17] (current)
Line 1: Line 1:
 +====== Access DSA Data ======
 +If you use DGLux5 with [[http://​iot-dsa.org/​|DSA data]], you access your data by first [[http://​iot-dsa.org/​download-dsa | installing DGLux5]], then starting a link, and finally configuring your connection. The steps to configure a connection are different for each [[http://​iot-dsa.org/​how-it-works|DSLink]]. To discuss DSLink questions, use these [[http://​iot-dsa.org/​community | community resources.]]
 +===== Add a new DSLink =====
 +You can add DSLinks when you install your DGLux5 package, or you can add them later. To add a link after installation:​
 +  - Click the [[dglux5_wiki:​workspace_and_workflow:​panels_and_menus:​data_panel|Data panel]] tab behind the [[dglux5_wiki:​workspace_and_workflow:​panels_and_menus:​project_panel|Project panel]].
 +  - Expand **sys**, and right-click **links**.
 +  - <​WRAP>​Choose one of these installation methods:
 +  * **Install Link from Git** โ€“ Enter the download URL and the name that you want to appear in DGLux5, and click **Invoke**.
 +  * **Install Link from Zip** โ€“ Enter the download URL for the file and the name that you want to appear in DGLux5, and click **Invoke**. ​
 +  * **Install Link** โ€“ Select the link from the drop-down list, enter a name to appear in DGLux5, and click **Invoke**.
 +When the installation is successful, the value for **success** becomes TRUE.</​WRAP>​
 +===== Access DSLink Data =====
 +These steps show you how to access a Dart Weather DSLink, as an example.
 +  - Log in to DGLux5, Server edition.
 +  - Start the data connection:
 +    - In the [[dglux5_wiki:​workspace_and_workflow:​panels_and_menus:​data_panel|Data panel]], expand **sys** > **links**.
 +    - <​WRAP>​Right-click ''​dslink-dart-weather'',​ and select **Start Link**.
 +If ''​dslink-dart-weather''​ does not appear, follow the steps to [[#​add_a_new_dslink|add it]].</​WRAP>​
 +  - Specify the data to track:
 +    - In the Data panel, expand **downstream**.
 +    - <​WRAP>​Right-click **Weather**,​ select **Create Tracker**, enter the name of a city, and click **Invoke**.
 +    ​
 +The city appears as a tree node below **Weather**.</​WRAP>​
 +  - <​WRAP>​In the Data panel, click the name of the city. 
 +  ​
 +Current weather data appears in the [[dglux5_wiki:​workspace_and_workflow:​panels_and_menus:​metrics_panel|Metrics panel]].</​WRAP>​
 +  - <​WRAP>​In the Metrics panel, find the relevant data point or metric. ​
 +  ​
 +You can drag the relevant point or metric to a [[dglux5_wiki:​widgets_and_property_inspector:​components:​home|component]] such as a [[dglux5_wiki:​widgets_and_property_inspector:​components:​text:​home|text component]]. This opens the [[dglux5_wiki:​bindings:​home#​binding_dialog|binding dialog]]. From this dialog, you can control the formatted or calculated value that appears in the component.
 +//Using a DSA data metric//
 +<WRAP left>​[[dglux5_wiki:​getting_started:​deploy_project|Previous:​ Deploy a Project]]</​WRAP>​
 +<WRAP right>​[[dglux5_wiki:​getting_started:​access_data|Next:​ Access Other Data]]</​WRAP>​