Jump to content









Photo

Where can I download the Carriots SDK

sdk

  • Please log in to reply
7 replies to this topic

#1 holyzfy

holyzfy

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 29 April 2013 - 02:43 AM

:P



#2 alvaro

alvaro

    Carriots CTO

  • Administrators
  • 72 posts

Posted 29 April 2013 - 07:33 AM

Hello holyzfy.

 

At this moment Carriots SDK can't be downloaded, it is executed from listeners’ expressions or rules on Carriots engine. There will be external SDK releases in Python, Java, PHP, Javascript and other languages for executing actions against Carriots API.

 

You can find an example of using Carriots from external systems in our Raspberry Pi alarm system tutorial (Python).

 

Hope it helps.


Alvaro Everlet

Carriots CTO


#3 holyzfy

holyzfy

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 29 April 2013 - 08:32 AM

Thank you alvaro



#4 sdeancos

sdeancos

    Master of Puppets

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

Posted 29 April 2013 - 09:04 AM

Hi holyzfy!

 

You try https://github.com/s...cos/clicarriots, its a unofficial simple client for carriots platform in python.

 

Now only can send stream, list streams, get device and list device. I gradually add more functionalities, anyway if anyone is interested in participating this is free software, any contribution is welcome.

 

I hope its helps.

 

Enjoy Carriots!



#5 rusczj2

rusczj2

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 30 September 2014 - 03:35 PM

Hey Sdeancos, can you update the files to the Python3?

 

I did the update using 2to3 and works fine. But as Python3 is the one being updated now I think it makes sense.

 

thanks



#6 sdeancos

sdeancos

    Master of Puppets

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

Posted 30 September 2014 - 06:35 PM

Hi rusczj2,

 

I also think it makes sense, thanks for your feedback, great idea porting to python3, I initially wrote for python 2.x because I thought to use a RaspberryPi.

 

As soon as I can I implement for python3.

 

Thanks you very much!!



#7 sdeancos

sdeancos

    Master of Puppets

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

Posted 30 September 2014 - 07:11 PM

Hi all!

 

It seems it was easier than it looked, now working for python2.x/3.x

 

https://github.com/s...cos/clicarriots

 

Enjoy!!



#8 rusczj2

rusczj2

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 October 2014 - 07:39 PM

Sdeancos,

 

Python 3 makes a distinction between bytes and strings. So some tutorials might have to be modified for that.

 

 

I'm getting issues when I use the JSON and POST method, for example. (Fixed, see *)

 

BR

 

*for the https://www.carriots...ts/alert_system

 

use:

 

    def send(self, data):
        self.data = dumps(data).encode('ascii')
        request = urllib.request.Request(Client.api_url, self.data, self.headers)
        self.response = urllib.request.urlopen(request)
        return self.response
 
:)






Also tagged with one or more of these keywords: sdk

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users