-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD Service and ServicePath custom node
- Loading branch information
Showing
16 changed files
with
890 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
# FIWARE Service and ServicePath | ||
|
||
This custom node is a simple node that allows to manage FIWARE Service and ServicePath. | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images/service-and-servicepath/service-and-servicepath-01.png) | ||
|
||
## Contents | ||
|
||
<details> | ||
<summary><strong>Details</strong></summary> | ||
|
||
- [Passthrough](#passthrough) | ||
- [Add FIWARE Service and/or ServicePath](#add-fiware-service-andor-servicepath) | ||
- [Delete FIWARE Service and/or ServicePath](#delete-fiware-service-andor-servicepath) | ||
|
||
</details> | ||
|
||
## Passthrough | ||
|
||
It allows to pass FIWARE Service value and/or ServicePath value to output without manipulation. | ||
|
||
### Properties | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images//service-and-servicepath/service-and-servicepath-02.png) | ||
|
||
- `name`: A name for a node instance | ||
- `FIWARE Service`: `Passthrough` | ||
- `FIWARE ServicePath`: `Passthrough` | ||
|
||
### Example | ||
|
||
#### Input | ||
|
||
Payload *JSON Object* | ||
|
||
A `msg.context` should contain JSON Object. | ||
|
||
``` | ||
{ | ||
"fiwareService": "openiot", | ||
"fiwareServicePath": "/iot" | ||
} | ||
``` | ||
|
||
#### Output | ||
|
||
Payload *JSON Object* | ||
|
||
A `msg.context` contains JSON Object. | ||
|
||
``` | ||
{ | ||
"fiwareService": "openiot", | ||
"fiwareServicePath": "/iot" | ||
} | ||
``` | ||
|
||
## Add FIWARE Service and/or ServicePath | ||
|
||
It allows to add FIWARE Service and/or FIWARE ServicePath to `msg.context`. | ||
|
||
### Properties | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images/service-and-servicepath/service-and-servicepath-03.png) | ||
|
||
- `name`: A name for a node instance | ||
- `FIWARE Service`: `Add` | ||
- `Service value`: A value of FIWARE Service | ||
- `FIWARE ServicePath`: `Add` | ||
- `Service valuePath`: A value of FIWARE ServicePath | ||
|
||
### Examples | ||
|
||
Set `Service value` to `OpenIoT` and `Service valuePath` to `/iot`. | ||
|
||
#### Input | ||
|
||
Payload *JSON Object* | ||
|
||
A `msg.context` should contain JSON Object. | ||
|
||
``` | ||
{} | ||
``` | ||
|
||
#### Output | ||
|
||
Payload *JSON Object* | ||
|
||
A `msg.context` contains JSON Object. | ||
|
||
``` | ||
{ | ||
"fiwareService":"openiot", | ||
"fiwareServicePath":"/iot" | ||
} | ||
``` | ||
|
||
## Delete FIWARE Service and/or ServicePath | ||
|
||
It allows to delete FIWARE Service and/or FIWARE ServicePath from `msg.context`. | ||
|
||
### Properties | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images//service-and-servicepath/service-and-servicepath-04.png) | ||
|
||
- `name`: A name for a node instance | ||
- `FIWARE Service`: `Delete` | ||
- `FIWARE ServicePath`: `Delete` | ||
|
||
### Example | ||
|
||
#### Input | ||
|
||
Payload *JSON Object* | ||
|
||
A `msg.context` should contain JSON Object. | ||
|
||
``` | ||
{ | ||
"fiwareService":"openiot", | ||
"fiwareServicePath":"/iot" | ||
} | ||
``` | ||
|
||
#### Output | ||
|
||
Payload *JSON Object* | ||
|
||
A `msg.context` contains JSON Object. | ||
|
||
``` | ||
{} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
# FIWARE Service and ServicePath | ||
|
||
このカスタム・ノードは、FIWARE Service と ServicePath を管理できるノードです。 | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images/service-and-servicepath/service-and-servicepath-01.png) | ||
|
||
## コンテンツ | ||
|
||
<details> | ||
<summary><strong>詳細</strong></summary> | ||
|
||
- [パススルー](#passthrough) | ||
- [FIWARE Service および/または ServicePath の追加](#add-fiware-service-and-or-servicepath) | ||
- [FIWARE Service および/または ServicePath の削除](#delete-fiware-service-and-or-servicepath) | ||
|
||
</details> | ||
|
||
<a name="passthrough"></a> | ||
|
||
## パススルー | ||
|
||
FIWARE Service の値、および/または ServicePath の値を操作なしで出力に渡すことができます。 | ||
|
||
### プロパティ | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images//service-and-servicepath/service-and-servicepath-02.png) | ||
|
||
- `name`: ノード・インスタンスの名前 | ||
- `FIWARE Service`: `Passthrough` | ||
- `FIWARE ServicePath`: `Passthrough` | ||
|
||
### 例 | ||
|
||
#### 入力 | ||
|
||
Payload *JSON Object* | ||
|
||
`msg.context` には、JSON オブジェクトが含まれている必要があります。 | ||
|
||
``` | ||
{ | ||
"fiwareService": "openiot", | ||
"fiwareServicePath": "/iot" | ||
} | ||
``` | ||
|
||
#### 出力 | ||
|
||
Payload *JSON Object* | ||
|
||
`msg.context` には、JSON オブジェクトが含まれます。 | ||
|
||
``` | ||
{ | ||
"fiwareService": "openiot", | ||
"fiwareServicePath": "/iot" | ||
} | ||
``` | ||
|
||
<a name="add-fiware-service-and-or-servicepath"></a> | ||
|
||
## FIWARE Service および/または ServicePath の追加 | ||
|
||
`msg.context` に FIWARE Service および/または FIWARE ServicePath を追加できます。 | ||
|
||
### プロパティ | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images/service-and-servicepath/service-and-servicepath-03.png) | ||
|
||
- `name`: ノード・インスタンスの名前 | ||
- `FIWARE Service`: `Add` | ||
- `Service value`: FIWARE Service の値 | ||
- `FIWARE ServicePath`: `Add` | ||
- `Service valuePath`: FIWARE ServicePath の値 | ||
|
||
### 例 | ||
|
||
Set `Service value` to `OpenIoT` and `Service valuePath` to `/iot`. | ||
|
||
#### 入力 | ||
|
||
Payload *JSON Object* | ||
|
||
`msg.context` には、JSON オブジェクトが含まれている必要があります。 | ||
|
||
``` | ||
{} | ||
``` | ||
|
||
#### 出力 | ||
|
||
Payload *JSON Object* | ||
|
||
`msg.context` には、JSON オブジェクトが含まれます。 | ||
|
||
``` | ||
{ | ||
"fiwareService":"openiot", | ||
"fiwareServicePath":"/iot" | ||
} | ||
``` | ||
|
||
<a name="delete-fiware-service-and-or-servicepath"></a> | ||
|
||
## FIWARE Service および/または ServicePath の削除 | ||
|
||
`msg.context` から FIWARE Service および/または FIWARE ServicePath を削除できます。 | ||
|
||
### プロパティ | ||
|
||
![](https://raw.githubusercontent.com/lets-fiware/node-red-contrib-letsfiware-NGSI/gh-pages/images//service-and-servicepath/service-and-servicepath-04.png) | ||
|
||
- `name`: ノード・インスタンスの名前 | ||
- `FIWARE Service`: `Delete` | ||
- `FIWARE ServicePath`: `Delete` | ||
|
||
### 例 | ||
|
||
#### 入力 | ||
|
||
Payload *JSON Object* | ||
|
||
`msg.context` には、JSON オブジェクトが含まれている必要があります。 | ||
|
||
``` | ||
{ | ||
"fiwareService":"openiot", | ||
"fiwareServicePath":"/iot" | ||
} | ||
``` | ||
|
||
#### 出力 | ||
|
||
Payload *JSON Object* | ||
|
||
`msg.context` には、JSON オブジェクトが含まれます。 | ||
|
||
``` | ||
{} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Oops, something went wrong.