Jump to content









Photo

First Carriots Challenge information

challenge domokun

  • Please log in to reply
40 replies to this topic

#21 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 16 April 2013 - 11:28 AM

First Challenge winner interview and video.

 

Congratulations Ad Agbar team!

 

https://blog.carriot...view-and-video/

 

 

Enjoy Carriots!



#22 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 16 April 2013 - 12:13 PM

Congratulations to the winning team of the first online contest stuffed toys in the world!

 

Great video demo!

 



#23 alvaro

alvaro

    Carriots CTO

  • Administrators
  • 72 posts

Posted 17 April 2013 - 05:36 PM

Good work guys!


Alvaro Everlet

Carriots CTO


#24 darthvader

darthvader

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 18 April 2013 - 03:22 PM

Thank you Carriots!!

We'll participate in the next challenge!!



#25 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 09 June 2013 - 02:27 PM

Its me again ;) needing more help....

 

while trying to complete section 6. SYNCHRONIZE WITH CARRIOTS AND REPRODUCE AUDIO

 

I type in the following command :

curl --request GET http://api.carriots.com/devices/ --my id developer/ --include

 

I receive the code 301 Moved Permanently ??? What Am I doing wrong, I'm not getting what's showed in the tutorial.

 

<image>

 

https://plus.google.com/u/0/



#26 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 10 June 2013 - 08:35 AM

Hi Epicdre!

 

Any news about your project?

 

I will try to help... I think your request should look like this:

 

curl --request GET http://api.carriots....ER_DEVICE_HERE/ --header "carriots.apikey: YOUR_APIKEY_HERE" --include

 

I hope this can help you, and if you have any doubt don't hesitate to ask here.

 

Enjoy Carriots!



#27 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 16 June 2013 - 05:08 PM

Still having problems with this, now I get the error ....

curl: <6> could not resolve host: api.carriots
curl: <6> could not resolve host: my_api_key

*my_api_key is my actual apikey ;)

#28 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 17 June 2013 - 09:12 AM

Hi Epicdre!!
 
You need the following code:
 
curl --request GET https:// api.carriots.com/devices/YOUR_ID_DEVELOPER_DEVICE_HERE/ --header "carriots.apikey: YOUR_APIKEY_HERE" --include

(note the space in URL, remove it)
 
This code works well!
 
The problem is that CURL doesn't redirect from HTTP to HTTPS.
 
I hope this can help you.
 
Enjoy Carriots!

#29 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 17 June 2013 - 09:19 PM

Thank-you so much! it was the space that messed me up...
now im slowly progressing with the project :) happy days.

 

My small breadboard is wired up to the pi.

I've downloaded clicarriots (api wrapper). I've used a git command to download to the pi, I'm I now meant to edit the source code and replace statements that require my developer id? then run the program ??

 

Thanks,

epicdre



#30 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 18 June 2013 - 09:18 AM

Hi!
 
You can install clicarriots in your RaspberryPi:

sudo pip install git+https://github.com/sdeancos/clicarriots.git#egg=clicarriots


If you want send the stream to carriots:
 

from clicarriots import api
from datetime import datetime

client_stream = api.Stream("YOUR APIKEY")
my_at = datetime.utcnow()
data = {"KEY":"VALUE"}
code, response = client_stream.send('YOUR ID DEVELOPER DEVICE', data, my_at, 'stream')

 

For more info: https://github.com/s...aster/README.md

 

I hope this can help you.
 
Enjoy Carriots!
 



#31 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 18 June 2013 - 09:59 AM

What do you mean send stream to carriots? if I have already installed carriots to my raspberry pi

 

says,

epicdre



#32 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 18 June 2013 - 07:37 PM

Hi epicdre!

 

If you have completed the electronic assembly, you can follow the tutorial and start writing code for your stuffed toy!

 

In this link you can follow de tutorial: https://www.carriots...tuffed_toy#code



#33 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 05 July 2013 - 06:27 PM

I've been holidaying.... back now and ready to finish this project. 

Time for a development sprint.

 

I think I should ask my previous question in a different way as I don't feel it was answered.

 

scenario:

- I have an rasp pi

- used sudo pip install git+https://github.com/s...egg=clicarriots

- clicarriots installed somewhere on pi

 

Question:

- how do I start talking to the pi with clicarriots?

    - run the program?

    - change the source code to include my developer id then run program?

 

please provide the steps, I really don't know what I'm doing. Tutorial isn't much help on this part.

 

 

-----------------------------------------FYI-------------------------------------------------

 

So far I have done:

- created properties with carriots device management

- registered project and device registration

- connected raspberry pi to breadboard

 

Kind Regards,

@epicdre



#34 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 08 July 2013 - 06:47 AM

Hi Epicdre!

You can learn here: https://www.carriots...tuffed_toy#code

You must install clicarriots library and the source code in your Raspberry Pi and change api_key and device_id_developer for your apikey and device id developer.

Save your source code in your Raspberry and run in shell:

python your_source_code.py



If your schema its working right, the source code should work!


I hope this can help you.

Enjoy Carriots!

#35 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 13 July 2013 - 06:55 PM

Okay, Thanks.

 

Another encountered problem lol.

 

I'm running the .py file and I get the error 

no such file domokun_dropbox.txt exists.

 

Where are these files with clicarriots git folder?

 

Thanks

epicdre,



#36 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 13 July 2013 - 09:35 PM

Hi Epicdre!

 

You can check if domokun_dropbox.txt exist in folder where you run your python script?

 

You can put the complete path, example:

 

open("/home/your_home/your_workspace/script_domokun/domokun_welcome.txt").read()

 

Maybe this can help you!

 

:D



#37 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 13 July 2013 - 11:54 PM

;)  

 

I will have to create one and put some random stuff in it, since there is no such file

in the folder.

 

epicdre,



#38 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 14 July 2013 - 10:58 PM

<image>

https://plus.google.com/u/0/

 

Error! 

No JSON object could be decoded.

 

I'm not sure what is going on, from a bit of research it seems my JSON is an empty string??

 

this line of the code keeps being flagged up.

urls = json.loads(response)

 

any suggestions??

 

I reckon this line may have something to do with it.....

code, response = client_dropbox.get('domokun_dropbox', 'all')

 

and perhaps my code actually doesn't make any connection to my dropbox account??

 

Best,

epicdre



#39 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 102 posts
  • LocationMadrid, Spain.

Posted 15 July 2013 - 06:25 AM

Hi!

 

Perhaps your carriots account not link with dropbox. You can linking in control panel: MY SETTINGS -> APPS

 

When you do link yours accounts you can connect to dropbox, however here's an example of response:

 

{"code": "ok", "details": ["http://db.tt/XXXXXX", "http://db.tt/XXXXXX"]}



#40 epicdre

epicdre

    Member

  • Members
  • PipPip
  • 15 posts

Posted 15 July 2013 - 12:19 PM

Hi,

 

I have authorized my dropbox account. 

I have even used http://www.hurl.it/ to test the 

type of response Im getting. 

 

I get the right type of response...

 

 

{
  "code": "ok",
  "details": [
    "http://db.tt/xxxxx"
  ]
}

 

I'm still stuck :(






4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users