You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to synchronization of music I wanted to have the ability to sync lightshows and boombox files. I added a "lightshow" and "boombox" share on the same NAS that is hosting the "music" and "teslausb" shares. I then modified the following:
if [ -e "$BOOMBOX_ARCHIVE_MOUNT" ]
then
log "Ensuring boombox archive is mounted..."
if ensure_mountpoint_is_mounted_with_retry "$BOOMBOX_ARCHIVE_MOUNT"
then
log "Ensured boombox archive is mounted."
else
log "Failed to mount boombox archive."
return 1
fi
fi
if [ -e "$LIGHTSHOW_ARCHIVE_MOUNT" ]
then
log "Ensuring lightshow archive is mounted..."
if ensure_mountpoint_is_mounted_with_retry "$LIGHTSHOW_ARCHIVE_MOUNT"
then
log "Ensured lightshow archive is mounted."
else
log "Failed to mount lightshow archive."
return 1
fi
fi
in disconnect-archive.sh
if [ -e "$LIGHTSHOW_ARCHIVE_MOUNT" ]
then
log "unmounting $LIGHTSHOW_ARCHIVE_MOUNT"
if ! umount -f -l "$LIGHTSHOW_ARCHIVE_MOUNT"
then
log "unmount failed"
fi
fi
if [ -e "$BOOMBOX_ARCHIVE_MOUNT" ]
then
log "unmounting $BOOMBOX_ARCHIVE_MOUNT"
if ! umount -f -l "$BOOMBOX_ARCHIVE_MOUNT"
then
log "unmount failed"
fi
fi
function ensure_lightshow_file_is_mounted () {
log "Ensuring lightshow backing file is mounted..."
disconnect_usb_drives_from_host
ensure_mountpoint_is_mounted_with_retry "$LIGHTSHOW_MOUNT"
log "Ensured lightshow drive is mounted."
}
function ensure_boombox_file_is_mounted () {
log "Ensuring boombox backing file is mounted..."
disconnect_usb_drives_from_host
ensure_mountpoint_is_mounted_with_retry "$BOOMBOX_MOUNT"
log "Ensured boombox drive is mounted."
}
function unmount_lightshow_file () {
unmount_mount_point "$LIGHTSHOW_MOUNT"
}
function unmount_boombox_file () {
unmount_mount_point "$BOOMBOX_MOUNT"
}
function copy_lightshow_files () {
log "Starting lightshow sync..."
ensure_lightshow_file_is_mounted
/root/bin/copy-lightshow.sh
# Trim the empty space from the music archive.
trim_free_space "$LIGHTSHOW_MOUNT"
unmount_lightshow_file
}
function copy_boombox_files () {
log "Starting boombox sync..."
ensure_boombox_file_is_mounted
/root/bin/copy-boombox.sh
# Trim the empty space from the music archive.
trim_free_space "$BOOMBOX_MOUNT"
unmount_boombox_file
}
if timeout 5 [ -d "$LIGHTSHOW_ARCHIVE_MOUNT" -a -d "$LIGHTSHOW_MOUNT" ]
then
log "Copying lightshows..."
if copy_lightshow_files
then
log "Finished copying lightshows."
else
log "Copying lightshows failed."
fi
else
log "Lightshow archive not configured or unreachable"
fi
if timeout 5 [ -d "$BOOMBOX_ARCHIVE_MOUNT" -a -d "$BOOMBOX_MOUNT" ]
then
log "Copying boombox..."
if copy_boombox_files
then
log "Finished copying boombox."
else
log "Copying boombox failed."
fi
else
log "Boombox archive not configured or unreachable"
fi
Cool side note: I found that changing out the LockChime.wav file in the root of the boombox drive updates the sound the car uses without going back into toybox to configure. This is despite the car moving the file to memory (because the sound continues to work if the drive is removed).
Device
Raspberry Pi 4
OS Image
Prebuilt TeslaUSB image
Car Model
Model 3
USB connection
Center console
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
In addition to synchronization of music I wanted to have the ability to sync lightshows and boombox files. I added a "lightshow" and "boombox" share on the same NAS that is hosting the "music" and "teslausb" shares. I then modified the following:
in teslausb_setup_variables.conf
in envsetup.sh
in connect-archive.sh
in disconnect-archive.sh
in archiveloop
then in /etc/fstab I added:
Cool side note: I found that changing out the LockChime.wav file in the root of the boombox drive updates the sound the car uses without going back into toybox to configure. This is despite the car moving the file to memory (because the sound continues to work if the drive is removed).
Device
Raspberry Pi 4
OS Image
Prebuilt TeslaUSB image
Car Model
Model 3
USB connection
Center console
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: