{"id":20382236,"url":"https://github.com/ronguest/window-on-weather","last_synced_at":"2026-05-08T11:38:11.300Z","repository":{"id":91023149,"uuid":"170180703","full_name":"ronguest/window-on-weather","owner":"ronguest","description":"Collects time-lapse GIF and MP4 videos using Raspberry Pi and the Pi Camera. I use it to capture the sky/weather","archived":false,"fork":false,"pushed_at":"2019-02-13T22:22:35.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T22:42:07.646Z","etag":null,"topics":["camera","gif","mp4","raspberry-pi","sky","time-lapse","weather"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronguest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-02-11T18:35:42.000Z","updated_at":"2022-04-06T16:34:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"09ea3848-ba95-4359-8d77-d71f9c6d56e1","html_url":"https://github.com/ronguest/window-on-weather","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ronguest/window-on-weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronguest%2Fwindow-on-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronguest%2Fwindow-on-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronguest%2Fwindow-on-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronguest%2Fwindow-on-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronguest","download_url":"https://codeload.github.com/ronguest/window-on-weather/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronguest%2Fwindow-on-weather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32779184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["camera","gif","mp4","raspberry-pi","sky","time-lapse","weather"],"created_at":"2024-11-15T02:16:56.551Z","updated_at":"2026-05-08T11:38:11.285Z","avatar_url":"https://github.com/ronguest.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Time-lapse Video Project for Raspberry Pi\n\nThis project was created in order to collect time-lapse videos of the sky outside my house on a continuous basis (24/7). It could be used to collect time-lapse video of anything but this is the purpose for which it was built.\n\n## Required Hardware\n* Raspberry Pi with WiFi or Ethernet (I used a Pi B2 with a TP-Link WiFi adapter)\n* Raspberry Pi camera (I used a V1 camera but V2 should work as well)\n* Micro SD card (I started with an 8GB card but it wasn't large enough. 16GB would have worked but I had a 32GB handy and used that)\n\nYou should have a web server configured as well as having enabled the camera. I find it easiest to work with the Pi over SSH rather than using a display+keyboard+mouse. If you feel the same you will also need to enable SSH access. The Pi webserver is assumed to store it's files in /var/www/html. The \"wx\" directory needs to be created manually within that directory.\n\nFor camera installation instruction [refer to this web site](https://www.raspberrypi.org/documentation/usage/camera/README.md).\n\n## Software Components\n* crontab entries to launch the necessary scripts on a schedule\n* Three shell scripts\n  * _capture_wx.sh_ - captures a series of GIF images then combines them into an animated GIF and calls video.py to create a separate MP4 time-lapse\n  * _compile_wx.sh_ - runs once an hour and combines the previous hour's MP4 time-lapse into a single file\n  * _delete_wx.sh_ - runs once a day and deletes the video files created 2 days prior\n* One Python script\n  * _video.py_ - records time-lapse in MP4, called from capture_wx.sh\n    * Note: If raspivid is used directly the first frames are highly over-exposed while auto-exposure makes adjustments. video.py records and throws away a few seconds of video to avoid this issue before recording the time-lapse.\n\n## Installation\n* In /home/pi create a directory named _wx_video_\n* Make sure _/var/www/html/wx_ exists and the current user has read and write permission\n* Place the three shell scripts and the video.py script in that directory\n* Run _crontab -e_ and place the final three lines from _crontab.txt_ into the crontab\n\nOnce everything is installed and running visit your Pi's webserver IP and append one of these strings to access the files:\n* _wx/current.gif_ will display the most recent GIF (recorded every 10 minutes if you use my crontab entries)\n* _wx/current.mp4_ displays roughly 2 minutes of real time into a 10 second MP4 time lapse (also updated every 10 minutes)\n* _wx/current_hour.mp4_ displays a compilation of the previous hour's MP4 files (five 10 minute time lapses)\n\nIf your Pi has IP address 192.168.1.73 and your web server is using the default port then visiting _http://192.168.1.73/wx/current.gif_ with your browser should load the most recent GIF.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronguest%2Fwindow-on-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronguest%2Fwindow-on-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronguest%2Fwindow-on-weather/lists"}