Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino By Example

You're reading from   Arduino By Example Design and build fantastic projects and devices using the Arduino platform

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785289088
Length 242 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Adith Jagdish Boloor Adith Jagdish Boloor
Author Profile Icon Adith Jagdish Boloor
Adith Jagdish Boloor
Adith J Boloor Adith J Boloor
Author Profile Icon Adith J Boloor
Adith J Boloor
Arrow right icon
View More author details
Toc

Dealing with the image

As discussed before, when Arduino sends a message to Python, it is going to take a snapshot using the camera and save it to the computer. What do we do with it, then? How do we upload it to a file sharing platform? There are several ways to do this, but in this chapter, we will be using Imgur. Yes, the same Imgur that you have been using, knowingly or unknowingly, on Reddit or 9gag.

Go to http://imgur.com/ and sign up for a new account.

Once you have verified your account, go to https://api.imgur.com/oauth2/addclient to add a new application so that Imgur permits you to post images using a script. Use the following information:

  • Application name: Arduino burglar alarm
  • Authorization type: OAuth 2 authorization without callback URL
  • Email: <your email>
  • Description: Using Arduino to catch the cookie thieves

Now proceed, and you will get a page like this:

Dealing with the image

Imgur will give you the Client ID and Client secret. Save them in a safe location as we will need them later.

Let us try...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime