Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

Model Y Sentry: Raspberry Pi Zero W (or) Raspberry Pi 4 Model B (2GB DDR4)

This site may earn commission on affiliate links.
Adding configuration and logs:

Code:
configuration:
export ARCHIVE_SYSTEM=cifs
export ARCHIVE_SERVER=192.168.0.110
export SHARE_NAME=teslafiles
export SHARE_USER=sampletsla
export SHARE_PASSWORD=‘linuxsmbshare password’
export CAM_SIZE=80%
export MUSIC_SIZE=20%
export musicsharename=teslamusic
export SSID=‘home-Link'
export WIFIPASS=‘wifipassword’
export HEADLESS_SETUP=true
export SAMBA_ENABLED=true
export SAMBA_GUEST=true
export AP_SSID=‘teslawifi'
export AP_PASS='Teslawifipassword’
export AP_IP='192.168.66.1'
export TIME_ZONE="auto"

On MAC:
$ smbutil view //sampletsla@centlab
Share                                           Type    Comments
-------------------------------
sampletsla                                      Disk    Home Directories
print$                                          Disk    Printer Drivers
teslafiles                                      Disk    tesla files
IPC$                                            Pipe    IPC Service (Samba 4.10.4)
teslamusic                                      Disk    tesla music

Those are linux shares

Logs:

Fri  6 Nov 19:26:40 EST 2020 : Wifi variables specified, and no /boot/WIFI_ENABLED. Building wpa_supplicant.conf.
Fri  6 Nov 19:26:40 EST 2020 : Rebooting...
Fri  6 Nov 19:26:41 EST 2020 : Starting setup.
Fri  6 Nov 19:27:12 EST 2020 : Detecting whether to update wpa_supplicant.conf
Fri  6 Nov 19:27:12 EST 2020 : Starting setup.
Fri  6 Nov 19:27:13 EST 2020 : curl -s https://api.github.com/repos/marcone/teslausb/git/refs/heads/main-dev
Fri  6 Nov 19:27:13 EST 2020 : curl -o /tmp/434/setup-teslausb https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/setup-teslausb
Fri  6 Nov 19:27:14 EST 2020 : Downloaded /tmp/434/setup-teslausb ...
Fri  6 Nov 19:27:14 EST 2020 : /root/bin/setup-teslausb is up to date
Fri  6 Nov 19:27:14 EST 2020 : Updating package index files...



