Skip to content

Commit 6c85c48

Browse files
committed
Update readme
1 parent 90b3cad commit 6c85c48

4 files changed

Lines changed: 21 additions & 67 deletions

File tree

README.md

Lines changed: 14 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
NGSI Browser widget
2-
===================
1+
# NGSI Browser widget
32

43
The NGSI Browser widget allows you to browser [Orion Context
54
Broker](http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker)
@@ -43,65 +42,19 @@ grunt
4342

4443
If everything goes well, you will find a wgt file in the `dist` folder.
4544

46-
Settings and Usage
47-
------------------
48-
49-
### Settings
50-
51-
- **NGSI server URL:** URL of the Orion Context Broker to use for retrieving
52-
entity information.
53-
- **NGSI proxy URL:** URL of the Orion Context Broker proxy to use for receiving
54-
notifications about changes.
55-
- **Use the FIWARE credentials of the user:** Use the FIWARE credentials of the
56-
user logged into WireCloud. Take into account this option cannot be enabled if
57-
you want to use this widget in a public workspace as anonoymous users doesn't
58-
have a valid FIWARE auth token. As an alternative, you can make use of the
59-
"Use the FIWARE credentials of the workspace owner" preference.
60-
- **Use the FIWARE credentials of the dashboard owner**: Use the FIWARE
61-
credentials of the owner of the workspace. This preference takes preference
62-
over "Use the FIWARE credentials of the user". This feature is available on
63-
WireCloud 0.7.0+ in a experimental basis, future versions of WireCloud can
64-
change the way to use it making this option not funcional and requiring you to
65-
upgrade this operator.
66-
- **NGSI tenant/service**: Tenant/service to use when connecting to the context
67-
broker. Must be a string of alphanumeric characters (lowercase) and the `_`
68-
symbol. Maximum length is 50 characters. If empty, the default tenant will be
69-
used
70-
- **NGSI scope**: Scope/path to use when connecting to the context broker. Must
71-
be a string of alphanumeric characters (lowercase) and the `_` symbol
72-
separated by `/` slashes. Maximum length is 50 characters. If empty, the
73-
default service path will be used: `/`
74-
- **NGSI entity types:** A comma separated list of entity types to use for
75-
filtering entities from the Orion Context broker. This field cannot be empty.
76-
- **Id pattern:** Id pattern for filtering entities. This preference can be
77-
empty, in that case, entities won't be filtered by id.
78-
- **Extra Attributes:** Comma separated list of attributes to be displayed in
79-
the widget as extra columns.
80-
81-
### Wiring
82-
83-
##### Input Endpoints
84-
85-
* This widget has no input endpoint
86-
87-
##### Output Endpoints
88-
89-
- **Selection:** This widget sends an event thought this endpoint when the
90-
user clicks on the "Use Button". Entities using this operator uses the flat
91-
option of the WireCloud API. Event data example:
92-
93-
```json
94-
{
95-
"id": "van4",
96-
"type": "Van",
97-
"current_position": "43.47173, -3.7967205"
98-
}
99-
```
100-
101-
Copyright and License
102-
---------------------
103-
104-
Copyright (c) 2015 CoNWeT Lab., Universidad Politecnica de Madrid
45+
46+
## Documentation
47+
48+
Documentation about how to use this widget is available on the
49+
[User Guide](src/doc/userguide.md). Anyway, you can find general information
50+
about how to use widgets on the
51+
[WireCloud's User Guide](https://wirecloud.readthedocs.io/en/stable/user_guide/)
52+
available on Read the Docs.
53+
54+
55+
## Copyright and License
56+
57+
Copyright (c) 2016 CoNWeT Lab., Universidad Politecnica de Madrid
10558

10659
Licensed under the Apache License, Version 2.0 (the "License");
10760
you may not use this file except in compliance with the License.

src/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='UTF-8'?>
2-
<widget xmlns="http://wirecloud.conwet.fi.upm.es/ns/macdescription/1" vendor="CoNWeT" name="ngsi-browser" version="1.0.2">
2+
<widget xmlns="http://wirecloud.conwet.fi.upm.es/ns/macdescription/1" vendor="CoNWeT" name="ngsi-browser" version="1.1.0">
33
<details>
44
<title>NGSI browser</title>
55
<email>wirecloud@conwet.com</email>

src/doc/changelog.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## v1.1.0
1+
## v1.1.0 (2016-12-12)
22

3-
- Add support for editing entities
4-
- Add support for creating new entities
3+
- Added initial support for editing entities
4+
- Added initial support for creating new entities
5+
- Based on `json-editor` v1.0
56

67
## v1.0.2
78

src/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
this.add_entity_button.addEventListener('click', function (button) {
9191
openEditorWidget.call(this, button);
9292
this.editor_config_output.pushEvent({
93-
"blacklist": []
93+
"readonly": []
9494
});
9595
this.template_output.pushEvent('{"id": "", "type": ""}');
9696
}.bind(this));
@@ -284,7 +284,7 @@
284284
button.addEventListener('click', function (button) {
285285
openEditorWidget.call(this, button);
286286
this.editor_config_output.pushEvent({
287-
"blacklist": [
287+
"readonly": [
288288
["id"],
289289
["type"],
290290
]

0 commit comments

Comments
 (0)