Jump to content









Photo

Carriots, Panic's Status Board, and PythonAnywhere!!!

Device tutorial python ipad

  • Please log in to reply
8 replies to this topic

#1 Zambiot

Zambiot

    Advanced Member

  • Members
  • PipPipPip
  • 94 posts
  • LocationAsia

Posted 07 May 2013 - 10:35 AM

OK all you Carriots lovers out there.  I have just published a tutorial that I think you will get great use out of.  Jump on over to my Instructable to learn how to connect your Carriots account with Panic's Status Board using PythonAnywhere.  With this first tutorial, you can get your device's status right on your iPad (or web browser), without having to dig through the Control Panel.

 

http://www.instructa...ics-Status-Boa/

 

I've attached an image showing my basic status board.  I plan to create more widgets, and in turn tutorials, so that you too can have your device information in a quick to read format.

Attached Files



#2 mcastillo

mcastillo

    Carriots CEO

  • Administrators
  • 34 posts
  • LocationMadrid

Posted 07 May 2013 - 01:35 PM

Great Job! Congratulations! We are about to release some new features at Carriots that you can use in this control panel. Stay tuned for our graphs on carriots data ;)

#3 alvaro

alvaro

    Carriots CTO

  • Administrators
  • 72 posts

Posted 07 May 2013 - 05:51 PM

Wow Zambiot! Excellent job and very complete. Thanks!


Alvaro Everlet

Carriots CTO


#4 sdeancos

sdeancos

    Master of Puppets

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

Posted 07 May 2013 - 07:35 PM

It's awesome! great job Zambiot! Thanks!



#5 mcastillo

mcastillo

    Carriots CEO

  • Administrators
  • 34 posts
  • LocationMadrid

Posted 08 May 2013 - 10:17 AM

So cool that it deserves one post at our blog : https://blog.carriot...of-developers/  :) 



#6 Zambiot

Zambiot

    Advanced Member

  • Members
  • PipPipPip
  • 94 posts
  • LocationAsia

Posted 08 May 2013 - 10:30 AM

Thank you.  I feel honored.  I've got some other ideas in the works.  Once they are tested, I'll put up the tutorials.



#7 cowen42

cowen42

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 11 September 2014 - 06:35 PM

Great tutorial! A little off-topic, but I was wondering if you'd had any experience in using an iOS device as an actual carriots device? I've been trying to get this to work myself using RestKit, but no luck so far...

#8 Zambiot

Zambiot

    Advanced Member

  • Members
  • PipPipPip
  • 94 posts
  • LocationAsia

Posted 12 September 2014 - 06:41 AM

Thank you cowen42.  

 

Regarding your question about an iOS device as a Carriot device, I have not done this.  I don't see why you couldn't, you just need to post back to the Carriot API.  This could be directly or via an intermediary web server that your device connects with and trades the info you want to log.



#9 billwatson

billwatson

    Member

  • Members
  • PipPip
  • 14 posts

Posted 27 September 2015 - 04:14 AM

Hi Zambiot,

 

Thanks so much for writing this.   you're going to make a lot of people very happy.

 

I'm trying the tutorial and have run into the following issues.  If you could help me understand what I'm doing wrong I would appreciate it very much.

 

ok,  so first I got the following error message:

TypeError: the JSON object must be str, not 'bytes'

 

So to fix this I changed the following lines (with reddit help)

 

carriotsResponse = requests.get(app_url + app_element, params=params, headers=headers).json() 
binary = carriotsResponse.content 
output = json.loads(binary)

to

output = requests.get(app_url + app_element, params=params, headers=headers).json()

 

That seemed to solve the JSON issue.

but now I get a repeating message returning from the nest that follows the previous section of code.

the message in the log is:

2015-09-27 03:10:25,364 :Starting new HTTP connection (1): proxy.server

 

Any chance you could shed some light on what is happening?







Also tagged with one or more of these keywords: Device, tutorial, python, ipad

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users