Closed gadgethome closed 10 years ago
curl -X POST -d "type=drone&color=black" http://0.0.0.0:3000/devices
If that doesn't work, have you confirmed that Mongo is installed and running or that you are pointing to a hosted Mongo instance like MongoHQ.com?
Mongo isn't really available for the Pi currently. It can be compiled http://elsmorian.com/post/24395639198/building-mongodb-on-raspberry-pi to run.
Thanks for replies. I have mongo installed and running. I will try curl -X POST -d "type=drone&color=black" http://0.0.0.0:3000/devices and see if that works.
Managed to get it working now. Seems when I used
mongodb://localhost:27017/skynet
skynet had not been created in Mongo DB
Thanks
Hi, Trying to run on a Raspberry Pi. The following seems to start OK
Then run curl -X GET http://raspberrypi:3000/status and response is
Then try to register curl -X POST -d "type=drone&color=black" http://raspberrypi:3000/devices and response is
If I run
it does come back with a uuid and token. Just cant seem to get it to work on my Pi.
Thanks