Toggle Navigation
Hatchery
Eggs
Set time using BLE
README.md
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
README.md
raw
Content
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