I hereby claim:
- I am jakecowton on github.
- I am jakecowton (https://keybase.io/jakecowton) on keybase.
- I have a public key ASDSrQnAhj_6k_EwHwZ6KjwjuU09WZTY5Euy2nDe7yoCZQo
To claim this, I am signing this object:
| blueprint: | |
| name: Universal TRV External Temperature Control | |
| description: > | |
| This automation allows any TRV (Thermostatic Radiator Valve) to use temperature readings from an external sensor. | |
| Whenever the temperature sensor reports a new value, it is sent to the TRV's external temperature input for more accurate climate control. | |
| **Requirements:** | |
| - Your TRV must have a number entity to set the external temperature value | |
| domain: automation | |
| source_url: "https://gist.github.com/JakeCowton/314b1a4bf33934a556ab71952c8a4461" |
| def find_dict_containing_key(d, key): | |
| """ | |
| :param d: dict | |
| :param key: the key to look for | |
| :returns: the nested dict containing key | |
| """ | |
| if isinstance(d, list): | |
| for i in d: | |
| if isinstance(i, dict) or isinstance(i, list): | |
| item = find_dict_containing_key(i, key) |
| def is_sublist(a: list, b: list): | |
| return any( | |
| [v == a[0] and b[i:i + len(a)] == a for i, v in enumerate(b)] | |
| ) |
I hereby claim:
To claim this, I am signing this object:
| # git clone git@github.com:supervisely/supervisely.git | |
| # cd supervisely | |
| # pip install -e . | |
| # cd supervisely_lib | |
| from export.pascal_voc import save_project_as_pascal_voc_detection | |
| from project.project import OpenMode, Project | |
| save_project_as_pascal_voc_detection("/path/to/empty/output/folder", | |
| Project("/path/to/root/of/downloaded/supervisely/folder", |