Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: END in file after f.write ?!
Post: RE: END in file after f.write ?!

@ljmetzger you were right :) problem is the output[-1] variable. i do this this way: # get current shutterspeed from camera command = check_output(["/usr/local/bin/gphoto2","--get-config","/main/cap...
hhanswurster General Coding Help 4 2,943 Jul-01-2018, 02:34 PM
    Thread: END in file after f.write ?!
Post: END in file after f.write ?!

Hey Guys, i try to log some settings every time my script runs. # write log entry f = open("/media/pi/6CD8-2DB41/images/log/log.txt","a") f.write("\n" + str(newest) +" " + str(g_f) + " " + str(g_iso...
hhanswurster General Coding Help 4 2,943 Jun-30-2018, 11:22 PM
    Thread: How to excess external program and get a value back?
Post: RE: How to excess external program and get a value...

hey, oh sorry. actually i did not know at all that there were different versions. i started a few hours ago :D thanks for your advice, i will do my research.
hhanswurster General Coding Help 7 3,891 Jun-12-2018, 05:46 PM
    Thread: How to excess external program and get a value back?
Post: RE: How to excess external program and get a value...

Label: Shutter Speed Type: RADIO Current: 1/8 Label: Shutter Speed Type: RADIO Current: 1/8with command = check_output(["gphoto2","--get-config","/main/capturesettings/shutterspeed"]) output = comma...
hhanswurster General Coding Help 7 3,891 Jun-12-2018, 12:06 PM
    Thread: How to excess external program and get a value back?
Post: RE: How to excess external program and get a value...

hmmm sadly that does not work :( Traceback (most recent call last): File "timelapse2.py", line 99, in <module> sspeed = output.split('\r\n')[2] IndexError: list index out of range
hhanswurster General Coding Help 7 3,891 Jun-12-2018, 11:26 AM
    Thread: How to excess external program and get a value back?
Post: How to excess external program and get a value bac...

Hey Guys, i want to get a value from my camera to write it to a log file. I am using gphoto2, thats the command and the output. pi@raspberrypi:~ $ gphoto2 --get-config /main/capturesettings/shutters...
hhanswurster General Coding Help 7 3,891 Jun-11-2018, 10:48 PM
    Thread: Idea of timelapse with automatic settings
Post: RE: Idea of timelapse with automatic settings

Hardware is set up, pi is runnig :) [Image: https://timelapsenetwork.com/forum/attac...e-jpg.242/] gphoto2 works :) Now i need some help with variables, i cant not make it work :/ # Camera setting ...
hhanswurster General Coding Help 2 3,252 May-26-2018, 12:45 AM
    Thread: Idea of timelapse with automatic settings
Post: Idea of timelapse with automatic settings

Hey Guys, i new to programing and have my first project in mind :) Rasberry pi with light sensor, that automaticly changes my camera settings to a optimal exposure, captures a image and saves it at ...
hhanswurster General Coding Help 2 3,252 Apr-25-2018, 09:24 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020