Giter VIP home page Giter VIP logo

http-adapter's People

Contributors

mrstegeman avatar tim-hellhake avatar

Stargazers

 avatar

Watchers

 avatar

http-adapter's Issues

Act on Get response?

I would like to use this to check for an XML response from a URL. I would like to create a rule to take action if there is no response. Is this possible with the current implementation? Thanks.

Navigating the list of Things become tricky as the list grows

It works as is it is. Yet, as more Things are added I find it hard to remember on which Thing I'm adding or changing something.

I believe folding and unfolding the hierarchy, e.g a Thing, an action, etc and adding on top of the page links to anchors for each Thing could help.

Can't add device

After adding a new device in the http-adapter configuration by providing name of the device, one action with name, URL (without preceding "http://"), HTTP method and HTTP content-type, I don't see a new thing.

mozilla WebThings Gateway on raspi 4
Current version: 0.10.0
Last update: Thu Nov 14 2019 01:06:19 GMT+0100 (Central European Standard Time)

The log file shows:
2019-11-21 18:02:11.533 INFO : Unloading HttpAdapter
2019-11-21 18:02:11.536 INFO : http: Adapter: HttpAdapter unloaded
2019-11-21 18:02:15.054 INFO : Loading add-on: http-adapter
2019-11-21 18:02:16.051 INFO : http: Opening database: /home/pi/.mozilla-iot/config/db.sqlite3
2019-11-21 18:02:16.817 INFO : http: Loading add-on http-adapter from /home/pi/.mozilla-iot/addons/http-adapter
2019-11-21 18:02:17.125 INFO : http: Unhandled Rejection
2019-11-21 18:02:17.126 ERROR : http: TypeError: Cannot read property 'toString' of undefined
2019-11-21 18:02:17.127 ERROR : http: at new Device (/home/pi/mozilla-iot/gateway/node_modules/gateway-addon/lib/device.js:20:15)
2019-11-21 18:02:17.127 ERROR : http: at new HttpDevice (/home/pi/.mozilla-iot/addons/http-adapter/lib/http-adapter.js:26:9)
2019-11-21 18:02:17.128 ERROR : http: at HttpAdapter. (/home/pi/.mozilla-iot/addons/http-adapter/lib/http-adapter.js:105:34)
2019-11-21 18:02:17.128 ERROR : http: at Generator.next ()
2019-11-21 18:02:17.129 ERROR : http: at fulfilled (/home/pi/.mozilla-iot/addons/http-adapter/lib/http-adapter.js:10:58)
2019-11-21 18:02:17.129 ERROR : http: at

Any idea?

Thx!

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.