RATOS + Timelapse + DSLR control

Has anyone used a DSLR with RATOS? Do I need to install Gphoto2 on the Rasp Pi to control the camera through USB?
52 Replies
miklschmidt
miklschmidt•2y ago
No idea, but any guide you can find for raspberry pi os / mainsail will work in RatOS too
sensitive-blue
sensitive-blue•2y ago
No worries - I'll try Gphoto2 and update this query I'd like to create a shell command config file (for Gphoto2 commands) within Mainsail/RatOS - if I do this will it cause any issues? I presume this is simply a collection of alternative commands and is totally independent of RatOS?
miklschmidt
miklschmidt•2y ago
Nope! Go nuts 🙂 You can use the gcode_shell_command extension for whatever you want 🙂 Just know that you can't do sudo commands. You can do sudo commands in a bash script if you whitelist the commands it runs (in /etc/sudoers.d/).
sensitive-blue
sensitive-blue•2y ago
Thanks! Really appreciate your input on all this. Also - I'd like to add to the macros.cfg file - I guess there is no issue adding macros to this?
miklschmidt
miklschmidt•2y ago
Everything you do, do it in printer.cfg (or your own includes). Don't change anything in config/ but besides that go nuts
sensitive-blue
sensitive-blue•2y ago
ok - I can add macros in printer.cfg? If so - that's great!
miklschmidt
miklschmidt•2y ago
Yes, or you can create a new file and put it in there and include it, whatever you want 🙂
sensitive-blue
sensitive-blue•2y ago
I need to install a shell command extension for Klipper - using KIAUH (https://github.com/th33xitus/kiauh). If I use KIAUH - will this over-write all Klipper settings and cause issues?
miklschmidt
miklschmidt•2y ago
No you don't it's already there.
If I use KIAUH - will this over-write all Klipper settings and cause issues?
No but it can royally screw things over, don't use KIAUH on a RatOS install. You should have no need for it any way.
sensitive-blue
sensitive-blue•2y ago
That's what I thought - thanks for your help!
AsicResistor
AsicResistor•3mo ago
Have you been able to get it running @Decorum ?
miklschmidt
miklschmidt•3mo ago
In the meantime i've done a few timelapses using a elgato camlink 4k, makes it a plug 'n play thing (it's just a "webcam" like anything else, except the quality is :chefkiss: ). No setup required. Of course the camlink isn't free but it's very nice for many things DSLR/MILC related 🙂
AsicResistor
AsicResistor•3mo ago
That seems very cool, isn't the RPI too slow to stream 4k from the DSLR? I don't think my A7R3 does 4k live output through usb though. I just got a script to work so that I have a "gphoto take frame" macro button on my mainsail and when I click it it runs the script timelapse.sh in my root folder and puts the image in /home/pi/timelapse Now I'm wondering if there is a way for my mainsail dashboard to show the latest image that was added to that folder
AsicResistor
AsicResistor•3mo ago
This is the script, it wasn't working if there wasn't a sudo in front of the gphoto2 command. I thought it wasn't possible to sudo using gcode shell, but maybe it works for me because I call a script instead of a command
Want results from more Discord servers?
Add your server