Fri  6 Nov 19:34:31 EST 2020 : curl -o /root/bin/tzupdate.py https://raw.githubusercontent.com/marcone/tzupdate/develop/tzupdate.py
Fri  6 Nov 19:34:45 EST 2020 : Set system timezone to America/New_York.
Fri  6 Nov 19:34:48 EST 2020 : Verifying that the requested configuration is valid...
Fri  6 Nov 19:34:48 EST 2020 : curl -o /tmp/verify-configuration.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/verify-configuration.sh
Fri  6 Nov 19:34:48 EST 2020 : Downloaded /tmp/verify-configuration.sh ...
Fri  6 Nov 19:34:48 EST 2020 : USB_DRIVE is not set. SD card will be used.
Fri  6 Nov 19:34:48 EST 2020 : Verifying that there is sufficient space available on the MicroSD card...
Fri  6 Nov 19:34:48 EST 2020 : There is sufficient space available.
Fri  6 Nov 19:34:53 EST 2020 : Downloading additional setup scripts.
Fri  6 Nov 19:34:53 EST 2020 : curl -o /root/bin/remountfs_rw https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/remountfs_rw
Fri  6 Nov 19:34:53 EST 2020 : Downloaded /root/bin/remountfs_rw ...
Fri  6 Nov 19:34:53 EST 2020 : curl -o /root/bin/make_snapshot.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/make_snapshot.sh
Fri  6 Nov 19:34:56 EST 2020 : Downloaded /root/bin/make_snapshot.sh ...
Fri  6 Nov 19:34:56 EST 2020 : curl -o /root/bin/mount_snapshot.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/mount_snapshot.sh
Fri  6 Nov 19:34:57 EST 2020 : Downloaded /root/bin/mount_snapshot.sh ...
Fri  6 Nov 19:34:57 EST 2020 : curl -o /root/bin/release_snapshot.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/release_snapshot.sh
Fri  6 Nov 19:34:58 EST 2020 : Downloaded /root/bin/release_snapshot.sh ...
Fri  6 Nov 19:34:58 EST 2020 : curl -o /root/bin/force_sync.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/force_sync.sh
Fri  6 Nov 19:34:58 EST 2020 : Downloaded /root/bin/force_sync.sh ...
Fri  6 Nov 19:34:58 EST 2020 : curl -o /tmp/create-backingfiles-partition.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/create-backingfiles-partition.sh
Fri  6 Nov 19:34:58 EST 2020 : Downloaded /tmp/create-backingfiles-partition.sh ...
Fri  6 Nov 19:34:58 EST 2020 : curl -o /tmp/create-backingfiles.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/create-backingfiles.sh
Fri  6 Nov 19:34:59 EST 2020 : Downloaded /tmp/create-backingfiles.sh ...
Fri  6 Nov 19:34:59 EST 2020 : curl -o /tmp/make-root-fs-readonly.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/make-root-fs-readonly.sh
Fri  6 Nov 19:34:59 EST 2020 : Downloaded /tmp/make-root-fs-readonly.sh ...
Fri  6 Nov 19:34:59 EST 2020 : curl -o /tmp/configure.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/configure.sh
Fri  6 Nov 19:35:00 EST 2020 : Downloaded /tmp/configure.sh ...
Fri  6 Nov 19:35:00 EST 2020 : Fixing the modules-load parameter in /boot/cmdline.txt...
Fri  6 Nov 19:35:00 EST 2020 : Fixed cmdline.txt.
Fri  6 Nov 19:35:05 EST 2020 : create-backingfiles-partition: using existing backingfiles and mutable partitions
Fri  6 Nov 19:35:07 EST 2020 : calling configure.sh
Fri  6 Nov 19:35:07 EST 2020 : configure: Pushover not configured.
Fri  6 Nov 19:35:07 EST 2020 : configure: Gotify not configured.
Fri  6 Nov 19:35:07 EST 2020 : configure: IFTTT not configured.
Fri  6 Nov 19:35:07 EST 2020 : configure: Webhook not configured.
Fri  6 Nov 19:35:07 EST 2020 : configure: Telegram not configured.
Fri  6 Nov 19:35:07 EST 2020 : configure: SNS not configured.
Fri  6 Nov 19:35:07 EST 2020 : curl -o /root/bin/send-push-message https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/send-push-message
Fri  6 Nov 19:35:08 EST 2020 : Downloaded /root/bin/send-push-message ...
Fri  6 Nov 19:35:08 EST 2020 : curl -o /root/bin/send_sns.py https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/send_sns.py
Fri  6 Nov 19:35:08 EST 2020 : Downloaded /root/bin/send_sns.py ...
Fri  6 Nov 19:35:08 EST 2020 : configure: Checking archive configs:
Fri  6 Nov 19:35:08 EST 2020 : configure: done
Fri  6 Nov 19:35:08 EST 2020 : configure: Using archive module: run/cifs_archive
Fri  6 Nov 19:35:08 EST 2020 : configure: Installing base archive scripts into /root/bin
Fri  6 Nov 19:35:08 EST 2020 : curl -o /root/bin/archiveloop https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/archiveloop
Fri  6 Nov 19:35:09 EST 2020 : Downloaded /root/bin/archiveloop ...
Fri  6 Nov 19:35:09 EST 2020 : curl -o /root/bin/waitforidle https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/waitforidle
Fri  6 Nov 19:35:09 EST 2020 : Downloaded /root/bin/waitforidle ...
Fri  6 Nov 19:35:09 EST 2020 : curl -o /root/bin/remountfs_rw https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/remountfs_rw
Fri  6 Nov 19:35:09 EST 2020 : Downloaded /root/bin/remountfs_rw ...
Fri  6 Nov 19:35:09 EST 2020 : configure: Skipping tesla_api.py install because no credentials were provided
Fri  6 Nov 19:35:09 EST 2020 : configure: Installing archive module scripts
Fri  6 Nov 19:35:09 EST 2020 : curl -o /tmp/verify-and-configure-archive.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/cifs_archive/verify-and-configure-archive.sh
Fri  6 Nov 19:35:10 EST 2020 : Downloaded /tmp/verify-and-configure-archive.sh ...
Fri  6 Nov 19:35:10 EST 2020 : curl -o /root/bin/archive-clips.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/cifs_archive/archive-clips.sh
Fri  6 Nov 19:35:10 EST 2020 : Downloaded /root/bin/archive-clips.sh ...
Fri  6 Nov 19:35:10 EST 2020 : curl -o /root/bin/connect-archive.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/cifs_archive/connect-archive.sh
Fri  6 Nov 19:35:11 EST 2020 : Downloaded /root/bin/connect-archive.sh ...
Fri  6 Nov 19:35:11 EST 2020 : curl -o /root/bin/disconnect-archive.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/cifs_archive/disconnect-archive.sh
Fri  6 Nov 19:35:11 EST 2020 : Downloaded /root/bin/disconnect-archive.sh ...
Fri  6 Nov 19:35:11 EST 2020 : curl -o /root/bin/write-archive-configs-to.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/cifs_archive/write-archive-configs-to.sh
Fri  6 Nov 19:35:12 EST 2020 : Downloaded /root/bin/write-archive-configs-to.sh ...
Fri  6 Nov 19:35:12 EST 2020 : curl -o /root/bin/archive-is-reachable.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/cifs_archive/archive-is-reachable.sh
Fri  6 Nov 19:35:12 EST 2020 : Downloaded /root/bin/archive-is-reachable.sh ...
Fri  6 Nov 19:35:12 EST 2020 : curl -o /root/bin/copy-music.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/cifs_archive/copy-music.sh
Fri  6 Nov 19:35:12 EST 2020 : Downloaded /root/bin/copy-music.sh ...
Fri  6 Nov 19:35:12 EST 2020 : verify-and-configure-archive: Installing/updating required packages if needed
Fri  6 Nov 19:35:18 EST 2020 : verify-and-configure-archive: Done
Fri  6 Nov 19:35:18 EST 2020 : verify-and-configure-archive: Verifying that the archive server 192.168.0.6 is reachable...
Fri  6 Nov 19:35:18 EST 2020 : verify-and-configure-archive: The archive server is reachable.
Fri  6 Nov 19:35:18 EST 2020 : verify-and-configure-archive: Verifying that the archive share is mountable...
Fri  6 Nov 19:35:18 EST 2020 : verify-and-configure-archive: Trying mount command-line:
Fri  6 Nov 19:35:18 EST 2020 : verify-and-configure-archive: mount -t cifs '//192.168.0.6/teslafiles' '/tmp/archivetestmount' -o 'credentials=/tmp/teslaCamArchiveCredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,,'
Fri  6 Nov 19:35:19 EST 2020 : verify-and-configure-archive: The archive share is mountable using: mount -t cifs '//192.168.0.6/teslafiles' '/tmp/archivetestmount' -o 'credentials=/tmp/teslaCamArchiveCredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,,'
Fri  6 Nov 19:35:19 EST 2020 : verify-and-configure-archive: Verifying that the archive share is mountable...
Fri  6 Nov 19:35:19 EST 2020 : verify-and-configure-archive: Trying mount command-line:
Fri  6 Nov 19:35:19 EST 2020 : verify-and-configure-archive: mount -t cifs '//192.168.0.6/teslamusic' '/tmp/archivetestmount' -o 'credentials=/tmp/teslaCamArchiveCredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,,'
Fri  6 Nov 19:35:20 EST 2020 : verify-and-configure-archive: The archive share is mountable using: mount -t cifs '//192.168.0.6/teslamusic' '/tmp/archivetestmount' -o 'credentials=/tmp/teslaCamArchiveCredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,,'
Fri  6 Nov 19:35:20 EST 2020 : verify-and-configure-archive: Configuring the archive...
Fri  6 Nov 19:35:20 EST 2020 : verify-and-configure-archive: Configured the archive.
Fri  6 Nov 19:35:23 EST 2020 : curl -o /tmp/configure-samba.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/configure-samba.sh
Fri  6 Nov 19:35:24 EST 2020 : Downloaded /tmp/configure-samba.sh ...
Fri  6 Nov 19:35:24 EST 2020 : configure-samba: Installing samba and dependencies...
Fri  6 Nov 19:38:22 EST 2020 : configure-samba: Done.
Fri  6 Nov 19:38:22 EST 2020 : curl -o /tmp/configure-ap.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/configure-ap.sh
Fri  6 Nov 19:38:22 EST 2020 : Downloaded /tmp/configure-ap.sh ...
Fri  6 Nov 19:38:22 EST 2020 : configure-ap: installing dnsmasq and hostapd
Fri  6 Nov 19:39:24 EST 2020 : configure-ap: configuring AP 'teslawifi' with IP 192.168.66.1
Fri  6 Nov 19:39:24 EST 2020 : curl -o /tmp/configure-automount.sh https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/setup/pi/configure-automount.sh
Fri  6 Nov 19:39:24 EST 2020 : Downloaded /tmp/configure-automount.sh ...
Fri  6 Nov 19:40:36 EST 2020 : curl -o /root/bin/auto.teslausb https://raw.githubusercontent.com/marcone/teslausb/28e724a0e244ed120bc383e507ef908648ac5b40/run/auto.teslausb
Fri  6 Nov 19:40:37 EST 2020 : Downloaded /root/bin/auto.teslausb ...
Fri  6 Nov 19:40:37 EST 2020 : configure-automount: converting snapshot mountpoints to links
Fri  6 Nov 19:40:37 EST 2020 : configure-automount: configured automount
Fri  6 Nov 19:40:37 EST 2020 : make-root-fs-readonly: start
Fri  6 Nov 19:40:37 EST 2020 : make-root-fs-readonly: Disabling unnecessary service...
Fri  6 Nov 19:40:44 EST 2020 : make-root-fs-readonly: Removing unwanted packages...
Fri  6 Nov 19:43:52 EST 2020 : make-root-fs-readonly: Installing ntp and busybox-syslogd...
Fri  6 Nov 19:45:22 EST 2020 : make-root-fs-readonly: Configuring system...
Fri  6 Nov 19:45:22 EST 2020 : make-root-fs-readonly: Moving fake-hwclock data
Fri  6 Nov 19:45:23 EST 2020 : make-root-fs-readonly: done
Fri  6 Nov 19:45:23 EST 2020 : Skipping package upgrade.
Fri  6 Nov 19:45:29 EST 2020 : All done.
root@teslausb:~# df -h
Filesystem                  Size  Used Avail Use% Mounted on
/dev/root                   1.8G  1.2G  520M  70% /
devtmpfs                    212M     0  212M   0% /dev
tmpfs                       217M     0  217M   0% /dev/shm
tmpfs                       217M  5.9M  211M   3% /run
tmpfs                       5.0M     0  5.0M   0% /run/lock
tmpfs                       217M     0  217M   0% /sys/fs/cgroup
tmpfs                       217M  948K  216M   1% /run/samba
tmpfs                       217M   16K  217M   1% /var/log
tmpfs                       217M  8.0K  217M   1% /tmp
tmpfs                       217M     0  217M   0% /var/tmp
tmpfs                       217M  1.3M  215M   1% /var/cache/samba
tmpfs                       217M     0  217M   0% /var/spool
/dev/mmcblk0p4               93M  3.7M   83M   5% /mutable
/dev/mmcblk0p3               13G  1.4G   11G  12% /backingfiles
/dev/mmcblk0p1              253M   52M  201M  21% /boot
/dev/loop0                  4.9G   12K  4.9G   1% /tmp/snapshots/snap-000001
//192.168.0.6/teslafiles  770G  159G  612G  21% /mnt/archive
//192.168.0.6/teslamusic  770G  159G  612G  21% /mnt/musicarchive
tmpfs                        44M     0   44M   0% /run/user/1000
/dev/loop1                  1.3G  4.0K  1.3G   1% /mnt/music
Shared connection closed.
 
Just FYI. I was getting the “USB too slow” error. After researching I found others saying to specify size values for video and music rather than percentages. The article mentioned that as the SD card gets full it becomes slower.

In my case I had a 32 GB SD card and set the video partition to 16 GB. It never gets close to using the 16 GB since when I get home the videos are uploaded and then removed from the partition.
 
Wouldn’t mind seeing Tesla adding this functionality to the firmware. Would be a bit more reliable. The car knows when in range of WiFi and could easily star awake until the upload complete. Specifying an upload location might be cumbersome but could offer a few cloud solutions like drive, box, one, drop, etc.
 
Wouldn’t mind seeing Tesla adding this functionality to the firmware. Would be a bit more reliable. The car knows when in range of WiFi and could easily star awake until the upload complete. Specifying an upload location might be cumbersome but could offer a few cloud solutions like drive, box, one, drop, etc.
That would be awesome if they add that feature to backup sentry, dashcam and not limit to 1hr.