Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HermannBjorgvin/Clawdmeter
/ functions
Functions
503 in github.com/HermannBjorgvin/Clawdmeter
⨍
Functions
503
◇
Types & classes
23
↓ 1 callers
Function
_build_file_logger
Create a rotating file logger for field diagnostics, or None. Autostart launches the tray under pythonw.exe, which has no console — stdout is
daemon/claude_usage_daemon_windows.py:63
↓ 1 callers
Function
_command
Build the headless launch command for the Run value. Uses the BASE interpreter's pythonw.exe — `sys.base_exec_prefix` points at the real Pyth
daemon/autostart_windows.py:38
↓ 1 callers
Function
_get_cb_manager
Lazily create and ready a shared CoreBluetooth central manager.
daemon/claude_usage_daemon.py:195
↓ 1 callers
Function
_is_encryption_error
True if a connect error is a macOS bonding/encryption mismatch. macOS reports a stale bond as CBErrorDomain Code=15 ("Failed to encrypt the c
daemon/claude_usage_daemon.py:565
↓ 1 callers
Function
_on_quit
(icon_ref, _item)
daemon/tests/test_windows_tray.py:158
↓ 1 callers
Function
_read_token_keychain
()
daemon/claude_usage_daemon.py:93
↓ 1 callers
Function
accel_to_rotation
firmware/src/boards/waveshare_amoled_216/imu.cpp:19
↓ 1 callers
Function
add_chime_field
Add "c":1 to the payload when the config opts in, so the firmware may sound the session-reset chime. Omitted entirely when chime is off.
daemon/claude_usage_daemon.py:331
↓ 1 callers
Function
add_chime_field
Add "c":1 to the payload when the config opts in, so the firmware may sound the session-reset chime. Omitted entirely when chime is off.
daemon/claude_usage_daemon_windows.py:157
↓ 1 callers
Function
add_clock_fields
Add wall-clock fields to the payload when the config opts in. "t" = local wall-clock epoch (UTC epoch shifted by the tz offset) so the
daemon/claude_usage_daemon.py:361
↓ 1 callers
Function
add_clock_fields
Add "t" (local wall-clock epoch) + "tf" (12|24) when the config opts in.
daemon/claude_usage_daemon_windows.py:176
↓ 1 callers
Function
ble_clear_bonds
firmware/src/ble.cpp:338
↓ 1 callers
Function
ble_get_data
firmware/src/ble.cpp:356
↓ 1 callers
Function
ble_has_data
firmware/src/ble.cpp:352
↓ 1 callers
Function
ble_init
firmware/src/ble.cpp:252
↓ 1 callers
Function
ble_request_refresh
firmware/src/ble.cpp:375
↓ 1 callers
Function
ble_send_ack
firmware/src/ble.cpp:361
↓ 1 callers
Function
ble_send_nack
firmware/src/ble.cpp:368
↓ 1 callers
Function
ble_tick
firmware/src/ble.cpp:319
↓ 1 callers
Function
board_init
firmware/src/boards/template/board_init.cpp:9
↓ 1 callers
Function
brightness_cycle
firmware/src/brightness.cpp:25
↓ 1 callers
Function
brightness_get
firmware/src/brightness.cpp:37
↓ 1 callers
Function
brightness_init
firmware/src/brightness.cpp:14
↓ 1 callers
Function
build_idle_group
Idle "Zzz" screen — shown when the host is connected but no usage update has landed recently (token expired, daemon down, host asleep…). Full-screen,
firmware/src/ui.cpp:353
↓ 1 callers
Function
build_pair_group
Pairing hint — shown when disconnected so the screen isn't empty and the user knows how to (re)pair. Wording matches the 3-second release gesture.
firmware/src/ui.cpp:319
↓ 1 callers
Function
check_serial_cmd
firmware/src/main.cpp:170
↓ 1 callers
Function
clear_owner
firmware/src/ble.cpp:92
↓ 1 callers
Function
color_distance
(c1, c2)
daemon/tests/test_windows_icon.py:111
↓ 1 callers
Function
compute_layout
Pick layout values from the active board's pixel dimensions. The two existing boards happen to land on the two breakpoints below; new ports inherit th
firmware/src/ui.cpp:52
↓ 1 callers
Function
connect_and_run
Connect to a target and poll until disconnected or stopped. ``target`` is either an address string (Linux) or a BLEDevice carrying live CoreB
daemon/claude_usage_daemon.py:650
↓ 1 callers
Function
convert
(pngPath, symbol, wMacro, hMacro, tint)
tools/png_to_lvgl.js:16
↓ 1 callers
Function
deriveCategory
(filename)
tools/scrape_claudepix.js:60
↓ 1 callers
Function
detect_hour_format
Best-effort 12h/24h detection for the host. Returns 12 or 24 (default 24).
daemon/claude_usage_daemon.py:338
↓ 1 callers
Function
detect_hour_format
Best-effort 12h/24h detection on Windows via the registry. Returns 12 or 24.
daemon/claude_usage_daemon_windows.py:164
↓ 1 callers
Function
discover_bonded_address
Return the BLE address of the bonded Clawdmeter, or None. A device that is paired AND connected to Windows stops advertising, so BleakScanner
daemon/claude_usage_daemon_windows.py:298
↓ 1 callers
Function
discover_target
Return a connectable target, or None. The daemon only ever targets the device this system already holds — it never scans for a nearby device
daemon/claude_usage_daemon.py:263
↓ 1 callers
Function
displayName
(filename)
tools/scrape_claudepix.js:67
↓ 1 callers
Function
display_hal_begin
firmware/src/boards/template/display.cpp:20
↓ 1 callers
Function
display_hal_draw_bitmap
firmware/src/boards/template/display.cpp:36
↓ 1 callers
Function
display_hal_init
firmware/src/boards/template/display.cpp:14
↓ 1 callers
Function
display_hal_round_area
firmware/src/boards/template/display.cpp:52
↓ 1 callers
Function
display_hal_set_brightness
firmware/src/boards/template/display.cpp:26
↓ 1 callers
Function
display_hal_tick
firmware/src/boards/template/display.cpp:47
↓ 1 callers
Function
es8311_clock_config
firmware/src/es8311.c:230
↓ 1 callers
Function
es8311_create
firmware/src/es8311.c:437
↓ 1 callers
Function
es8311_fmt_config
firmware/src/es8311.c:285
↓ 1 callers
Function
es8311_init
firmware/src/es8311.c:319
↓ 1 callers
Function
es8311_microphone_config
firmware/src/es8311.c:306
↓ 1 callers
Function
es8311_setup
firmware/src/chime.cpp:16
↓ 1 callers
Function
es8311_voice_volume_set
firmware/src/es8311.c:356
↓ 1 callers
Function
get_coeff
* look for the coefficient in coeff_div[] table */
firmware/src/es8311.c:163
↓ 1 callers
Function
hexToRgb565
(hex)
tools/convert_to_c.js:35
↓ 1 callers
Function
i2c_present
firmware/src/boards/waveshare_amoled_18/board_init.cpp:14
↓ 1 callers
Function
idle_init
firmware/src/idle.cpp:33
↓ 1 callers
Function
idle_tick
firmware/src/idle.cpp:78
↓ 1 callers
Function
imu_hal_init
firmware/src/boards/template/imu.cpp:7
↓ 1 callers
Function
imu_hal_tick
firmware/src/boards/template/imu.cpp:8
↓ 1 callers
Function
init_battery_icons
firmware/src/ui.cpp:282
↓ 1 callers
Function
init_usage_screen
firmware/src/ui.cpp:372
↓ 1 callers
Function
input_hal_init
firmware/src/boards/template/input.cpp:5
↓ 1 callers
Function
io_expander_get
firmware/src/boards/waveshare_amoled_18/io_expander.cpp:60
↓ 1 callers
Function
io_expander_init
firmware/src/boards/waveshare_amoled_18_c6/io_expander.cpp:38
↓ 1 callers
Function
io_expander_init
firmware/src/boards/waveshare_amoled_18/io_expander.cpp:36
↓ 1 callers
Function
io_expander_set
firmware/src/boards/waveshare_amoled_18/io_expander.cpp:53
↓ 1 callers
Function
load_cached_address
()
daemon/claude_usage_daemon.py:164
↓ 1 callers
Function
load_owner
firmware/src/ble.cpp:100
↓ 1 callers
Function
main
()
tools/convert_to_c.js:55
↓ 1 callers
Function
main
()
tools/scrape_claudepix.js:71
↓ 1 callers
Function
main
()
daemon/claude_usage_daemon.py:716
↓ 1 callers
Function
main
(tray_state=None)
daemon/claude_usage_daemon_windows.py:637
↓ 1 callers
Function
main
()
daemon/test_macos_connect.py:17
↓ 1 callers
Function
main
Tray entry point: build icons, start daemon bg thread, run pystray. `import pystray` is intentionally INSIDE this function (not at module top)
daemon/tray_windows.py:163
↓ 1 callers
Function
makeSandbox
()
tools/scrape_claudepix.js:32
↓ 1 callers
Function
make_bar
firmware/src/ui.cpp:243
↓ 1 callers
Function
make_panel
firmware/src/ui.cpp:226
↓ 1 callers
Function
make_pill
firmware/src/ui.cpp:267
↓ 1 callers
Function
nearest_bubble
(pixel_rgb)
daemon/tests/test_windows_icon.py:114
↓ 1 callers
Function
oldest_idx
firmware/src/usage_rate.cpp:32
↓ 1 callers
Function
pair_tick
firmware/src/main.cpp:257
↓ 1 callers
Function
paletteToRgb565
(palette)
tools/convert_to_c.js:47
↓ 1 callers
Function
parse_json
Parse a JSON line into UsageData.
firmware/src/main.cpp:101
↓ 1 callers
Function
poll_active_payload
Poll every configured config dir and return the active plan's payload. Returns None when no dir yields a usable payload this cycle. A single
daemon/claude_usage_daemon.py:501
↓ 1 callers
Function
poll_api
(token: str)
daemon/claude_usage_daemon.py:376
↓ 1 callers
Function
power_hal_init
firmware/src/boards/template/power.cpp:16
↓ 1 callers
Function
power_hal_is_vbus_in
firmware/src/boards/template/power.cpp:21
↓ 1 callers
Function
power_hal_pwr_long_pressed
Hold-to-pair gesture signals. Mirror the 216 (PMU PKEY long/positive IRQs) or the 1.8" (software hold-timing off a polled GPIO) port. Stub = no gestur
firmware/src/boards/template/power.cpp:25
↓ 1 callers
Function
power_hal_pwr_pressed
firmware/src/boards/template/power.cpp:22
↓ 1 callers
Function
power_hal_tick
firmware/src/boards/template/power.cpp:17
↓ 1 callers
Function
read_chime_setting
Read the `chime` option from the config file. One of: off|on. Defaults to "off" (the device stays silent) so existing setups are unaffected u
daemon/claude_usage_daemon.py:287
↓ 1 callers
Function
read_chime_setting
Read the `chime` option from the config file. One of: off|on. Defaults to "off" so the device stays silent until the user opts in.
daemon/claude_usage_daemon_windows.py:115
↓ 1 callers
Function
read_clock_setting
Read the `clock` option from the config file. One of: off|auto|12|24. Defaults to "off" (no clock; the device keeps showing "Usage") so existing
daemon/claude_usage_daemon.py:309
↓ 1 callers
Function
read_clock_setting
Read the `clock` option from the config file. One of: off|auto|12|24. Defaults to "off" so existing setups keep showing "Usage" until opted in.
daemon/claude_usage_daemon_windows.py:136
↓ 1 callers
Function
read_reg
firmware/src/boards/waveshare_amoled_18_c6/io_expander.cpp:29
↓ 1 callers
Function
read_reg
firmware/src/boards/waveshare_amoled_18/io_expander.cpp:27
↓ 1 callers
Function
resolve_group_lists
firmware/src/splash.cpp:57
↓ 1 callers
Function
retrieve_connected_macos
Return a BLEDevice for a system-connected 'Clawdmeter', or None. Two-step lookup, strongest signal first: 1. Peripherals connected under our
daemon/claude_usage_daemon.py:209
↓ 1 callers
Function
rgb565
(r, g, b)
tools/png_to_lvgl.js:12
↓ 1 callers
Function
rotate_strip
Rotate a w×h strip into rot_buf and compute destination coordinates on the 480×480 panel. Src is row-major over the rectangle (sx, sy, w, h).
firmware/src/boards/waveshare_amoled_216/display.cpp:46
↓ 1 callers
Function
safeIdent
(s)
tools/convert_to_c.js:24
↓ 1 callers
Function
save_owner
firmware/src/ble.cpp:86
← previous
next →
101–200 of 503, ranked by callers