RESTful API
Using weather REST API ..
Last updated
Using weather REST API ..
Last updated
Accurate weather information and forecasts are essential elements in critical decision-making scenarios. Both enterprises and individual consumers rely on current and future weather patterns to run their daily operations and manage risks successfully.
As such, the increased demand for accurate weather information has pushed the developer community to invest in building reliable weather apps.
So in this workshop we're going to:
• use a weather API.
• pull the data into PDI.
• display dataset in a CDE dashboard - Pentaho Server service.
The following section is for Reference only.
The CDE has been activated.
You may require to create an Openweathermap account.
Follow the steps outlined below to activate CDE and test the API call with Postman.
To activate the Community Dashboard Editor (CDE) plugin, you will need to change the configuration of several .xml files in the Pentaho solutions folder as described below. Verify that you have the appropriate permissions to read, write, and execute commands in the specified directories in the instructions.
Ensure the Pentaho Server is stopped.
Uncomment the following lines:
/opt/pentaho/server/pentaho-server/pentaho-solutions/system/pentaho-cdf-dd/plugin.xml
Locate the following two commented blocks in this file and remove the comment tags from these blocks.
Save.
Uncomment the following lines:
/opt/pentaho/server/pentaho-server/pentaho-solutions/system/pentaho-cdf-dd/settings.xml
Locate the block at end of the file, 'Defining the new-toolbar-button' and remove the comments tags from this block
Locate the block at end of the file, 'Defining the new-toolbar-button' and remove the comments tags from this block.
Save.
Save your changes.
Restart the Pentaho Server.
To verify CDE is activated, do the following.
Log on to the Pentaho User Console.
From the Home page, click the Create New button.
From the menu that displays, select the New CDE Dashboard option. You can now begin creating your first CDE dashboard.
REST API documentation API information for building custom solutions of Pentaho products.
CDF API Pentaho Data Integration and Analytics CDF API documentation.
Pentaho Data Integration and Analytics Platform JavaScript API.