Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gdrive sync delay and a typo in config.py file #43

Closed
Lama81 opened this issue Jan 25, 2017 · 7 comments
Closed

Gdrive sync delay and a typo in config.py file #43

Lama81 opened this issue Jan 25, 2017 · 7 comments

Comments

@Lama81
Copy link

Lama81 commented Jan 25, 2017

When I use the sync.sh script, it stay at "resolving" for near 4-5 min before uploading. Is there anything I can do to shorten that delay? Everything else work without any flaw.

......

little typo in config.py file. The directory to webserver script is "homw/pi/pi-timmolo/" should read home. Little correction.

Last error that I was unable to solve is probably because of my knowledge level. I had an error will executing the webserver.py script. Error with line 155 os.chdir(web_server_root). I put a # to disable the line and the websever was running after that.

Good work with this app. Thanks !

@pageauc
Copy link
Owner

pageauc commented Jan 25, 2017 via email

@Lama81
Copy link
Author

Lama81 commented Jan 27, 2017 via email

@pageauc
Copy link
Owner

pageauc commented Jan 27, 2017 via email

@pageauc pageauc closed this as completed Jan 30, 2017
@Lama81
Copy link
Author

Lama81 commented Feb 23, 2017 via email

@pageauc
Copy link
Owner

pageauc commented Feb 27, 2017

You can try using the quick timelapse feature. Change the config.py setting

motionQuickTLOn = True

Then you can adjust the time period that quick timelapse feature is run for using

motionQuickTLTimer = 10

It is the number of seconds that the quick timelapse runs for after motion is detected. Set this to the number of seconds.

The camera needs time to warm up and establish white balance. During the pi-camera initialization there is a sleep to allow camera to establish white balance. If a very short delay is specified the camera white balance will not be correct and images will not be consistent. The default is .5 seconds on line 364
def takeDayImage(filename):
# Take a Day image using exp=auto and awb=auto
with picamera.PiCamera() as camera:
camera.resolution = (imageWidth, imageHeight)
time.sleep(0.5) # sleep for a little while so camera can get adjustments

.5 seconds is about as short a warm up as reasonable and still get half decent image consistency. You will still find variations in white balance a this low level. BTW the default rpistill is 5 seconds.

@Lama81
Copy link
Author

Lama81 commented Feb 27, 2017 via email

@pageauc
Copy link
Owner

pageauc commented Feb 27, 2017

Using raspistill you can do a timelapse sequence that only has one warm up but pi-timolo uses pi-camera python library and needs to switch between motion detection and taking images or video sequences. This means the camera needs to switch between these modes and warm up between. It would be possible to shell and run raspistill in a timelapse sequence

See this link for details

https://computers.tutsplus.com/tutorials/creating-time-lapse-photography-with-a-raspberry-pi--cms-20794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants