{"id":15475361,"url":"https://github.com/dhellmann/wateringtime","last_synced_at":"2025-02-23T10:41:36.110Z","repository":{"id":17387318,"uuid":"20159484","full_name":"dhellmann/wateringtime","owner":"dhellmann","description":null,"archived":false,"fork":false,"pushed_at":"2016-09-05T18:59:47.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T22:35:34.034Z","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/dhellmann.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2014-05-25T16:34:21.000Z","updated_at":"2016-06-16T18:40:16.000Z","dependencies_parsed_at":"2022-09-24T15:54:01.552Z","dependency_job_id":null,"html_url":"https://github.com/dhellmann/wateringtime","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/dhellmann%2Fwateringtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fwateringtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fwateringtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fwateringtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhellmann","download_url":"https://codeload.github.com/dhellmann/wateringtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240304574,"owners_count":19780312,"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":[],"created_at":"2024-10-02T03:11:41.547Z","updated_at":"2025-02-23T10:41:36.078Z","avatar_url":"https://github.com/dhellmann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============\n Watering Time\n===============\n\nThis package converts a representation of the watering schedule for my\nsprinkler control system to a calendar view that is easier to\nunderstand and validate.\n\nSprinkler System Model\n======================\n\nThe operating model for the program is based on a sprinkler system\nthat can be programmed to send water to different sets of sprinkler\nheads grouped into *zones*. Each zone can be activated for a number of\nminutes, and a set of zone activations can be grouped into a *program*\nwhich is given a start time and specified days of the week when it\nruns. The model assumes that only run one zone at a time, so if the\nschedule introduces overlaps or conflicts the activations are\nserialized to run one after the other.\n\nInput File\n==========\n\nThe data input file is a YAML file listing the watering zones and the\nwatering programs.\n\nEach zone is identified by a number, mapped to a short but descriptive\nname.\n\n::\n\n  zones:\n    1: turf\n    2: f shrubs\n    3: b shrubs\n    4: patio\n    5: garden\n\nThe watering programs are identified by letters or short strings, and\ninclude a list of start times, a set of days of the week on which the\nprogram runs, and run times for each zone in the order that the zone\nis activated.\n\n::\n\n  programs:\n    A:\n      start:\n        - '3:30'\n      days: TuThSaSu\n      zones:\n        - zone: 1\n          time: 30\n        - zone: 3\n          time: 30\n        - zone: 4\n          time: 10\n\nDays are described using a string containing ``M``, ``Tu``, ``W``,\n``Th``, ``F``, ``Sa``, and ``Su`` *or* ``odd`` *or* ``even``.\n\n::\n\n  programs:\n    C:\n      start:\n        - '6:00'\n      days: even\n      zones:\n        - zone: 5\n          time: 15\n\nUsage\n=====\n\nThe ``wateringtime`` command line program produces output in two\nformats. The simple formatter summarizes the YAML data in a table.\n\n::\n\n  $ wateringtime  --format simple wateringtime.yaml\n  +---------+----------+-------------+----------------+----------+\n  | Program |   Days   | Start Times | Zones          | Duration |\n  +---------+----------+-------------+----------------+----------+\n  |    A    | TuThSaSu |   03:30:00  | turf      (30) |    70    |\n  |         |          |   04:00:00  | b shrubs  (30) |          |\n  |         |          |   04:30:00  | patio     (10) |          |\n  |    B    | TuThSaSu |   05:00:00  | f shrubs  (50) |    50    |\n  |    C    |  MWFSu   |   06:00:00  | garden    (15) |    15    |\n  +---------+----------+-------------+----------------+----------+\n\nThe caledar formatter shows the watering schedule for each program and\nzone on each day of a specified month.\n\n::\n\n  $ wateringtime -v --format calendar --year 2016 --month 9 wateringtime.yaml\n  \n                                                                                  September                                                                                 \n  \n  +----------------------+------------------------+----------------------+------------------------+----------------------+------------------------+------------------------+\n  | Mon                  | Tue                    | Wed                  | Thu                    | Fri                  | Sat                    | Sun                    |\n  +----------------------+------------------------+----------------------+------------------------+----------------------+------------------------+------------------------+\n  |                      |                        |                      | (1)                    | (2)                  | (3)                    | (4)                    |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      |                        |                      | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | A (TuThSaSu) [70]      |\n  |                      |                        |                      | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 03:30-04:00 - turf     |\n  |                      |                        |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs | 04:00-04:30 - b shrubs |\n  |                      |                        |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    | 04:30-04:40 - patio    |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      |                        |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      | B (TuThSaSu) [50]      |\n  |                      |                        |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs | 05:00-05:50 - f shrubs |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      |                        |                      |                        |                      |                        | C (MWFSu) [15]         |\n  |                      |                        |                      |                        |                      |                        | 06:00-06:15 - garden   |\n  +----------------------+------------------------+----------------------+------------------------+----------------------+------------------------+------------------------+\n  | (5)                  | (6)                    | (7)                  | (8)                    | (9)                  | (10)                   | (11)                   |\n  |                      |                        |                      |                        |                      |                        |                        |\n  | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | A (TuThSaSu) [70]      |\n  | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 03:30-04:00 - turf     |\n  |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs | 04:00-04:30 - b shrubs |\n  |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    | 04:30-04:40 - patio    |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      | B (TuThSaSu) [50]      |\n  |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs | 05:00-05:50 - f shrubs |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      |                        |                      |                        |                      |                        | C (MWFSu) [15]         |\n  |                      |                        |                      |                        |                      |                        | 06:00-06:15 - garden   |\n  +----------------------+------------------------+----------------------+------------------------+----------------------+------------------------+------------------------+\n  | (12)                 | (13)                   | (14)                 | (15)                   | (16)                 | (17)                   | (18)                   |\n  |                      |                        |                      |                        |                      |                        |                        |\n  | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | A (TuThSaSu) [70]      |\n  | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 03:30-04:00 - turf     |\n  |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs | 04:00-04:30 - b shrubs |\n  |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    | 04:30-04:40 - patio    |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      | B (TuThSaSu) [50]      |\n  |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs | 05:00-05:50 - f shrubs |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      |                        |                      |                        |                      |                        | C (MWFSu) [15]         |\n  |                      |                        |                      |                        |                      |                        | 06:00-06:15 - garden   |\n  +----------------------+------------------------+----------------------+------------------------+----------------------+------------------------+------------------------+\n  | (19)                 | (20)                   | (21)                 | (22)                   | (23)                 | (24)                   | (25)                   |\n  |                      |                        |                      |                        |                      |                        |                        |\n  | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | A (TuThSaSu) [70]      |\n  | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 03:30-04:00 - turf     |\n  |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs | 04:00-04:30 - b shrubs |\n  |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    | 04:30-04:40 - patio    |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      | B (TuThSaSu) [50]      |\n  |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs | 05:00-05:50 - f shrubs |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      |                        |                      |                        |                      |                        | C (MWFSu) [15]         |\n  |                      |                        |                      |                        |                      |                        | 06:00-06:15 - garden   |\n  +----------------------+------------------------+----------------------+------------------------+----------------------+------------------------+------------------------+\n  | (26)                 | (27)                   | (28)                 | (29)                   | (30)                 |                        |                        |\n  |                      |                        |                      |                        |                      |                        |                        |\n  | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       | A (TuThSaSu) [70]      | C (MWFSu) [15]       |                        |                        |\n  | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden | 03:30-04:00 - turf     | 06:00-06:15 - garden |                        |                        |\n  |                      | 04:00-04:30 - b shrubs |                      | 04:00-04:30 - b shrubs |                      |                        |                        |\n  |                      | 04:30-04:40 - patio    |                      | 04:30-04:40 - patio    |                      |                        |                        |\n  |                      |                        |                      |                        |                      |                        |                        |\n  |                      | B (TuThSaSu) [50]      |                      | B (TuThSaSu) [50]      |                      |                        |                        |\n  |                      | 05:00-05:50 - f shrubs |                      | 05:00-05:50 - f shrubs |                      |                        |                        |\n  +----------------------+------------------------+----------------------+------------------------+----------------------+------------------------+------------------------+\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhellmann%2Fwateringtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhellmann%2Fwateringtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhellmann%2Fwateringtime/lists"}