element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Raspberry Pi IoT ticket printer for online stores.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: justiciero24
  • Date Created: 7 Aug 2015 11:09 PM Date Created
  • Views 1622 views
  • Likes 5 likes
  • Comments 5 comments
Related
Recommended
  • the_magpi

Raspberry Pi IoT ticket printer for online stores.

justiciero24
justiciero24
7 Aug 2015

Hi everyone!


I just want to show the project that I am working on, so lets go. This time I made an IoT ticket printer for my business, it prints the orders that users made in my store webpage.

And the best of all is that the program is pretty simple, in any e-commerce platform when a client makes an order you receive an email. So this printer is conected via IMAP service to an email account that only receives this notification emails and when the email is received the software decodes and interprets the data in the message. Then, the ticket can be printed based in the received data.

image



You only need a Raspberry Pi, a thermal printer, a neopixel, wifi dongle, the power supply and a nice looking case(in my case this is the Adafruit case for the twitter printer).



imageimage


Here its a short video showing how it works: (sorry, is in spanish)


You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

I hope you enjoy this little post.

 

UPDATE: you can check the building details in my Instructable image

http://www.instructables.com/id/Raspberry-Pi-IoT-ticket-printer-for-online-stores

If you like it, please vote for it image

 

Best regards,

Daniel Fernandez R.


  • Sign in to reply

Top Comments

  • spannerspencer
    spannerspencer over 10 years ago +2
    That's a superb idea for anyone who receives orders online! Great work I'll send you a copy of The MagPi for sharing that idea (can you ensure your postal address in your profile is up to date?). And if…
  • justiciero24
    justiciero24 over 10 years ago in reply to justiciero24 +2
    Finally the first version is done, chet it out the Instructable with the details: http://www.instructables.com/id/Raspberry-Pi-IoT-ticket-printer-for-online-stores I hope you like it PD: It´s actually…
  • justiciero24
    justiciero24 over 10 years ago in reply to spannerspencer +1
    Thanks Yes, my address that appears in my profile is correct and up to date. I will do it soon, maybe this weekend. Actually it extracts only the relevant information like the total and the order number…
  • justiciero24
    justiciero24 over 10 years ago in reply to justiciero24

    Finally the first version is done, chet it out the Instructable with the details:

    http://www.instructables.com/id/Raspberry-Pi-IoT-ticket-printer-for-online-stores

     

    I hope you like it image

     

    PD: It´s actually entered in a Raspberry Pi contest on Instructables

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • justiciero24
    justiciero24 over 10 years ago in reply to spannerspencer

    Thanks image

     

    Yes, there are a lot of things that you can do with this. You only need a bit of imagination and a problem to solve.

    I hope that we don't get fired like Marty and everyone in our house knows about it LoL image

     

    I am working on an Instructable to build this, it will only print the plain email and of course you can modify the code to print your own personalized ticket. I hope finish it soon, so stay alert image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • spannerspencer
    spannerspencer over 10 years ago in reply to justiciero24

    That's a really nice touch, using the email's read/unread status as a criteria for automatically printing. Nice work!

     

    I'm not sure exactly how, but it feels like there are a lot of other applications for this setup waiting to be discovered. I can't help but think about the fax machine outlets Marty McFly had all around his house in Back to the Future 2! image

    back to the future 2

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • justiciero24
    justiciero24 over 10 years ago in reply to spannerspencer

    Thanks image Yes, my address that appears in my profile is correct and up to date.

     

    I will do it soon, maybe this weekend. Actually it extracts only the relevant information like the total and the order number, of course you can obtain all the information of the purchase if you want. But for me it's okay only with the total and the order number.

     

    When the email arrives it contains some html code, so I used string functions to delete all the html code and only get the information that can be used. Then, I search for the data that I need to generate the ticket and after that I save it into different strings. When I have the data that I want, the ticket is printed.

    Also the printer can detect if there is paper and only marks the email as "readed"  if the ticket is successfully printed. And if you need to print it again, you only need to go to your inbox an mark that mail as "unread".

     

    Here is a picture of the the html code filtering, after that you can get everything you want of the text: (you can print the entire message as it is. And you don't need to adjust anything to fit it to the paper, the thermal printer does that for you image)

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • spannerspencer
    spannerspencer over 10 years ago

    That's a superb idea for anyone who receives orders online! Great work image I'll send you a copy of The MagPi for sharing that idea (can you ensure your postal address in your profile is up to date?).

     

    And if you want to elaborate on the set up of the actual Raspberry Pi, that'd be great too! I'd like to know more about the part when you say it decodes the info from the email; do you mean it reformats it to fit the paper in the thermal printer better, or does it extract certain information? (or both? image)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube