Coder Social home page Coder Social logo

fiware-figway's People

Contributors

cralli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fiware-figway's Issues

Get pooling commands

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,

Missing required property protocol when using the RegisterDevice.py script

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.

Connection Refused Error

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'))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.