I've been thinking about another one of those what if''s - not like those from i1Tesla :)
What if I could re-use an old GearVR - you have to love Samsung for forcing new ones as the phones change, so I still have an old one hanging around from my Note 7 days.
My MP Mini has been a great workhorse, giving me the entry into the 3D printing realm with plenty of fun and learning experiences, although it's entry level print bed size (110x110) is just a little too small for some of the projects I need to for the Model 3.
Looked like a reasonably interesting route to allow me to still have the fun with the mini, push the print bed size and save a few $ without jumping to the $$$ point of the Prusa... I'm sure it will shout louder at me in the future, but for now the single colout mini will still surfice and after trying a small sample of TPU successfully, it was time to get cracking, get some aluminum and dig out the hacksaw ....
Purchased Parts:
Aluminum - ~$10 - local hardware store
2 x 330mm steel rods (Y Axis) - $
2 x 8mm x 400mm steel rods (X Axis) - $7 - http://a.co/d/fb6K3L4
Anycubic Ultrabase 220 x 220mm Tempered Glass base with Hotbed - $29.99 - http://a.co/d/5gyruXm
Opening the frunk is 'ok' with the app .... but it doesn't survive the simplicity test..
Simplicity is relative, as with everything, but having to dig into pocket open phone, open app or click the notification bar and then click on 'open frunk' ... wow I'm exhausted just typing it.
wondering maybe nfc, maybe bluetooth...
maybe nfc tag near the front T, atleast a tap from the phone is less than a fumble
Test the mass storage gadget - … if it doesn’t work, likely a conflicting gadget is already loaded (try checking / removing loaders from boot/configtext)
For the normal load gadget line, they should be loaded together, only difference is that the music gadget can be loaded readonly as there is no need to allow the car to have write access to it.
<TBD> .... event date stamp min vs file ... concatenated 10min 'saved-front-...' files ... contruct 360-saved... with just the front and structure for merging sides and rear - assuming they will be able to be exported by Tesla soon :)
# Path to use for re-mounting to make sure get up to date data
umountdir = "/mnt/usb_share"
#The directory to sync
syncdir="/mnt/usb_share/TeslaCam"
#Filename prefix to test for
filenameprefix="saved-"
#Uploads files in a directory
def upload_files(path, level):
fullpath = os.path.join(syncdir,path)
print_output("Syncing " + fullpath,level)
if filenameprefix:
print_output("Syncing files with prefix only: " + filenameprefix, level)
....
#Loop through the files to check to upload
for f in files:
print_output("Found File: " + f,level)
if upload == 1 and (f[:len(filenameprefix)]==filenameprefix) and (overwrite == 1 ornot f in dfiles):
... and at the bottom ...
#re-mount the folder to make sure it's fresh
def remount():
cmd = [ 'sudo', 'umount', umountdir ]
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
cmd = [ 'sudo', 'mount', '-a' ]
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
#Start
remount()
crontab
*/5 * * * * python /home/pi/dbupteslacam.py
Issues/updates:
possibly need to control w/r more across the gadget and the share, there are some FSCK files appearing in the root and 0 byte file minutes. (pre-dropbox addition)
check dropbox handler to make sure noop if no wifi
update uploader to a daemon / stop it just spinning up multiple instances
update / use accelerometer on pi to trigger the copy / upload.. at least it will snapshot in case user forgets to hit the button even in wifi not available....
could maybe use trigger on phone to switch on phone hotspot... then tcp - teslacampi :) - could connect and use the phone hotspot to upload
A side effect (aka bug) of PiScales not connecting to a wireless network was that after every measurement the code throws exception and restarts, so it was a quick ... read before reboot...
- in this case the non connection to wifi was great for this otherwise fitbit would have added a few lbs to my weight tracking :)
So weighed myself and then holding the bike... with some simple maths ....
The thought of manually typing in my daily weight into fitbit just didn't sit well.
Manual / Repetitive.
Sure fitbit have their custom scales, but where's the fun in that.
Have been experimenting the great wiifit raspberry pi tutorial form initial state..., but it was a little too much functionality / not quite what I wanted and bluetooth was playing games with me - I could easily set the code in a loop and cause too much 2.4G(assumption) noise that it messed up my local wifi , so the whole thing sat on the shelf for quite a while...
I want something that where I can turn on / off easily and ideally give clear visual feedback on what the measurement was that day with some nice small display, have the ability to measure a few times, not have to drag too many things around (too many boxes connected) and not having to switch things on / off and wait too long....
with the pi zero w released and displays getting still cheaper and custom fit to pi zero, it's time to start looking again.
have ability to plug into micro usb and leave plug not affecting light functions
auto switch on / off
auto brake light
...
Research options:
LED Bike Brake Stop Running Tail Light Rear Brake Lamp TURN SIGNAL LAMP HY10 http://r.ebay.com/ye7l2Z
FCC certified, rechargeable 4-in-1 smart bike taillight that turns on and off automatically, brake signal when bike slows down abruptly, SOS distress light, and optional theft-deterrent alarm.http://a.co/a6Z5JRK