{"id":28385189,"url":"https://github.com/pageauc/lolight","last_synced_at":"2025-10-12T08:10:32.022Z","repository":{"id":277082695,"uuid":"931268820","full_name":"pageauc/lolight","owner":"pageauc","description":"picamera2 python low light demo","archived":false,"fork":false,"pushed_at":"2025-02-18T19:51:18.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T03:37:02.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pageauc.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-12T01:50:29.000Z","updated_at":"2025-02-18T19:51:22.000Z","dependencies_parsed_at":"2025-06-26T03:41:23.091Z","dependency_job_id":null,"html_url":"https://github.com/pageauc/lolight","commit_stats":null,"previous_names":["pageauc/lolight"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pageauc/lolight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageauc%2Flolight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageauc%2Flolight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageauc%2Flolight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageauc%2Flolight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pageauc","download_url":"https://codeload.github.com/pageauc/lolight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageauc%2Flolight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010800,"owners_count":26084807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T10:11:13.229Z","updated_at":"2025-10-12T08:10:32.005Z","avatar_url":"https://github.com/pageauc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lolight.py \n#### python3 picamera2 Create Low Light Timelapse Images Demo. Adjust for changing lighting condition.\n\n## Introduction\nWritten as a test/learning program to help convert pi-timolo https://github.com/pageauc/pi-timolo\nto use the picamera2 python3 module see https://github.com/pageauc/pi-timolo2.\nDifferent methods were tried for automating settings for low light/day light timelapse images.\nThis program was useful for trying and testing differnt ideas.\nI cleaned it up a bit and posted on GitHub to share with others who may find it useful.\n\n## Install or Upgrade\nUpdate Raspberry Pi Operating System Bulleye, Bookwork or later.\n\nIn SSH or Terminal Session run commands below.\n\n    sudo apt update\n    sudo apt upgrade -y\n\n#### Step 1\nSelect copy icon on right of Github command box below\n\n    curl -L https://raw.github.com/pageauc/lolight/master/install.sh | bash\n\n#### Step 2\nOn RPI putty SSH or Terminal session, right click, select paste then Enter to download and run install.sh curl script.\n\n\n***NOTE*** If config.py exists it will Not be overwritten. A config.py.new will be created/updated instead.\nTo update existing config.py perform commands below\n\n    cd ~/lolight\n    cp config.py config.py.bak\n    cp config.py.new config.py\n\n## Edit/View Settings\nTo review and/or change settings execute command below in SSH or terminal session.\nSee comments for each variable setting. Ensure camera is installed and working.\n\n    cd ~/lolight\n    nano config.py\n\nTo exit nano and save changes press\n\n    ctrl-x y\n\n#### Run in Foreground\nTo Run in Foreground open a new SSH or Terminal Session then execute command below.\n\n    ./webserver.py\n\nor\n\n\t./lolight.py\n\nNOTE browser URL:PORT for accessing lolight web page will be displayed.  Ctrl-c exits.\n\n#### Run in Background\nTo Run in Background execute command below in current SSH or Terminal Session.\n\n    ./webserver.sh start\n\n\tand/or\n\n\t./lolight.sh start\n\nAccess webserver with a web browser at provided URL and port  eg http://192.168.1.128:8090 or http://rpiname.local:8090\n\n## More Info See\n\n    https://github.com/pageauc/lolight\n\n## Description\n\nTakes timelapse images and saves in date name format to specified dirctory folder.\nA video stream thread is run. Just before taking image a frame is read\nfrom the video stream and the pixel average value is calculated using numpy.\nThis is compared to the darkness threshold DARK_START_PXAVE. Normally about 32 but\ncan be adjusted up or down in ***config.py***  If the pxAve is below DARK_START_PXAVE then the camera\nis put into low light mode. The exposure time in micro seconds is calculated.\nLower pxAve means higher exposure time up to the cameras maximum exposure time.\nsee getExposureSettings function in lolight.py python code for details.\n\nThe video stream is stopped just before the timelapse image is taken, and\nrestarted after.  There is some error trapping to retry camera start if required.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpageauc%2Flolight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpageauc%2Flolight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpageauc%2Flolight/lists"}