BangleApps/apps/cards
Gabriele Monaco 26da9b2bb3 Made code colours independent on the theme 2023-08-17 14:19:40 +02:00
..
Barcode.js Added `cards` app 2023-08-15 14:44:21 +02:00
ChangeLog cards: added changelog and used libraries 2023-08-15 15:31:18 +02:00
README.md cards: added changelog and used libraries 2023-08-15 15:31:18 +02:00
app-icon.js Added `cards` app 2023-08-15 14:44:21 +02:00
app.js Made code colours independent on the theme 2023-08-17 14:19:40 +02:00
app.png Added `cards` app 2023-08-15 14:44:21 +02:00
codabar.js Added `cards` app 2023-08-15 14:44:21 +02:00
code39.js Added `cards` app 2023-08-15 14:44:21 +02:00
metadata.json Made code colours independent on the theme 2023-08-17 14:19:40 +02:00
qrcode.js Added `cards` app 2023-08-15 14:44:21 +02:00
screenshot_cards_barcode.png Added padding to codes and updated screenshots 2023-08-16 08:58:32 +02:00
screenshot_cards_card1.png Added padding to codes and updated screenshots 2023-08-16 08:58:32 +02:00
screenshot_cards_card2.png Added padding to codes and updated screenshots 2023-08-16 08:58:32 +02:00
screenshot_cards_overview.png Added `cards` app 2023-08-15 14:44:21 +02:00
screenshot_cards_qrcode.png Added `cards` app 2023-08-15 14:44:21 +02:00
settings.js Made code colours independent on the theme 2023-08-17 14:19:40 +02:00

README.md

Cards

Simple app to display loyalty cards synced from Catima through GadgetBridge. The app can display the cards' info (balance, expiration, note, etc.) and tapping on the appropriate field will display the code, if the type is supported.

Double tapping on the code will come back to the visualization of the card's details.

Beware that the small screen of the Banglejs 2 cannot render properly complex barcodes (in fact the resolution is very limited to render most barcodes).

Supported codes types

  • CODE_39
  • CODABAR
  • QR_CODE

How to sync

WIP: we currently cannot synchronize cards

You can test it by sending on your bangle a file like this:

android.cards.json

[
  {
    "id": 1,
    "name": "First card",
    "value": "01234",
    "note": "Some stuff",
    "type": "CODE_39",
    "balance": "15 EUR",
    "expiration": "1691102081"
  },
  {
    "id": 2,
    "name": "Second card",
    "value": "Hello world",
    "note": "This is a qr generated on the bangle!",
    "type": "QR_CODE",
    "balance": "2 P"
  }
]

Credits

Barcode generation adapted from lindell/JsBarcode

QR code generation adapted from ricmoo/QRCode