BangleApps/apps/cards
Gabriele Monaco b17c640acf Added licenses and references to cards code libraries 2023-09-13 17:03:23 +02:00
..
Barcode.js Added licenses and references to cards code libraries 2023-09-13 17:03:23 +02:00
ChangeLog cards: added changelog and used libraries 2023-08-15 15:31:18 +02:00
README.md cards: added disclaimer in README 2023-09-12 07:20:08 +02:00
app-icon.js Added `cards` app 2023-08-15 14:44:21 +02:00
app.js Going back from the code view with button 2023-08-24 18:27:22 +02:00
app.png Added `cards` app 2023-08-15 14:44:21 +02:00
codabar.js Added licenses and references to cards code libraries 2023-09-13 17:03:23 +02:00
code39.js Added licenses and references to cards code libraries 2023-09-13 17:03:23 +02:00
metadata.json Made code colours independent on the theme 2023-08-17 14:19:40 +02:00
qrcode.js Added licenses and references to cards code libraries 2023-09-13 17:03:23 +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.

To come back to the visualization of the card's details from the code view, simply press the button.

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

Disclaimer

This app is a proof of concept, many codes are too complex to be rendered by the bangle's screen or hardware (at least with the current logic), keep that in mind.

How to sync

WIP: we currently cannot synchronize cards, a PR is under review in GadgetBridge repo, soon we will see support on nightly builds

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