Skip to content

Conversation

@tomholford
Copy link
Contributor

@tomholford tomholford commented Oct 22, 2024

What's new

Inspired by #3937, this PR adds labels for Caltrain zones to the built-in Clipper NFC capture parser.

Before

image

After

image

Context

I scanned a Clipper transit card with my Flipper and found a Caltrain record. This was for a ride I took from a station in Zone 2 to a station in Zone 4. Note the 'Unknown' ON / OFF values in the Before screenshot, and the correct labels in the After image (tested on my device).

Note that unlike BART, instead of persisting individual station IDs, it appears the Caltrain tag devices save the Zone ID, since the delta in # of zones traveled is what is used to calculate the fare.

For reference, here is a map of the Zones:

Caltrain Zone Map

image

And here is more information on the zone system:

https://www.caltrain.com/stations-zones

Verification

edit: verified by @ted-logan in this comment below: #3969 (comment)

I have tested this on my device, and used this change to generate the After image.

This can also be verified by anyone with a Flipper and a Clipper. Perhaps @ted-logan, since he opened the previous Clipper PR that inspired this one.

Scan the Clipper card with the NFC reader and check a Caltrain ride to verify the zone labels.

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

@tomholford tomholford changed the title nfc: add Caltrain zones for Clipper nfc: add Caltrain zones for Clipper parser Oct 22, 2024
@tomholford tomholford force-pushed the th/add-clipper-caltrain-zones branch from 05465af to 5b922c2 Compare October 22, 2024 16:36
@tomholford tomholford marked this pull request as ready for review October 22, 2024 16:36
@hedger hedger added the NFC NFC-related label Oct 22, 2024
@ted-logan
Copy link
Contributor

LGTM. I have a few Caltrain rides on my Clipper card and the zones look correct to me.

@tomholford
Copy link
Contributor Author

LGTM. I have a few Caltrain rides on my Clipper card and the zones look correct to me.

Thank you @ted-logan for testing! And for your work on #3937

@tomholford tomholford changed the title nfc: add Caltrain zones for Clipper parser nfc: add Caltrain zones to Clipper transit parser Oct 24, 2024
@skotopes skotopes merged commit 55d1588 into flipperdevices:dev Oct 31, 2024
11 checks passed
@skotopes
Copy link
Contributor

@tomholford @ted-logan
keanu-001

@tomholford
Copy link
Contributor Author

@tomholford @ted-logan keanu-001

😆 @skotopes ありがとうございました

@tomholford tomholford deleted the th/add-clipper-caltrain-zones branch October 31, 2024 04:42
@skotopes
Copy link
Contributor

どういたしまして(^_^)

@tomholford tomholford mentioned this pull request Nov 8, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NFC NFC-related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants