{"id":16392039,"url":"https://github.com/mikeshultz/dowhen","last_synced_at":"2026-06-18T22:32:07.793Z","repository":{"id":147876694,"uuid":"268328771","full_name":"mikeshultz/dowhen","owner":"mikeshultz","description":"A conditional execution system and scheduler.  Pretty much a self-hosted IFTTT.","archived":false,"fork":false,"pushed_at":"2024-12-15T22:04:43.000Z","size":84,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-22T22:27:52.345Z","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/mikeshultz.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":"2020-05-31T17:24:36.000Z","updated_at":"2024-12-15T22:04:47.000Z","dependencies_parsed_at":"2023-04-13T12:33:10.517Z","dependency_job_id":null,"html_url":"https://github.com/mikeshultz/dowhen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikeshultz/dowhen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fdowhen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fdowhen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fdowhen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fdowhen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeshultz","download_url":"https://codeload.github.com/mikeshultz/dowhen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fdowhen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34510283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":"2024-10-11T04:48:18.291Z","updated_at":"2026-06-18T22:32:07.773Z","avatar_url":"https://github.com/mikeshultz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dowhen\n\nA conditional execution system and scheduler.  Pretty much a self-hosted IFTTT.\nThere is (currently) no UI.\n\n## Quickstart\n\n### Install\n\n#### Generic\n\n    pipx install git+https://github.com/mikeshultz/dowhen.git\n\n#### Production\n\n    useradd dowhen\n    sudo -u dowhen bash\n    pipx install git+https://github.com/mikeshultz/dowhen.git\n\nYou may also want to configure a daemon.  You can use the service file in this\nrepo as a template.\n\n    # Service file location may be different depending on distro\n    curl -s https://raw.githubusercontent.com/mikeshultz/dowhen/master/ops/systemd/dowhen.service | sudo tee /usr/lib/systemd/system/dowhen-test.service\n\n### Configure\n\nCreate a configuration file at `$HOME/.config/dowhen/dowhen.yaml` with your\ntriggers.  An example config file is\n[`dowhen.yaml.example`](dowhen.yaml.example).  Each trigger describes when to\nfire and what to do when it fires.\n\nFor instance, to turn on a WeMo switch on sunrise:\n\n    ---\n    triggers:\n      - when: \n          name: openweathermap.sunrise\n          args:\n            zip: 59801\n        do:\n          # Turn on plant lights\n          - name: wemo.on\n            args:\n              mac: \"30:23:DE:AD:BE:EF\"\n\n### Run\n\nThen you can run the daemon:\n\n    dowhen daemon\n\n### Modules\n\n#### When\n\n\"When\" modules act as triggers.  They will signal when a condition is met. For\ninstance, it will indicate the current time, or certain weather conditions have\noccurred.\n\n##### datetime\n\nThe `datetime` When module will trigger on times and dates.\n\n - daily\n - hourly\n - minutely\n - time(time_string)\n\n##### openweathermap\n\nThe `openweathermap` When module triggers on weather-based data.\n\n- sunrise(zip)\n- sunset(zip)\n\n#### Do\n\n\"Do\" modules perform actions.  For example, the Wemo Do module would do things\nlike turn on and off Wemo switches.\n\n##### wemo\n\nThe `wemo` Do module performs actions on Belkin Wemo devices.\n\n - on(mac)\n - off(mac)\n - toggle(mac)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fdowhen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeshultz%2Fdowhen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fdowhen/lists"}