Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Copyright © 2021 Niklas Seyfarth, bendy straw
- #
- # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
- #
- # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- #
- # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- # conditions.yml
- time_one: or time_1_am,time_1_pm
- time_1_am: realtime 00:01-12:01
- time_1_pm: realtime 12:01-00:01
- time_two: or time_2_am,time_2_pm
- time_2_am: realtime 01:01-12:01
- time_2_pm: realtime 13:01-00:01
- time_three: or time_3_am,time_3_pm
- time_3_am: realtime 02:01-12:01
- time_3_pm: realtime 14:01-00:01
- time_four: or time_4_am,time_4_pm
- time_4_am: realtime 03:01-12:01
- time_4_pm: realtime 15:01-00:01
- time_five: or time_5_am,time_5_pm
- time_5_am: realtime 04:01-12:01
- time_5_pm: realtime 16:01-00:01
- time_six: or time_6_am,time_6_pm
- time_6_am: realtime 05:01-12:01
- time_6_pm: realtime 17:01-00:01
- time_seven: or time_7_am,time_7_pm
- time_7_am: realtime 06:01-12:01
- time_7_pm: realtime 18:01-00:01
- time_eight: or time_8_am,time_8_pm
- time_8_am: realtime 07:01-12:01
- time_8_pm: realtime 19:01-00:01
- time_nine: or time_9_am,time_9_pm
- time_9_am: realtime 08:01-12:01
- time_9_pm: realtime 20:01-00:01
- time_ten: or time_10_am,time_10_pm
- time_10_am: realtime 09:01-12:01
- time_10_pm: realtime 21:01-00:01
- time_eleven: or time_11_am,time_11_pm
- time_11_am: realtime 10:01-12:01
- time_11_pm: realtime 22:01-00:01
- time_twelve: or time_12_am,time_12_pm
- time_12_am: realtime 11:01-12:01
- time_12_pm: realtime 23:01-00:01
- # events.yml
- ring_bell: folder ring_bell_one,ring_bell_two,ring_bell_three,ring_bell_four,ring_bell_five,ring_bell_six,ring_bell_seven,ring_bell_eight,ring_bell_nine,ring_bell_ten,ring_bell_eleven,ring_bell_twelve
- delay:2
- ring_bell_one: folder ring_bell_locations condition:time_one
- ring_bell_two: folder ring_bell_locations condition:time_two
- ring_bell_three: folder ring_bell_locations condition:time_three
- ring_bell_four: folder ring_bell_locations condition:time_four
- ring_bell_five: folder ring_bell_locations condition:time_five
- ring_bell_six: folder ring_bell_locations condition:time_six
- ring_bell_seven: folder ring_bell_locations condition:time_seven
- ring_bell_eight: folder ring_bell_locations condition:time_eight
- ring_bell_nine: folder ring_bell_locations condition:time_nine
- ring_bell_ten: folder ring_bell_locations condition:time_ten
- ring_bell_eleven: folder ring_bell_locations condition:time_eleven
- ring_bell_twelve: folder ring_bell_locations condition:time_twelve
- ring_bell_locations: folder ring_bell_town,ring_bell_elsewhere
- ring_bell_town: notify io:sound sound:block.bell.use soundvolume:16 soundlocation:$town_location$
- ring_bell_elsewhere: notify io:sound sound:block.bell.use soundvolume:16 soundlocation:$elsewhere_location$
- # main.yml
- static:
- '00:00': play_bell
- '01:00': play_bell
- '02:00': play_bell
- '03:00': play_bell
- '04:00': play_bell
- '05:00': play_bell
- '06:00': play_bell
- '07:00': play_bell
- '08:00': play_bell
- '09:00': play_bell
- '10:00': play_bell
- '11:00': play_bell
- '12:00': play_bell
- '13:00': play_bell
- '14:00': play_bell
- '15:00': play_bell
- '16:00': play_bell
- '17:00': play_bell
- '18:00': play_bell
- '19:00': play_bell
- '20:00': play_bell
- '21:00': play_bell
- '22:00': play_bell
- '23:00': play_bell
Add Comment
Please, Sign In to add comment