GeniCanMakers

Guide

Build a GeniCan with a Raspberry Pi.

By the end you will scan a real barcode with a USB scanner and watch it appear on a GeniCan shopping list. Plan about one class period.

What it costs: building is free, and your household's builds run free for 14 days from the first item any of them adds; building and debugging don't count, so take your time. After that, keeping them adding takes your household's GeniCan subscription ($3.99/month, the same one that covers GeniCans on your phones), because every add is a lookup we process for you. Schools and classrooms: ask us about school pricing. Already building before December 1, 2026? Your 14 days don't start before December 1.

1

Get your parts

You need a Raspberry Pi with Wi-Fi, a USB barcode scanner, a power supply and a microSD card. The Pi should run the standard Raspberry Pi OS with Python 3 and the requests library (pip install requests).

Optional: a 3D printer can make a case for your build — the original GeniCan case designs are on the case page as inspiration; expect to edit them to fit.

2

Make a GeniCan account and a list

Sign in at genican.com, make a household and create a list called something like "Class build". For a class, use one shared teacher account so students never need their own.

Open the list and copy its ID from the page address. That is your list ID.

3

Get a setup token

Your account needs a setup token to pair a device. Sign in at genican.com or open the GeniCan app, go to the GeniCan page, and under Built your own GeniCan? choose Create a setup token. That section appears once you've signed up for the Maker Program with the same email as your GeniCan account. Developers can also request one from the account API with a signed-in session: POST /api/v1/devices/tokens with {} as the body.

4

Pair your Pi

Pairing gives your Pi its own device token. Run this once from any computer:

curl -X POST https://genican.com/api/maker/v1/register \
  -H "Authorization: Bearer <redacted>" \
  -H "Content-Type: application/json" \
  -d '{"list_id": "YOUR_LIST_ID", "device_name": "Room 12 GeniCan"}'

In the reply, copy the device_token value. That token is your Pi's password, so keep it private and never post it online.

Pairing is free, and nothing starts charging today; your household's 14 free days begin at the first successful add by any build, not now.

5

Scan a barcode

Plug the scanner into the Pi, open a terminal, and run this script. Scan any grocery barcode and it lands on your list.

import requests

BASE = "https://genican.com"
DEVICE_TOKEN = "PASTE_YOUR_DEVICE_TOKEN_HERE"

def scan(upc):
    r = requests.post(
        f"{BASE}/api/maker/v1/add",
        headers={"Authorization": f"Bearer {DEVICE_TOKEN}"},
        json={"upc_code": upc},
        timeout=10,
    )
    if r.status_code == 402:
        return "subscribe"   # the 14 free days are over: a household subscription keeps it adding
    if r.status_code != 200:
        return "error"
    data = r.json()
    if data.get("status") == "added":
        return "added"
    if data.get("status") == "unknown_product":
        return "unknown"
    return "error"

while True:
    upc = input("Scan a barcode: ").strip()   # the scanner types the number, then Enter
    if upc:
        print(scan(upc))

It prints added when GeniCan knows the product, unknown when it has never seen the barcode, subscribe once the 14 free days are over and the household needs its subscription, and error for a bad token or a network problem. The same call can also add by voice — send an audio_file recording instead of a barcode — or read a barcode out of a photo with barcode_image.

6

Make it yours

Now the project is open. Students can light an LED green when a scan is added and red when it is unknown, show the result on a display, or report how often the can is used. The status light colours the real GeniCan uses are green for ready, blue for power, purple for a question, white for sending and red for listening.

Ground rules

  • Use a separate class account and list, never a family's real list.
  • Keep tokens private. If one leaks, delete the device in the GeniCan app and pair again.
  • Be gentle: scan at human speed. Heavy automated traffic may be limited.
  • Building is free for schools, classrooms, clubs and personal hobby builds. Your household's maker builds run free for 14 days from the first add by any of them; then your household subscription keeps them running, because every add is a lookup we process for you. Any commercial use of the Maker API or GeniCan designs needs our written permission.