Snapshot of the working tree exactly as it stood, no edits. This is the predecessor
PRICEGOD was rewritten from ("kept intact, untouched" per pricegod/README.md), and it
is still the only place the DYMO scale is actually implemented —
rfid-daemon/index.js:1068-1265: HID discovery, parseScaleReport, one-shot read, and a
streaming /weight + /scale/start|stop session whose JSON shape PRICEGOD's daemon.js
already speaks.
Preserved verbatim on purpose (hence -og), including the known bug: DYMO_PIDS at
index.js:1082 is [0x8003, 0x8004], so it cannot see the bench M25 (0x8009). Fix that
in whatever daemon inherits the scale, not here.
node_modules stays ignored (22M of the 24M tree). No credentials in the import: the
two PEM markers in utils.js/sheets.js only strip headers off a key read from settings,
and mrpadmin / johnking are an SSH and a Postgres username, both key/trust auth.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
55 lines
3.1 KiB
Markdown
55 lines
3.1 KiB
Markdown
This Chrome extension streamlines pricing, inventory management, and label printing for Discogs sellers. It integrates directly with Discogs release pages to automate price tag generation, Google Sheets logging, and price data collection.
|
||
|
||
Features
|
||
|
||
Core Functionality
|
||
• Price Tag Generation: Works on discogs.com/release/ pages. When adding a release to your collection, set media condition, sleeve condition, price, and notes. Clicking the popup button generates a price tag for printing.
|
||
• Discogs API Integration: Fetches price suggestions via an authenticated API call.
|
||
• Google Sheets Sync: Logs pricing details in a Google Sheet using a service account.
|
||
|
||
Label & Sheet Buttons
|
||
• Label: Opens a printable price tag.
|
||
• Sheet: Logs the release details in Google Sheets.
|
||
• Both: Performs both actions simultaneously.
|
||
|
||
Label Printing & Customization
|
||
• Thermal Printer Support: Designed for generic thermal label printers.
|
||
• Dynamic Label Layout: Labels are mapped to Discogs info (artist, genre, etc.), and the container size, div positions, and SVG logo can be adjusted.
|
||
• Planned UI Panel: A future update will add a UI settings panel for live preview and customization of label layout, size, and elements.
|
||
|
||
Additional Modes
|
||
• Average Price Mode: Once a release is logged in the sheet, the extension can fetch the “average price” visible on https://www.discogs.com/sell/post/ (manual HTML load required).
|
||
• Global Seller Data Mode: Retrieves pricing data from https://www.discogs.com/sell/release/ for future auto-pricing algorithms (manual HTML load required due to Discogs’ robots.txt restrictions).
|
||
|
||
Google Sheets Integration
|
||
• Requires a Google Sheets service account for write access.
|
||
• A future update will add a UX settings panel to input credentials and auto-generate credentials.json.
|
||
|
||
Installation
|
||
1. Install the extension via Chrome Developer Mode.
|
||
2. Navigate to discogs.com/release/ pages to use the popup.
|
||
3. Configure Google Sheets access (for write functionality).
|
||
|
||
Future Plans
|
||
• UI settings panel for live label customization and preview.
|
||
• Automated pricing algorithm using global seller data.
|
||
|
||
|
||
|
||
Pricing & Workflow Summary
|
||
|
||
1. Find Release on Discogs → Locate the exact release page.
|
||
2. Add to Collection → Input media condition, sleeve condition, price, notes, and assign to a folder.
|
||
3. Generate Price Label & Log Data:
|
||
• Press Popup → Loads price suggestions and saved details.
|
||
• Press BOTH → Opens a new window with a printable price label and writes data to Google Sheets.
|
||
• Press Label → Prints a new label without writing to Sheets.
|
||
• Press Sheet → Writes to Sheets without printing a new label.
|
||
4. Sell a Copy Workflow:
|
||
• Click “Sell a Copy” (https://www.discogs.com/sell/post/).
|
||
• Popup changes to show average price from Discogs.
|
||
• Press Update → Saves the average price to Google Sheets (matching by Release ID).
|
||
5. Global Seller Data:
|
||
• Click “Copies for Sale” (https://www.discogs.com/sell/release/).
|
||
• Popup updates to show all global sellers’ prices and conditions.
|
||
• Press Zap to Sheet → Logs this data to Google Sheets for future auto-pricing algorithms. |