pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
552 stars 102 forks source link

NameError: global name 'motionCamSleep' is not defined #55

Closed ibbaman closed 7 years ago

ibbaman commented 7 years ago

Hi,

I'm new to this, but when I tried to start the application after install, it seems to fail due to a variable not being set. Did I do something wrong or is there an issue with the current version?

+++++++++++++++++++++++++++++++++++ pi-timolo.py - Exiting Program +++++++++++++++++++++++++++++++++++

Traceback (most recent call last): File "./pi-timolo/pi-timolo.py", line 751, in Main() File "./pi-timolo/pi-timolo.py", line 652, in Main displayInfo(moCnt, tlCnt) File "./pi-timolo/pi-timolo.py", line 182, in displayInfo print(" motionPath=%s motionCamSleep=%.2f sec" % (motionPath, motionCamSleep)) NameError: global name 'motionCamSleep' is not defined

pageauc commented 7 years ago

You probably have an older config.py The latest version is here https://github.com/pageauc/pi-timolo/blob/master/source/config.py

You can either do an upgrade by running the pi-timolo-install.sh again or if you bring down a new copy of config.py and try again per commands below. You will then need to transfer any changes. Alternatively you can add the two new variables to your config.py per github link above.

cd ~/pi-timolo
cp config.py config-bak.py
wget -O config.py https://raw.github.com/pageauc/pi-timolo/master/source/config.py

There are now separate sleeps times for motion and timelapse to allow camera time to stabilize and establish white balance. motion is shorter to minimize time for motion detection.

This should resolve your problem unless I have missed something

Claude ....

On Sat, Apr 15, 2017 at 4:13 AM, ibbaman notifications@github.com wrote:

Hi,

I'm new to this, but when I tried to start the application after install, it seems to fail due to a variable not being set. Did I do something wrong or is there an issue with the current version?

+++++++++++++++++++++++++++++++++++ pi-timolo.py - Exiting Program +++++++++++++++++++++++++++++++++++

Traceback (most recent call last): File "./pi-timolo/pi-timolo.py", line 751, in Main() File "./pi-timolo/pi-timolo.py", line 652, in Main displayInfo(moCnt, tlCnt) File "./pi-timolo/pi-timolo.py", line 182, in displayInfo print(" motionPath=%s motionCamSleep=%.2f sec" % (motionPath, motionCamSleep)) NameError: global name 'motionCamSleep' is not defined

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pageauc/pi-timolo/issues/55, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr1ZKG5EpIj5jjSZ5yEF9EsEm7DPjA8ks5rwHwNgaJpZM4M-SXy .

-- See my YouTube Channel at http://www.youtube.com/user/pageaucp

ibbaman commented 7 years ago

Seems to have resolved it indeed... Thanks for the quick support 👍