Go to advanced search

by amulla
Sat Mar 24, 2018 8:20 am
Forum: Raspbian
Topic: Help with pi-gen
Replies: 27
Views: 7407

Re: Help whit pi-gen

Any chance there is a simple guide on this with steps?
by amulla
Mon Jun 05, 2017 2:07 pm
Forum: Troubleshooting
Topic: Pi Bakery command to create a directory and clone a git repo
Replies: 2
Views: 664

Pi Bakery command to create a directory and clone a git repo

I am trying to run a script on PiBakery on first boot to create a folder in the Documents and then to clone a repository from Github. I have tried running each command separately using separate command blocks eg: cd Documents mkdir RPI-Scripts cd RPI-Scripts git clone git://github.com/learnICT/RPi-c...
by amulla
Mon Jan 02, 2017 9:03 pm
Forum: Python
Topic: Need USB Camera Python Code!
Replies: 14
Views: 54645

Re: Need USB Camera Python Code!

I edited the post by slashWW3 slightly. Seems to work for me. from subprocess import call from datetime import datetime def capture(): dt = datetime.now() dtime = dt[0:4]+dt[5:7]+dt[8:10]+dt[11:13]+dt[14:16]+dt[17:19] call(["fswebcam", "-d","/dev/video0", "-r", "640x480", "--no-banner", "./%d.jpg" %...

Go to advanced search