You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You do not have to write all information (e.g. postal code, street address, country, ...) for the map to be functional. Writing longitude and latitude is sufficient. However, if you only sent longitude and latitude information, Asset Manager will show *now location available*. The Asset Map is still functional.
22
22
23
-
> Take a look at the [MindSphere Documentation](https://documentation.mindsphere.io/MindSphere/apis/advanced-assetmanagement/api-assetmanagement-api.html) if you want to know more about the Asset Management API.
23
+
> Take a look at the [Insights Hub Documentation](https://documentation.mindsphere.io/MindSphere/apis/advanced-assetmanagement/api-assetmanagement-api.html) if you want to know more about the Asset Management API.
"info": "Double click the City node. Pick a city name for which weather information is available.\nCreate an account in https://openweathermap.org/ for free. \nThen create API Key from https://home.openweathermap.org/api_keys.\nThis example uses Current Weather API documented at: 'https://openweathermap.org/current'.",
"name": "Get weather data from OpenWeather.org // Procedure",
146
+
"info": "Double click the City node. Pick a city name for which weather information is available.\nCreate an account in https://openweathermap.org/ for free. \nThen create API Key from https://home.openweathermap.org/api_keys.\nThis example uses Current Weather API documented at: 'https://openweathermap.org/current'.",
Your business case may require to use external services over HTTP. Visual Flow Creator provides a means to consume such services. The example here demonstrates consuming a service from [Openweathermap](https://openweathermap.org) to bring weather information of a city.
3
+
Your business case may require to use external services over HTTP. Visual Flow Creator provides a means to consume such services.
4
4
5
-

5
+
## Example based on external weather data
6
+
The example here demonstrates consuming a service from [OpenWeathermap](https://openweathermap.org) to bring weather information of a city.
7
+
8
+

6
9
7
10
## Setup & Configuration
8
11
1. Import the flow into Visual Flow Creator.
9
12
2. Obtain the API Key from [OpenWeather](https://home.openweathermap.org/api_keys). This will require a free account to be created, if not already done.
10
-
3. Double click the node named **City**.
13
+
3. Double click the node named **Config: CITY & API_KEY**.
11
14
4. Replace the value field of `API_KEY` with the newly obtained API KEY from the above URL.
12
15
5. Change the value of the `CITY` field to a city name. The API supports limited set of cities. Please look in to their documentation.
13
16
6. Save the flow after completing the needed changes.
14
-
7. Click the inject node to trigger the sequence.
15
-
8. Output in the debug window shows the weather data for the chosen city.
17
+
7. Adopt the processing of the received information based on your needs. The example focuses on the weather details specified in the flow comment.
18
+
8. Click the inject node to trigger the sequence.
19
+
9. Output in the debug window shows the weather data for the chosen city.
16
20
17
21
## How does this flow work
18
22
@@ -22,7 +26,11 @@ Your business case may require to use external services over HTTP. Visual Flow C
22
26
- Then HTTP request node fetches the data synchronously from Openweather service endpoint.
23
27
- It converts the recieved response to JSON format and sets it as value for the payload field of the msg object.
24
28
- Debug node in the end displays the contents of payload field to the debug window.
25
-
29
+
30
+
## Attachements
31
+
Here the `API_KEY` can get obtained from the external weather service.
Copy file name to clipboardExpand all lines: virtualMachineSimulator/readme.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Using this flow, you can generate virtual machine data consisting of both a simu
3
3
- machine states
4
4
- product counter
5
5
6
-
It can be used if no physical assets are available or to learn about the features on MindSphere to explore VFC and other apps using the data stored in the Asset Management. The data generated can also be used further to calculate the machine OEE, Availability or Quality of the virtual products produced.
6
+
It can be used if no physical assets are available or to learn about the features on Insights Hub to explore VFC and other apps using the data stored in the Asset Management. The data generated can also be used further to calculate the machine OEE, Availability or Quality of the virtual products produced.
0 commit comments