I've been trying for some time now to connect my Watson IoT Platform to a Cloudant database as a Historian service.
I´ve followed instructions from a variety of tutorials available but one service never appears as an possible connection to the other, or as an extension.
Here is one tutorial that I've tried https://console.bluemix.net/docs/services/IoT/cloudant_connector.html#cloudant_main
This is my resources dashboard. I've read that I should create both services in the same space (projetos.frondizi@gmail.com / dev), but when I'm creating the Cloudant service it won't let me choose.
Any insights on how to connect these services?
Thanks!
You need to create an alias from the Cloudant service so that the IoT Service can recognize it. That can be done via cf console, as such:
1) Install cf https://console.bluemix.net/docs/cli/reference/ibmcloud/download_cli.html#install_use
2) Run below commands:
ibmcloud login -a https://api.ng.bluemix.net
ibmcloud target --cf-api https://api.ng.bluemix.net -o projetos.frondizi@gmail.com -s dev
ibmcloud resource service-alias-create iot-cloudat-alias --instance-name 'Cloudant-zw'
If successful, you can see the alias under the IoT service in the IBM Cloud dashboard.
3) Launch the IoT Dashboard and setup extension