#garfield Logs

Nov 20 2022

#garfield Calendar

01:18 AM rue_shop3: its intersting
01:28 AM rue_shop3: over really long periods of time, my oraganization method changes
01:28 AM rue_shop3: and things get left behind
01:28 AM rue_shop3: so when I'm cleaning up, its like, "Hey!, this should be over there!"
01:59 AM rue_mohr: polprog, wake up
01:59 AM rue_mohr: morning!
01:59 AM * rue_mohr bangs ona pot
02:00 AM rue_mohr: just think, if we all worked on your research papers with you, you would look like an amazing genious and would have more time to play with other things with us
02:02 AM rue_mohr: 3403
02:21 AM rue_shop3: ok find then
04:29 AM rue_mohr: and I'm up again
04:29 AM rue_mohr: there must be something usefull to do
04:30 AM rue_mohr: 2:30am
04:31 AM rue_mohr: I'v got an itch to make and send off for more pcb's from osh
10:44 AM aandrew: glen's synchro stuff is kind of cool. haven't touched a synchro in... a LONG time though
10:46 AM aandrew: close ties iwth sensorless vector position control in ACIMs
11:05 AM rue_mohr: yea
11:05 AM rue_mohr: I'd love to play with one
11:13 AM Tom_L: is that like a resolver?
11:20 AM rue_shop1: 3 phase
01:03 PM aandrew: rue_shop1: ok so if I throw a camera on an rpi4 what distro are you inerested in, just raspbian?
01:03 PM rue_mohr: I think so
01:04 PM aandrew: that's the usual
01:04 PM rue_mohr: there is an opencv for it, isn't there?
01:04 PM aandrew: I believe so
01:04 PM rue_mohr: I have to get mine to boot
01:04 PM aandrew: yep looks like it
01:04 PM rue_mohr: so I'm just 1 stand ahead of ya
01:04 PM rue_mohr: polprog, giddy up
01:04 PM aandrew: man what a lazy sunday
01:04 PM aandrew: well not really
01:05 PM aandrew: fixed (kind of) my couch, put up a stupid artificial tree wife wanted, discovered a pot was leaking water on to the hardwood so cleaned that up, futzed around on the internet for way too long, now I feel kind of accomplished
01:06 PM aandrew: gonna see if I can't get this rpi set up quick like for you, port-forward it and such
01:06 PM aandrew: oh that reminds me do you have an ssh key you can paste the pub for here so I can put it on the rpi
01:39 PM aandrew: flashing the sd card, was panicking a little becuase I could not find the camera
01:40 PM rue_mohr: did you water an artificial tree?
01:40 PM aandrew: haha no two different things
01:40 PM rue_mohr: ah good
01:40 PM rue_mohr: I'm just dipping in from some yard work
01:40 PM rue_mohr: no key available
01:40 PM rue_mohr: if you have the pi booting thats great
01:41 PM rue_mohr: I'll bump my progress along tonight and get mine booting again
01:41 PM aandrew: we have a meyer lemon tree who didn't like being brought inside. dropped all its leaves and the internet says that's common because the indoor environment is considerably drier than it had outside, so I was watering it fairly heavily and when I noticed the decorative metal pot that contained the plastic pot with the tree in it was leaking, I lifted the plastic pot out and noticed 4 inches of water in
01:41 PM rue_mohr: I have a script to grab an image from the camera
01:41 PM aandrew: the metal pot (!!)
01:41 PM rue_mohr: ah
01:42 PM rue_mohr: I have some pots of bamboo in the ditch to recover
01:42 PM rue_mohr: I just pulled them out
01:42 PM rue_mohr: all looking good
01:42 PM rue_mohr: all need a trim
02:09 PM aandrew: oh for fuck sakes
02:09 PM aandrew: I fucking hate this bullshit
02:09 PM aandrew: https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
02:09 PM aandrew: JUST LET ME HAVE A SINGLE IMAGE I CAN FLASH WITHOUT THIS BULLSHIT
02:49 PM aandrew: https://ibb.co/XVQ519Q
02:49 PM aandrew: well there's the first shitty picture. :-)
02:49 PM aandrew: libcamera-jpeg -o /tmp/1.jpeg --width 2592 --height 1944
02:56 PM aandrew: it looks like you have to either use legacy camera mode on raspbian bullseye to use opencv, or manually update to the latest and greatest opencv to use non-legacy
03:01 PM aandrew: https://forums.raspberrypi.com/viewtopic.php?t=327192#p1958930 offers a solution where you use libcamera-vid to capture and then opencv steals the image from shared memory
03:31 PM polprog: ahh
03:31 PM polprog: finally, free
04:29 PM rue_mohr: huh
04:30 PM rue_mohr: I have software on mine that takes pics ok
04:30 PM rue_mohr: I'll share when I get it up tonight
04:36 PM polprog: https://gist.github.com/polprog/5cf8d81e6f5a21a590a5ccd7b4e90b59
04:37 PM polprog: heres some python and ffmpeg to run a networked stream
04:49 PM polprog: i can translate it but i think you will manage
04:56 PM rue_mohr: for a gear we just need it to take a photo tho
04:56 PM polprog: fmpeg can take 1 frame as a jpeg/whatever
04:56 PM rue_mohr: but if the camera isn't in image mode, its quality sucks
05:04 PM polprog: good point
05:04 PM polprog: what we did was streaming to a laptop
05:34 PM polprog: night
05:45 PM Tom_L is now known as Tom_itx
05:59 PM Tom_itx is now known as Tom_L
06:08 PM rue_mohr: I'll work on getting my pi going tonight
06:08 PM rue_mohr: not sure why it wont boot
06:08 PM Tom_L: put a debian image on it
06:08 PM rue_mohr: heh
06:08 PM rue_mohr: I need the proprietory camera drivers
06:08 PM Tom_L: mmm
06:09 PM rue_mohr: I think something went funny with the SD image, I suspect it'll be an easy fixup
06:09 PM rue_mohr: but I need an HDMI screen and usb keyboard to find out
06:09 PM rue_mohr: and that stuff is scattered eveywhere
06:10 PM rue_mohr: I spent the middle of the day here rounding up junk wood and building shelves
06:10 PM Tom_L: getting organized ehh
06:10 PM rue_mohr: well I want to stick some things in the storage shed and I cant, its out of floor space
06:11 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1260847.jpg
06:11 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1260848.jpg
06:11 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1260849.jpg
06:11 PM rue_mohr: hodgepodge of small bits is wood of questionable condition
06:11 PM rue_mohr: its all thick wood, so I'm not worried about supporting it more
06:12 PM Tom_L: you're gonna have it full before you can rent out the space
06:12 PM rue_mohr: thats the orig shed
06:12 PM Tom_L: ahh
06:12 PM rue_mohr: the new one is still empty on the driveway
06:12 PM rue_mohr: almost identicle
06:13 PM rue_mohr: same colours and shape
06:13 PM rue_mohr: the door is a bit different on the new one
06:14 PM aandrew: ah nice, we can use libcamera-vid -t 0 --inline --listen -o tcp://0.0.0.0:5554 to get a stream and then opencv can just look at the stream
06:14 PM aandrew: (and so can we)
06:15 PM aandrew: I like the christmas decorations are already up in the shed
06:16 PM aandrew: I particularly like how this camera ring is locked and it's not in focus
06:21 PM rue_mohr: mas art
06:25 PM aandrew: if you tell VLC to open a TCP stream with "tcp/h264://rpi.ip.here:5554"
06:25 PM aandrew: it will view it
06:25 PM rue_mohr: huh
06:25 PM rue_mohr: I just want a photo
06:25 PM aandrew: yes
06:25 PM rue_mohr: well, I want it to boot...
06:25 PM aandrew: the video command is just as easy
06:25 PM rue_mohr: :)
06:26 PM aandrew: libcamera-jpeg -o /tmp/pic.jpeg --width 2592 --height 1944
06:26 PM rue_mohr: you want to try to set up a stand of some sort to view a gear?
06:26 PM rue_mohr: I'm just making lunch
06:26 PM aandrew: but what I'm saying is to be able to focus I need a stream and that was the fastest way to get a stream going
06:26 PM aandrew: and opencv can view that without any trouble so the disconnect between "new video shit" in bullseye and "old video shit" in opencv, this is a very nice way to sidestep it
06:27 PM aandrew: and besides, being able to have a stream running where you can toss gears in front of it and have it figure stuff out is appealing
06:27 PM aandrew: I have that but first I have to focus the camera
06:31 PM rue_mohr: opencv can be fed an image too cant it?
06:39 PM rue_mohr: ok thats lunch
06:39 PM rue_mohr: I might as well look for a usb keyboard now then
06:43 PM aandrew: https://ibb.co/mJV7cRB
06:43 PM aandrew: getting closer
06:48 PM rue_mohr: it says the SD is hosed
06:48 PM rue_mohr: but its booting from it to tell me taht
06:48 PM rue_mohr: so
06:48 PM rue_mohr: ?
06:49 PM rue_mohr: [14023745.347301] sdh: sdh1
06:49 PM rue_mohr: [14023745.347308] sdh: p1 size 3934979 extends beyond EOD, truncated
06:49 PM rue_mohr: [14023745.350209] sd 7:0:0:0: [sdh] Adjusting the sector count from its reported value: 3935232
06:49 PM rue_mohr: [14023745.351705] sd 7:0:0:0: [sdh] Attached SCSI removable disk
06:49 PM rue_mohr: [14023761.987577] usb 1-4.4: USB disconnect, device number 70
06:49 PM rue_mohr: zippo:/tmp# mount /dev/sdh1 /mnt
06:49 PM rue_mohr: mount: special device /dev/sdh1 does not exist
06:49 PM rue_mohr: hmmmm
06:55 PM rue_mohr: zippo:/# mount /dev/sdi2 /mnt
06:55 PM rue_mohr: mount: mount /dev/sdi2 on /mnt failed: Structure needs cleaning
06:56 PM rue_mohr: Entry '..' in /etc/.. (2) is duplicate '..' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '.' in /etc/.. (2) is duplicate '.' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '..' in /etc/.. (2) is duplicate '..' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '.' in /etc/.. (2) is duplicate '.' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '..' in /etc/.. (2) is duplicate '..' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '.' in /etc/.. (2) is duplicate '.' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '..' in /etc/.. (2) is duplicate '..' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '.' in /etc/.. (2) is duplicate '.' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '..' in /etc/.. (2) is duplicate '..' entry.
06:56 PM rue_mohr: Fix<y>? yes
06:56 PM rue_mohr: Entry '.' in /etc/.. (2) is duplicate '.' entry.
06:57 PM rue_mohr: Fix<y>? yes
06:57 PM rue_mohr: Entry '..' in /etc/.. (2) is duplicate '..' entry.
06:57 PM rue_mohr: Fix<y>? yes
06:57 PM rue_mohr: Entry '.' in /etc/.. (2) is duplicate '.' entry.
06:57 PM rue_mohr: Fix<y>? yes
06:57 PM rue_mohr: Entry '..' in /etc/.. (2) is duplicate '..' entry.
06:57 PM rue_mohr: Fix<y>? yes
06:57 PM rue_mohr: Entry '.' in /etc/.. (2) is duplicate '.' entry.
06:57 PM Tom_L: wtf bbq
06:57 PM rue_mohr: :S
06:57 PM rue_mohr: ...there are files on it still...
06:58 PM rue_mohr: zippo:/mnt/home/camera# ls -l
06:58 PM rue_mohr: total 32
06:58 PM rue_mohr: -rw-r--r-- 1 root root 237 Mar 2 2018 button.py
06:58 PM rue_mohr: -rw-r--r-- 1 root root 460 Mar 3 2018 camera.py
06:58 PM rue_mohr: -rw-r--r-- 1 root root 547 Jan 1 2019 diffset.py
06:58 PM rue_mohr: -rw-r--r-- 1 root root 827 Jan 5 2019 imageHaul.py
06:58 PM rue_mohr: -rw-r--r-- 1 root root 152 Jan 1 2019 laseroff.py
06:58 PM rue_mohr: -rw-r--r-- 1 root root 203 Jan 1 2019 laseron.py
06:58 PM rue_mohr: -rw-r--r-- 1 root root 257 Feb 10 2019 rotatetable.py
06:58 PM rue_mohr: -rw-r--r-- 1 root root 479 Mar 3 2018 webcamera.py
06:58 PM rue_mohr: :]
06:59 PM rue_mohr: I think I powercycled it at a bad time
07:02 PM rue_mohr: PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
07:02 PM rue_mohr: NAME="Raspbian GNU/Linux"
07:02 PM rue_mohr: VERSION_ID="9"
07:02 PM rue_mohr: VERSION="9 (stretch)"
07:02 PM rue_mohr: ID=raspbian
07:02 PM rue_mohr: what are they at now?
07:03 PM rue_mohr: aandrew, I just missed you didn't I?
07:03 PM aandrew: nope
07:03 PM rue_mohr: oh
07:03 PM rue_mohr: usr/lib/os-release
07:04 PM aandrew: https://ibb.co/K52JHpJ
07:04 PM rue_mohr: nice
07:04 PM aandrew: that's about as good as it'll get I think. I have to improve lighting so it's not side lit (even though it's almost overhead lit)
07:04 PM rue_mohr: will need special lighting
07:05 PM rue_mohr: ok I'll go see if it boots
07:07 PM aandrew: it looks like your filesystem shit the bed pretty good
07:10 PM aandrew: https://ibb.co/3RbQjZT
07:10 PM aandrew: that's what the setup looks like right now. I'll have a proper ring light in a couple days
07:12 PM rue_mohr: seems I set mine to auto ssh images to the site when a button was pushed
07:12 PM rue_mohr: http://ruemohr.org/~ircjunk/images/pi/IMG21Nov2022_010949.jpg
07:13 PM rue_mohr: yup, there is my livingood cieling!
07:16 PM rue_mohr: I'll set my camera up on my stand, and maybe we can figure out how to get an image into opencv
07:17 PM aandrew: ahh see you are up and running too
07:18 PM rue_mohr: d = datetime.datetime.now()
07:18 PM rue_mohr: fname = d.strftime("IMG%d%b%Y_%H%M%S.jpg")
07:18 PM rue_mohr: os.system("raspistill -w 1024 -h 768 -q 80 -vf -hf -o /itmp/"+fname)
07:18 PM aandrew: I got this stupid octopus stand when I was in BC, it's just a bunch of segmented flex hose (like for CNC) on a weighted stand and with aligator clips at the tips but it's come in handy a few times
07:18 PM rue_mohr: oh I remember I had to force it down to 1024x768
07:18 PM rue_mohr: its default is insane
07:19 PM rue_mohr: I'm glad I got the scripts
07:19 PM rue_mohr: -rw-r--r-- 1 root root 237 Nov 20 16:56 button.py
07:19 PM rue_mohr: -rw-r--r-- 1 root root 460 Nov 20 16:56 camera.py
07:19 PM rue_mohr: -rw-r--r-- 1 root root 547 Nov 20 16:56 diffset.py
07:19 PM rue_mohr: -rw-r--r-- 1 root root 827 Nov 20 16:56 imageHaul.py
07:19 PM rue_mohr: -rw-r--r-- 1 root root 152 Nov 20 16:56 laseroff.py
07:19 PM rue_mohr: -rw-r--r-- 1 root root 203 Nov 20 16:56 laseron.py
07:19 PM rue_mohr: -rw-r--r-- 1 root root 257 Nov 20 16:56 rotatetable.py
07:19 PM rue_mohr: -rw-r--r-- 1 root root 479 Nov 20 16:56 webcamera.py
07:19 PM rue_mohr: they took a long time to work out
07:19 PM aandrew: https://www.amazon.ca/Soldering-Flexible-Aluminum-Assembly-Modeling/dp/B07Y73DZK3
07:19 PM aandrew: looks just like that
07:20 PM rue_mohr: oh
07:22 PM rue_mohr: so
07:22 PM rue_mohr: for my 3d scanner
07:22 PM rue_mohr: I had it take 2 images,
07:22 PM rue_mohr: one with the laser on, one with it off, and diff them
07:22 PM rue_mohr: impressive difference
07:23 PM aandrew: https://ibb.co/vZB2rVr
07:23 PM aandrew: there we go
07:23 PM rue_mohr: should work out
07:23 PM rue_mohr: for the outter gear anyhow
07:24 PM aandrew: once the ring light's on it (just an 8-led WS2812) we can control not only intensity but also "direction" of the light if needed
07:24 PM rue_mohr: I was wondering about an inward-facing coloured ring light
07:25 PM aandrew: well that's kind of what I was after with the ws2812
07:25 PM aandrew: by hitting it from one side or another we should be able to cast shadows
07:25 PM aandrew: in theory anyway
07:26 PM aandrew: and this is with my office light on too, will probably be better without so much ambient light
07:26 PM rue_mohr: well I'm wondering if we can give the outter edge an arora
07:26 PM rue_mohr: ok, let me get it on the stand back in the shop
07:26 PM aandrew: hah
07:27 PM aandrew: only difference that made was a hotspot on the ruler :-)
07:31 PM rue_mohr: erm
07:31 PM rue_mohr: It didn't shut down right
07:32 PM rue_mohr: I'm going to gamble and give it a system upgrade
07:32 PM rue_mohr: I have the important stuff if it all goes wrong
07:43 PM rue_mohr: how do I get the certificates file so that i can get the certificates file?
09:24 PM aandrew: certificates file?
09:49 PM rue_mohr: ca-certificates
09:55 PM aandrew: attn rue_mohr https://www.reddit.com/r/AskElectronics/comments/yzufcu/noob_here_what_can_i_do_with_fifty_555_timers/
10:01 PM rue_mohr: dear god
10:01 PM rue_mohr: I thought it might be a nice place to hang out but looking at those questions... no