MCH2022 badge?
go to mch2022.badge.team

Set time using BLE rev. 3 (by marcus)

This script runs on your host machine and needs python 3 and bluepy. It sets the current time to you CARD10 with using BLE with writing to the time update characteristic [1].

Script usage python run.py [MAC="CA:4D:10:C3:20:19"] [MIN_OFFSET=0]

  • MAC: If your Card10 MAC isn't CA:4D:10:C3:20:19 (WHYYY?), then provide your MAC as a first command line argument for connection
  • MIN_OFFSET: for people not living in the CCC timezone (did I miss an option to set the timezone somewhere?) or for people who like to tweak their time so they never be late again, OFFSET changes the system time (of wherever you run this script) with the provided offset minutes

Instructions:

  1. Get bluepy [2]
  2. run the script, e.g., python3 run.py CA:4D:10:AA:BB:CC -60 for changing the Card10 wrist badge CA:4D:10:AA:BB:CC to current UK time

Contribute: https://gitlab.com/scheunemann/card10-set-time-with-ble


[1] https://firmware.card10.badge.events.ccc.de/bluetooth/card10.html#time-update-characteristic [2] https://github.com/IanHarvey/bluepy

Category: utility
Status: working
Vote Comment Date
No votes yet :(
Compatibility
  • card10: working
Dependencies
  • No dependencies found
Dependants
  • No dependants found
File Last edited Size
run.py 2019-08-29 00:15:17 693 B
README.md 2019-09-06 18:13:45 1.03 KiB