Ryan HigginsLeanna LeungStacy KellnerMark Lam
Created October 29, 2015

ConJobs - Hyper Personal Prototyping

Riding the waves towards success

Showcase (no instructions)173
ConJobs - Hyper Personal Prototyping

Things used in this project

Hardware components

12"x24" econo-wood
×1
12"x24" blue acrylic
×2
hot glue gun
×1
Raspberry Pi 2 Model B
Raspberry Pi 2 Model B
×1
Raspberry Pi WiFi Fongle
×1
5V 2A switching power supply - UL listed
×1
Mini-receipt thermal printer
×1
Thermal paper-roll 2.25” wide
×1
Female DC Power Adapter- 2.1mm jack to screw terminal block
×1
5V 2A switching power supply with micro-USB cable
×1
Jumper wires (male to female)
×4

Story

Read more

Custom parts and enclosures

Wooden Base

Acrylic Box

Waves

Surfer Figure

Code

conjobs.py

Python
Raspberry Pi code. Pings our server to fetch JSON, then formats the JSON in a digestible manner, and tells the printer to print it.
    import urllib
    import json
    import printer
    import requests
    import time

    NUMBER_OF_JOBS = 5

    p = printer.ThermalPrinter(serialport=/dev/ttyAMA0)
    p.linefeed()
    p.linefeed()
    p.linefeed()
    p.linefeed()
    p.justify(C)

    
    While True:
        result = urllib.urlopen(http://conjobs.herokuapp.com/new_jobs).read()
        data = json.loads(result)
        p.print_text(\n\n\n\n\n\n\n\n)
        p.print_text(CONJOBS\n)
        p.print_text(Todays hot 5 jobs\n\n\n\n)
        time.sleep(2)
        for i in range(NUMBER_OF_JOBS):
            job = data(jobs)[i]
            title = %s\n % job[ujobtitle]
            company = %s\n % job[ucompany]
            formatted_location = %s\n % job[uformattedLocation]
            posting_date = %s\n % job[udate]
            p.print_text(title)
            p.print_text(company)
            p.print_text(formatted_location)
            p.print_text(posting_date)
            p.print_text(\n\n\n)
            p.print_text(\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n)
            time.sleep(86400)

Conjobs server

Server stores job data, and makes request to indeed.com. Raspberry Pi pings this server for new jobs.

Credits

Ryan Higgins

Ryan Higgins

3 projects • 1 follower
Leanna Leung

Leanna Leung

3 projects • 0 followers
Stacy Kellner

Stacy Kellner

3 projects • 1 follower
Mark Lam

Mark Lam

4 projects • 0 followers

Comments