Skip to content

Update VIN extraction to filter non-alphanumeric characters - #1045

Merged
marcone merged 2 commits into
marcone:main-devfrom
DennisGarvey:patch-2
May 5, 2026
Merged

Update VIN extraction to filter non-alphanumeric characters#1045
marcone merged 2 commits into
marcone:main-devfrom
DennisGarvey:patch-2

Conversation

@DennisGarvey

Copy link
Copy Markdown

Sanitize VIN variable to remove non-alphanumeric characters.

Sanitize VIN variable to remove non-alphanumeric characters.
Sanitize VIN by removing non-alphanumeric characters.
@@ -1,6 +1,6 @@
#!/bin/bash

VIN=$(sudo grep "^export TESLA_BLE_VIN=" /root/teslausb_setup_variables.conf | cut -d'=' -f2- | head -n 1)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will do for now as a quick fix, but I think it makes more sense to source /root/teslausb_setup_variables.conf (or source /root/bin/envsetup.sh) instead of trying to parse it manually.
It might even make sense to create a wrapper for fcgiwrap so that the environment is set for all the fcgiwrap processes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I was just modifying what was in place already

@marcone
marcone merged commit e69b497 into marcone:main-dev May 5, 2026
1 check passed
DennisGarvey added a commit to DennisGarvey/teslausb that referenced this pull request May 5, 2026
Update VIN extraction to filter non-alphanumeric characters (marcone#1045)
@DennisGarvey
DennisGarvey deleted the patch-2 branch May 6, 2026 03:27
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.

2 participants