{"id":18756148,"url":"https://github.com/maexled/camera-images-bash-manager","last_synced_at":"2026-04-12T07:34:03.356Z","repository":{"id":104336950,"uuid":"414640650","full_name":"maexled/camera-images-bash-manager","owner":"maexled","description":"Move uploaded pictures by camera and make videos of images with ffmpeg","archived":false,"fork":false,"pushed_at":"2024-01-13T16:03:04.000Z","size":20906,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T01:58:15.638Z","etag":null,"topics":["bash","camera","ffmpeg","hikvision-camera"],"latest_commit_sha":null,"homepage":"","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/maexled.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}},"created_at":"2021-10-07T14:45:09.000Z","updated_at":"2023-06-20T20:09:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a235e41-d428-49e4-9336-7a91f6336eef","html_url":"https://github.com/maexled/camera-images-bash-manager","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maexled%2Fcamera-images-bash-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maexled%2Fcamera-images-bash-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maexled%2Fcamera-images-bash-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maexled%2Fcamera-images-bash-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maexled","download_url":"https://codeload.github.com/maexled/camera-images-bash-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239644129,"owners_count":19673582,"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","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":["bash","camera","ffmpeg","hikvision-camera"],"created_at":"2024-11-07T17:35:28.473Z","updated_at":"2026-04-12T07:34:03.311Z","avatar_url":"https://github.com/maexled.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About the Project\nThe project is designed to manage images uploaded by a (Hikvision) IP-Camera in a folder using FTP. The images in the `temp/` Folder are moved by the `move.sh` script in the right folder named by it's current date. Every night should be the `raffer.sh` script automatically started to render the images to one full video. Optionally the videos are uploaded to specific nextcloud server, configurable in `config.cfg`\n\n## Prerequisites\n\n* ffmpeg\n  ```sh\n  sudo apt install ffmpeg\n* python3\n\n## Installation\n### Be stupid and do it with bash\n\n1. Clone the repo\n   ```sh\n   git clone https://github.com/maexled/camera-images-bash-manager.git\n   cd camera-images-bash-manager/\n   ```\n3. Install needed python libraries\n   ```sh\n   pip install -r requirements.txt \n   ```\n3. Create files folder\n   ```sh\n   mkdir files\n   ```\n4. Define variables in `config.cfg`\n   ```bash\n   fps=\"10\"\n   raffer_execution=\"00:15\"\n   samba_user=\"samba\"\n   samba_uid=\"1000\"\n   object_detection=\"true\"\n   check_for_broken_images=\"true\"\n   save_longtime_pictures=\"true\"\n   save_object_detection=\"true\"\n   save_to_nextcloud=\"true\"\n   nextcloud_host=\"https://yournextcloud.com\"\n   nextcloud_path=\"Videos\"\n   nextcloud_username=\"Maexled\"\n   nextcloud_password=\"YourSecretPassword\"\n   ```\n   - `samba_user` - is the user who will own the moved files\n   - `raffer_execution` - if you want to execute raffer in other ways (e.g cron), keep it empty\n   \n   The other variables should be self-explanatory\n\n5. Start `move.sh` in screen\n    ```sh\n   bash move.sh\n   ```\n6. Create crontab for `raffer.sh`, for example crontab -e\n    ```sh\n   15 0 * * * bash /camera/raffer.sh\n   ```\n   This will execute everyday 00:15 the raffer script makes the video then.\n\n### Be smart and do it with docker!\n```sh\ndocker run \\\n   --name camera-images-manager \\\n   -v /home/max/cameratest/files:/camera/files \\\n   -v /home/max/cameratest/temp:/camera/temp \\\n   -v /home/max/cameratest/config.cfg:/camera/config.cfg \\\n   -e TZ=Europe/Berlin \\\n   ghcr.io/maexled/camera-images-bash-manager\n```\n#### Configuration variables in config.cfg:\n- `samba_user` - The user that should own the files. Will be created in docker container\n- `samba_uid` - The uid of the user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaexled%2Fcamera-images-bash-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaexled%2Fcamera-images-bash-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaexled%2Fcamera-images-bash-manager/lists"}