Giter Site home page Giter Site logo

Comments (7)

rovincent avatar rovincent commented on September 13, 2024

node-red V: 0.17.4

from node-red-contrib-wio-seeed.

rovincent avatar rovincent commented on September 13, 2024

Another discovery, the node-red nodes do not even seem to be hitting the wio server, so this seems to be breaking before the request to the wio server?

from node-red-contrib-wio-seeed.

rovincent avatar rovincent commented on September 13, 2024

Another test result, creating a http request node and populating correctly from the raspberry pi works and produces the correct output.

Of course i would prefer to use the actual wio nodes as i have spent a fare amount of time on this and dont really want to parse the output at this stage if possible.

Of course this does narrow down the fact that is seems to be the actual wio-nodes that are having issues.

Any ideas?

from node-red-contrib-wio-seeed.

potnik avatar potnik commented on September 13, 2024

The error you are getting implies a typo in you server address. Do you have an extra space or other random character?

from node-red-contrib-wio-seeed.

rovincent avatar rovincent commented on September 13, 2024

I have checked and double checked everything. i am using two different hosts. One ubuntu 16.04 everything works. the node red config has been imported to the second node red instance from which it does not work. the second is a raspberry pi with updated node-red and npm as this is the only way to install this node module. the node read wio-modules is also copied form the working server.

Where would the server config be i have checked the node red config ?

from node-red-contrib-wio-seeed.

rovincent avatar rovincent commented on September 13, 2024

Also i forgot to mention in my previous post. The ability to receive my token by the login method would show that the server configuration is working no?

Once i config the server connection i get the node info and its status (up) (down) which is accurate. but the ports or methods do not auto populate.

Please keep in mind i had to upgrade npm and node as the wio modules do not load on standard reasbian jessie.

node -v 6.11.2
npm -v 3.10.10

from node-red-contrib-wio-seeed.

rovincent avatar rovincent commented on September 13, 2024

I figured it out.

for some reason on the ubuntu install it does not seem to care that the sku for the I2C1 port is "101020197"
However on the raspbian install the sku has to be "101020193" (the actual sku that is returned from the wio)

I found this by re-construction the URL built by wio-common.js in the reloadPortSelect function
so basically:
https://your.server/v1/node/config?access_token=your-node-token (can be found in the app under api)

You will get the sku of the I2C1 port.

Mine looks like this now but originally the 193 was 197 (which is working on the ubuntu install still)?:

    "101020193": {
            "name": "Grove Barometer BME280 I2C",
            "module": "GroveBME280",
            "methods": {
                    "temperature": {
                            "name": "Celsius Temperature",
                            "value": "temperature"
                    },
                    "altitude": {
                            "name": "Altitude",
                            "value": "altitude"
                    },
                    "pressure": {
                            "name": "Pressure",
                            "value": "pressure"
                    }
            }
    },

I hope this helps some one, im not a programmer AT ALL. so may be im missing something and this could be explained a lot better but it is now working for me.

from node-red-contrib-wio-seeed.

Related Issues (10)

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.