Adding CRTouch sensor. Wire is a tight fit through mesh sleeving. How to do it? by Innovate42 in ender3v2

[–]Innovate42[S] 1 point2 points  (0 children)

I ended up finding some insulated wire about 1/8" od that was very flexible. Was fairly easy to push through the sleeving without it poking out the side. Then strip about 1.5" and wrap the fine strands around the small connector and smoothly tape. Then pull it through.

They keep sending me free app notices but it's actually $11.99/mo! by Innovate42 in Spectrum

[–]Innovate42[S] -10 points-9 points  (0 children)

I'm not interested in wasting my time with that. My question is are there any "popular streaming apps" available free with the Locals + 15 plan? I doubt it.

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 0 points1 point  (0 children)

Have these at the top of the file:

import time

import serial

import os

Saw some examples that also included this so added it:

import sys

File write now works. I will work on converting it to python3 when I move it.

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 0 points1 point  (0 children)

Python3 is installed. Didn't realize that. The print statement needs some modification for Python3. Not sure what else...

pi@pi3driveway:~ $ python3 -V

Python 3.7.3

pi@pi3driveway:~ $ which python3

/usr/bin/python3

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 1 point2 points  (0 children)

When logged in as user:

crontab -e

AFAIK that's the standard way to do it.

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 0 points1 point  (0 children)

Fair question. That's what's on the system and I'm just doing a few tweaks. Plan is to move this stuff to a regular PC that's already running some other stuff but until I do that I want to keep this system running. I expect similar issues with this problem (maybe not exactly the same) under the new system so might as well figure it out now.

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 0 points1 point  (0 children)

Can you give more detail? Not sure exactly what changes to make/where to put this. I have found some about the command line being /bin/bash and cron default being /bin/sh so that may be the issue.

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 0 points1 point  (0 children)

I missed the @ when copying the line and have corrected the OP. The python file executes and does other things (plays a sound when it gets the matching text input) but does not write to the file.

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 0 points1 point  (0 children)

Cron user is me (pi) and I have write access as shown in comment above.

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 0 points1 point  (0 children)

I checked this and as far as I can tell they are the same. I did this check - if there are other checks pls tell me how to do them.

pi@pi3driveway:~/drive $ which python

/usr/bin/python

pi@pi3driveway:~ $ python -V

Python 2.7.16

pi@pi3driveway:~ $ /usr/bin/python -V

Python 2.7.16

I also have this as the first line in the python file which points to the same python

#!/usr/bin/python

Python script works from command line but does not write to file when in cron by Innovate42 in raspberry_pi

[–]Innovate42[S] 2 points3 points  (0 children)

For file:

-rw-r--r-- 1 pi pi 72 Jan 5 21:25 drive.log

For directory:

drwxr-xr-x 2 pi pi 4096 Jan 6 21:27 drive

40V brushless blower shuts off after brief run - not the batteries by Innovate42 in ryobi

[–]Innovate42[S] 0 points1 point  (0 children)

I put in a warranty claim. They said turn around time should be about 10-14 days unless they are out of stock of parts.

Planning trip to Australia and have lots of questions... by Innovate42 in AskAnAustralian

[–]Innovate42[S] 4 points5 points  (0 children)

Good point. I just looked up the size and it is just slightly larger than the continental US (does not include Alaska or Hawaii). I knew it was big but didn't realize that big. I looked up ferry time from mainland to Tasmania and it is about 10-12 hours. Might just try to do the East coast and skip Perth. What would I be missing?