Skip to content

Add ebike charger, display/remote, and wiring harness component types - #49

Merged
sethherr merged 3 commits into
mainfrom
ebike_stuff
Jun 29, 2026
Merged

Add ebike charger, display/remote, and wiring harness component types#49
sethherr merged 3 commits into
mainfrom
ebike_stuff

Conversation

@sethherr

@sethherr sethherr commented Jun 29, 2026

Copy link
Copy Markdown
Member

Adds e-vehicle electronics to the component types taxonomy and fixes the bike_index download script.

  • Adds e-vehicle Charger, e-vehicle Display/Remote, and e-vehicle Wiring Harness to data/component_types.csv, and renames the existing Ebike Battery/Ebike Motor to the e-vehicle form (lowercase prefix, Electric Vehicle … secondary names). The UI/Remote handlebar HMI maps to e-vehicle Display/Remote.
  • Fixes bin/download_from_bike_index to save the components.csv download under the maintained name component_types.csv (renamed in Rename component_types, brake_types, drivetrain_attributes CSVs #46) instead of dropping a stray components.csv, so a bare run refreshes the data/ files correctly. Also normalizes the output dir's trailing slash.
  • Updates csvs_spec to read the renamed reference (tmp/component_types.csv).

sethherr and others added 3 commits June 29, 2026 00:52
Follows the existing Ebike Battery/Ebike Motor convention (Drivetrain
group, "Electric Bike ..." secondary name) for three e-bike electronics
components.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Renames the five electric component types from "Ebike X" to "e-vehicle X"
(lowercase prefix, broader e-vehicle term), with "Electric Vehicle X"
secondary names.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bike_index serves components.csv, but the repo renamed it to
component_types.csv (#46). The script still wrote a stray components.csv.
Now it saves that download under the maintained name so a bare run
refreshes the data/ files correctly.

- Save the components download as ${outdir}component_types.csv.
- Normalize the output dir's trailing slash so "data" and "data/" both work.
- Update csvs_spec to read the renamed reference (tmp/component_types.csv).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sethherr
sethherr marked this pull request as ready for review June 29, 2026 08:45
@sethherr
sethherr merged commit 1c110db into main Jun 29, 2026
1 check passed
@sethherr
sethherr deleted the ebike_stuff branch June 29, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant