This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- platform: denvertrash | |
recollect_place_id: xxxxxxxxxxx | |
monitored_conditions: | |
- extra_trash | |
- recycling | |
- trash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=logger, service=set_level> | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.4 seconds. | |
2017-10-19 09:52:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binary_sensor: | |
- platform: 'bayesian' | |
name: In Bed | |
prior: 0.29 | |
probability_threshold: 0.95 | |
observations: | |
- entity_id: 'input_boolean.in_blackout' | |
prob_given_true: 0.9 | |
platform: 'state' | |
to_state: 'on' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Provides data for trash/recycling/etc. pickups.""" | |
from logging import getLogger | |
from datetime import timedelta | |
from math import ceil | |
import voluptuous as vol | |
import homeassistant.helpers.config_validation as cv | |
import homeassistant.util.dt as dt | |
from homeassistant.components.sensor import PLATFORM_SCHEMA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
File: denvertrash.py | |
Author: Aaron Bach | |
Email: [email protected] | |
""" | |
import asyncio | |
import datetime | |
import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
File: denvertrash.py | |
Author: Aaron Bach | |
Email: [email protected] | |
""" | |
import datetime | |
import logging | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aaron was here! | |
Aaron says hi! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Build a CSV string of all the bookmark data: | |
set bookmarkCsv to {"url,title,desc,date,unread,private,tagged"} | |
tell application "Spillo" | |
repeat with b in bookmarks | |
set theUrl to url of b | |
set theTitle to title of b | |
set theDesc to desc of b | |
set theDate to date of b | |
set unreadStatus to unread of b | |
set privateStatus to private of b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIST_ID=$(echo "【clipboard】" | sed -Ee 's/https?:\/\/gist\.github\.com\/[^\/]+\///') | |
echo "[gist ${GIST_ID} /]" \ | |
"<div class=\"no_js\">" \ | |
"<a name=\"${GIST_ID}\"></a>" \ | |
"<a href=\"#${GIST_ID}\">Click here to see the Gist.</a>" \ | |
"</div>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Before we do anything, see if there's even an instance | |
-- of Firefox running. | |
tell application "System Events" | |
set numFF to count (every process whose name is "Firefox") | |
end tell | |
if numFF > 0 then | |
-- Since we have to go over to Firefox to get the info we need, collect | |
-- the name of the current application (so we can return to it). | |
tell application "System Events" |