Go to advanced search

by Splint
Fri Jun 26, 2020 9:02 am
Forum: Beginners
Topic: Tilt switch/acceleromter to trigger camera?
Replies: 1
Views: 115

Tilt switch/acceleromter to trigger camera?

Hi,

Can anyone point me in the direction of a project with code to use a tilt switch or an accelerometer to trigger a USB or pi camera to take a photo?
by Splint
Wed Jan 29, 2020 4:54 pm
Forum: Python
Topic: Type object ‘datetime.datetime’ has no attribute ‘datetime’
Replies: 2
Views: 798

Re: Type object ‘datetime.datetime’ has no attribute ‘datetime’

Thank you very much for the detailed answer. It now works the way I want it to.

Regards
Splint
by Splint
Tue Jan 28, 2020 4:43 pm
Forum: Python
Topic: Type object ‘datetime.datetime’ has no attribute ‘datetime’
Replies: 2
Views: 798

Type object ‘datetime.datetime’ has no attribute ‘datetime’

Hi, I’m having trouble with some code adding a date and time as a file name for pictures taken by a picamera. Import RPi.GPIO as GPIO import time import datetime from picamera import PiCamera from datetime import datetime Time.sleep(0.1) date = datetime.datetime.now().strftime(“%y%m%d_%h%m%s “) GPIO...

Go to advanced search