Trouble getting RPi device data in IBM IoT input node - raspberry-pi

I'm having trouble getting "device" data from a Raspberry Pi to show up via an IBM IoT input node in Node-RED. I know the data is making it into the Watson IoT cloud, since I can see it under "recent events" in the device panel. However, I'm getting an "Imported Unrecognized Type: wiotp-credentials" error when I refresh Node-RED.
Any idea where I'm going wrong?

Ok, amadain was correct. I had two browsers open with NodeRed, one for bluemix and the other for a Pi ... and inadvertently cut & pasted some node information from the Pi to blumix. Once I removed the errant node, everything worked fine.

I'm suspecting you imported something from a NodeRed flow on the Pi to NodeRed on bluemix? There are slight differences in the nodes and also credentials don't import. You might want to add a new IBMIOT (Input) node and then create new credentials. Take or create the API keys from your organisation-access-api keys (https://.internetofthings.ibmcloud.com/dashboard/#/access/apikeys

Related

Google Cloud SQL setup & connecting to App Maker

I'm trying to get a Cloud SQL database connected to Google App Maker. I've followed the step by step instructions found here: https://developers.google.com/appmaker/models/cloudsql, apparently successfully (no error messages in setup.)
But, still getting the error message that it isn't set up properly, and the instance name is incorrect. :/
What. in the world.
Also, when I go back into App Maker and click on settings, I do not get a "database" option to select.
How do I proceed??
You must firs setup CloudSql instance in G-suite admin https://support.google.com/a/answer/7550053?hl=en

I can't create dashboard in thingsboard in my Raspberry Pi

I installed Thingsboard on Raspberry Pi 3 b+ and Use Postgres as dtb. Installing the program well. I just test by sending data to Thingsboard. It's work!
When I click dashboard tab. Red massage appear at top left
"GET: /api/customer/211f0000-df24-1412-8080-808080808080/shortInfo 404: "
GET Message Error Picture
'
When I try to create Thingsboard. All widget are disappear with message
"Access Forbidden You haven't access rights to this location! Try to sign in with different user if you still wish to gain access to this location."
Anyone know what happen and how to fix it. Thanks
Access Forbidden Message Picture
Just had that same problem on my raspberry pi 3b+. I solved it by changing all the assets and devices that were used on the dashboard do the same customer, in my case, public.

Bluemix Blockchain

Facing below error for quite a long time today. Is this frequent?
We are trying to run a sample app locally [connecting to bluemix blockchain]
Also tried to install/deploy directly into blockchain.
Both results in same error on login page itself. Also gets ERR 500/
Waiting on the node server to open up so we can talk to the blockchain. This app is likely still starting up. Check the server logs if this message does not go away in 1 minute.
This application cannot run without the blockchain network :(
The "starter network" blockchain has been experiencing intermittent capacity overflow issues. We currently have availability; have you tried this recently? Try again andlet us know if you get the same error. If yes, please open a support service ticket via Bluemix dashboard.
Hope this helps, and thanks for using blockchain!

node-red redeploy flow using REST from within node-red

I have a node-red flow in bluemix that uses dash-db nodes also. So each time some dash db maintenance or some other reason, this db connection gets lost and all writes fail. When i redeploy, everything is fine again. Bluemix shows only logs of last few hours hence I am finding it very difficult to debug. Meanwhile i was thinking of doing an automatic redeploy after i detect this issue to avoid losing writes.
Can this be done using GET /flows followed by POST /flows in the same node-red app itself?
it would be worth raising this as an issue with the dash-db nodes so the author can help address it - https://github.com/smchamberlin/node-red-nodes-cf-sqldb-dashdb
Yes, you can post back the flows. The full admin http api is documented here: http://nodered.org/docs/api/admin/ - have a look at the 'reload' option on /flows.

Node-Red: "Error: <nodename> node not deployed" on Raspberry Pi B+

Last week I got to know node-red (what a potential!), and after installing it on a Raspberry Pi B+ and following the basic tutorials, I'm experiencing some issues.
When I follow the Inject + Debug node example, wire them, and deploy them, I get the message "Deploy sucessfull". So far so good. I'm running it locally on http:// localhost:1880.
Then when I click the Inject node or the Debug node, it says: "Error: Inject node not deployed" or "Error: Debug node not deployed".
Anyone know how to fix this error? Is it a server problem?
Was having the same issues and discovered the flow that I was working on was disabled.
You can tell the flow is disabled when the lettering on its tab is in italic and there is a circle with a diagonal line through it ahead of the lettering.
Double click the flow tab and change "status" to "enabled".
Just tried something and it worked:
When you run node --max-old-space-size=128 red.js, the command line shows you "cannot find flows_raspberrypi.json"
So I
1) created a flow (as in the examples) 2) Exported it as
"flows_raspberrypi.json" 3) Stopped node-red 4) Started it again
Bingo! It picked this flow up, which then "sucessfully injected".
Now just create your own flows...
I was also getting same problem of :- Node-red Error: inject node not deployed.
When I have install dashboard on Node-Red which was not working, and started giving error when I hit inject node.
So I manually deleted the files (flows-raspberrypi.json, package.json, settings.js) and also folders (lib, node_modules) from the path /home/pi/.node-red
I used vnc-viewer to delete manually files & folders. Just login to vnc-Viewer and open the file manager and paste the path "/home/pi/.node-red" & delete all the files. Reboot the Raspberry-Pi and start Node-Red, it will function normally, even after installing dashboard it is working.
NOTE:It will delete all your flows and install nodes from Node-Red. So keep backup of your flows.