telefonicaid / fiware-figway Goto Github PK
View Code? Open in Web Editor NEWfiware-figway
License: GNU Affero General Public License v3.0
fiware-figway
License: GNU Affero General Public License v3.0
Hi,
I am trying to get pooling commands using fiware-figway scripts. I create a device with RegisterDevice.py based on SWITCH model. Then I send a command by using python SimulateCommand.py. At this point I can checked that command in attribute is pending:
"name" : "RawCommand_status",
"type" : "string",
"value" : "pending",
But when I try to get pending commands with GetPoolingCommands.py the response is 200 OK but with empty response.
I found this note in the documentation: "Simulate a command to an actuator (the COntextBroker update is buggy at this time, but you can use this script even when it works for your tests)."
Are commands (both push and pooling) already available and operational on fiware?
Thanks,
Hello i have sent a mail but got no feedback.
I have updated the Fiware-Figway "ContextBroker" part only.
You can find the readme and the code here : https://bitbucket.org/eglobalmark/egm_testexecorioncb/src/d2bdcff1dcc42efbb3cb4e015d8f7bfc06136cb0/ContextBroker/?at=master
Please let me know if you have any question.
I want to share those scripts via the official Fiware figware Git thats why i am asking you for an update.
When using the SendObservation.py
script with the new iotagent-ul, it uses application/json
as Content-Type
, thus getting an error from the agent. Please update the script to use the correct Content-Type: text/plain
.
Thanks.
The RegisterDevice.py script from python-IDAS4 fails with the following error:
* Status Code: 400
* Response:
{"reason":"The request is not well formed","details":"Missing required property: protocol [/devices[0]]"}
According to sllide 8 from http://www.slideshare.net/FI-WARE/fiware-iotidasintroul20v2, the protocol property was added on june 2015, but the script was not updated, so it fails. Adding
PAYLOAD_json["devices"][0]["protocol"]="PDI-IoTA-UltraLight"
after https://github.com/telefonicaid/fiware-figway/blob/master/python-IDAS4/Sensors_UL20/RegisterDevice.py#L68 fixes it.
Thanks.
Having error on connection with host http://130.206.80.40:5371/iot/devices
Traceback (most recent call last):
File "RegisterDevice.py", line 82, in
r = requests.post(URL, data=PAYLOAD, headers=HEADERS)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 94, in post
return request('post', url, data=data, json=json, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 49, in request
return session.request(method=method, url=url, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 407, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.