johnwalicki / IoT-AssetTracking-Perishable-Network-Blockchain

Use an IoT Asset Tracking device to record environmental sensor conditions to a Hyperledger Blockchain Perishable Network
Apache License 2.0
68 stars 117 forks source link

No response from Server #11

Open sxcntqnt opened 4 years ago

sxcntqnt commented 4 years ago

I was able to run a local instance of your iot-perishable-network on my local pc. via a virtual ubuntu machine. I have a raspberry pi, where I am running the node-red flow. I've got everything working till the composer-rest-server part. When I try to run,the node-red flow it errors with the Following error,No response from server on a post request to the setupDemo api. I tried to curl the same request via the Host Pc.I'm trying to record,send and retrieve gpscordinates via the hyperledger blockchain. The node-red code seems to work fine to some extend but not all parts especially the http clients. A good recap to the node-red code would be highly appreciated.Thanks in advance

johnwalicki commented 4 years ago

Hi @project621c - This code example was super fun but Hyperledger Composer was depreciated in early 2019. The Node-RED http request nodes make calls to the Hyperledger Composer REST APIs. If HyperLedger Composer isn't running or available, those parts of the Node-RED flows will fail.

sxcntqnt commented 4 years ago

Thanks for the reply. After some thinking around and moving the fabric instance and node-red flow on the same network(ip-range) I could query the blockchain and get a 200 status ok on the inject nodes. I would like to continue with this project but I don't have much experience with javascript. I can code in go. What do you recon I should do as I would like to build an iot-asset-tracker? PS:I can't afford your ibm-blockchain solution right not .

On Fri, Dec 20, 2019 at 6:20 PM John Walicki notifications@github.com wrote:

Hi @project621c https://github.com/project621c - This code example was super fun but Hyperledger Composer was depreciated in early 2019. The Node-RED http request nodes make calls to the Hyperledger Composer REST APIs. If HyperLedger Composer isn't running or available, those parts of the Node-RED flows will fail.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/johnwalicki/IoT-AssetTracking-Perishable-Network-Blockchain/issues/11?email_source=notifications&email_token=ALMCMFVB2G3Y6SOIRL5ZJWDQZTPCHA5CNFSM4J5NWT72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHNGIJI#issuecomment-567960613, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMCMFQHYPRCKOZ63MZ35YLQZTPCHANCNFSM4J5NWT7Q .

johnwalicki commented 4 years ago

There is another IBM Code pattern that runs Hyperledger Fabric and Node-RED in a kubernetes cluster and demonstrates IoT Asset tracking. You would need upgrade to an IBM Cloud standard account (credit card required). The good news is that there is a free kube cluster (good for 20 days) that you can use to experiment.

https://github.com/yigitpolat/Hyperledger-Fabric-for-Trusted-IoT/blob/master/README.md

johnwalicki commented 4 years ago

Here is the official link https://developer.ibm.com/patterns/build-a-blockchain-network-for-trusted-iot/