{"id":20898208,"url":"https://github.com/eat-sleep-code/watchandsetfire","last_synced_at":"2026-05-17T01:36:04.668Z","repository":{"id":68198844,"uuid":"300937059","full_name":"eat-sleep-code/watchandsetfire","owner":"eat-sleep-code","description":"Python service to watch a specific folder and when changes are detected upload them to Firebase Storage.","archived":false,"fork":false,"pushed_at":"2021-05-27T15:41:50.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-19T12:48:30.787Z","etag":null,"topics":["firebase-storage","python","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eat-sleep-code.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":"2020-10-03T17:24:50.000Z","updated_at":"2021-05-27T15:41:53.000Z","dependencies_parsed_at":"2023-04-13T10:18:51.376Z","dependency_job_id":null,"html_url":"https://github.com/eat-sleep-code/watchandsetfire","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fwatchandsetfire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fwatchandsetfire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fwatchandsetfire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fwatchandsetfire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eat-sleep-code","download_url":"https://codeload.github.com/eat-sleep-code/watchandsetfire/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243285600,"owners_count":20266846,"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":["firebase-storage","python","raspberry-pi"],"created_at":"2024-11-18T11:09:33.902Z","updated_at":"2026-05-17T01:35:59.636Z","avatar_url":"https://github.com/eat-sleep-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watch and Set Fire\nThis Python-based service will watch a specific folder.   When new or modified files are detected they will be uploaded to the specified bucket in Firebase Storage.\n\n---\n## Getting Started\n\n- Use [raspi-config](https://www.raspberrypi.org/documentation/configuration/raspi-config.md) to:\n  - Set up your WiFi connection\n\n## Installation\n\nInstallation of the program, as well as any software prerequisites, can be completed with the following two-line install script.\n\n```\nwget -q https://raw.githubusercontent.com/eat-sleep-code/watchandsetfire/main/install-watchandsetfire.sh -O ~/install-watchandsetfire.sh\nsudo chmod +x ~/install-watchandsetfire.sh \u0026\u0026 ~/install-watchandsetfire.sh\n```\n\n### Setup Your API Key\n\nTo use this application, you will need to:\n+ Provision and download your `firebase_admin` API key from the [Google Cloud Platform Console](https://console.cloud.google.com/iam-admin/serviceaccounts)\n+ Rename the downloaded file to `firebase-key.json` and place the file within the `\\home\\pi\\watchandsetfire` directory\n\n---\n\n## Usage\n```\nwatchandsetfire \u003coptions\u003e\n```\n\n### Options\n\n+ _--path_ : Set the path that will be watched for changes    *(required)*\n+ _--recursive_ : Set whether sub directories will also be watched    *(default: True)*\n+ _--includePattern_ : Set the pattern of files to watch    *(default: all files are included)*\n+ _--ignorePattern_ : Set the pattern of files to be ignored    *(default: no files are ignored)*\n+ _--bucket_ : Set the Firebase storage bucket URI    *(required)*\n+ _--destination_ : Set the destination within the Firebase storage bucket     *(default: root of the storage bucket)*\n\n---\n## Example\n\nThe following will watch the *cucumbers* folder for new or modified files.   When detected, they will be uploaded to *example.appspot.com/pickles/[filename].[ext]*\n```\nwatchandsetfire --path '/home/pi/cucumbers' --bucket 'example.appspot.com' --destination 'pickles/'\n```\n---\n\n## Autostart\nWant to start the watch every time you boot your Raspberry Pi?  Here is how!\n\n* Review `/etc/systemd/system/watchandsetfire.service`\n   * If you would like to add any of aforementioned options you may do so by editing the service file.\n* Run `~/watchandsetfire/install-watchandsetfire.service.sh`\n\n---\n\n:information_source: *This application was developed and tested using Raspberry Pi OS running on Raspberry Pi Zero W, Raspberry Pi 3B+, and Raspberry Pi 4B boards.   Issues may arise if you are using either older hardware or other Linux distributions.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feat-sleep-code%2Fwatchandsetfire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feat-sleep-code%2Fwatchandsetfire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feat-sleep-code%2Fwatchandsetfire/lists"}