{"id":13582160,"url":"https://github.com/bernmic/ocrmypdf-watchdog","last_synced_at":"2025-04-15T15:22:45.217Z","repository":{"id":44106391,"uuid":"163512361","full_name":"bernmic/ocrmypdf-watchdog","owner":"bernmic","description":"A watchdog for OCRMyPDF written in go","archived":false,"fork":false,"pushed_at":"2022-02-12T09:59:00.000Z","size":25,"stargazers_count":12,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T21:51:10.226Z","etag":null,"topics":["docker","docker-compose","go","golang","ocrmypdf"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bernmic.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}},"created_at":"2018-12-29T13:15:55.000Z","updated_at":"2024-12-23T23:57:12.000Z","dependencies_parsed_at":"2022-09-22T10:43:52.840Z","dependency_job_id":null,"html_url":"https://github.com/bernmic/ocrmypdf-watchdog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernmic%2Focrmypdf-watchdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernmic%2Focrmypdf-watchdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernmic%2Focrmypdf-watchdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernmic%2Focrmypdf-watchdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernmic","download_url":"https://codeload.github.com/bernmic/ocrmypdf-watchdog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249095373,"owners_count":21211913,"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":["docker","docker-compose","go","golang","ocrmypdf"],"created_at":"2024-08-01T15:02:27.828Z","updated_at":"2025-04-15T15:22:45.163Z","avatar_url":"https://github.com/bernmic.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# ocrmypdf-watchdog\n\nThis is a simple watchdog for OCRMyPDF (and maybe others). It watches a given folder for new files with definable extensions and runs then ocrmypdf (or another command) to convert files to pdf.\n\n## Docker\n\nThe Dockerfile creates an image based on the jbarlow83/ocrmypdf image and adds the watchdog.\n\nThe docker-compose creates a container from the image. The first time it has to be started with the --build flag to build the image:\n\n    docker-compose up --build\n \n There are 2 volumes: \u003cb\u003e/in\u003c/b\u003e and \u003cb\u003e/out\u003c/b\u003e\n The docker-compose.yml shows how to use them.\n \n ## Environment\n \nThe watchdog looks for the following environment variables:\n \n* OCRMYPDF_IN\n* OCRMYPDF_OUT\n* OCRMYPDF_BINARY\n* OCRMYPDF_PARAMETER\n* WATCHDOG_EXTENSIONS\n* WATCHDOG_FREQUENCY\n\n## Parameters\n\nThe watchdog accepts the following parameters:\n\n* --in \u003cin-path\u003e\n* --out \u003cout-path\u003e\n* --frequency \u003cin seconds)\n* --ocrmypdf \u003cpath and name of the executable\u003e\n\n## Multi architecture build\n\ndocker buildx build -t \"${DOCKER_USER}/ocrmypdf-watchdog:latest\" --platform linux/amd64,linux/arm64 --push .","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernmic%2Focrmypdf-watchdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernmic%2Focrmypdf-watchdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernmic%2Focrmypdf-watchdog/lists"}