- Python 3
- Pip 3
$ brew install python3
blueprint: | |
name: Turn the light on when motion is detected | |
description: Turn on a light when motion is detected and Illuminance is low. | |
domain: automation | |
source_url: https://github.com/niemyjski/home-assistant-config/tree/master/blueprints/automation/niemyjski/motion_light.yaml | |
input: | |
motion: | |
name: Motion Sensor | |
description: The motion sensor wich triggers the light to turn on | |
selector: |
import { ClassAttributes, HTMLAttributes } from "react"; | |
jest.mock("@exceptionless/react", () => { | |
return { | |
__esModule: true, | |
Exceptionless: { | |
startup: jest.fn() | |
}, | |
ExceptionlessErrorBoundary: (props: JSX.IntrinsicAttributes & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>) => { | |
return <div {...props} />; |
[Priority(100)] | |
public class Mark500ErrorsAsCritical : IEventPlugin { | |
public void Run(EventPluginContext ctx) { | |
if (!String.Equals(ctx.Event.Type, Event.KnownTypes.Error)) | |
return; | |
if (ctx.ContextData.IsUnhandledError) | |
ctx.Event.Tags.Add(Event.KnownTags.Critical); | |
} | |
} |
ExceptionlessClient.Default.Configuration.AddPlugin<Ignore404sFromNonUsers>(); | |
[Priority(100)] | |
public class Ignore404sFromNonUsers : IEventPlugin { | |
public void Run(EventPluginContext ctx) { | |
if (!String.Equals(ctx.Event.Type, Event.KnownTypes.NotFound)) | |
return; | |
// Ignore any 404 that doesn't have user info. | |
ctx.Cancel = !ctx.Event.Data.ContainsKey(Event.KnownDataKeys.UserInfo); |
version: '3.7' | |
volumes: | |
double-take: | |
postgres-data: | |
services: | |
double-take: | |
container_name: double-take | |
image: jakowenko/double-take:1.4.1 |
// Create our own client instance so we aren't conflicting if anyone else is using exceptionless in an addon. | |
private readonly ExceptionlessClient _client = new ExceptionlessClient(); | |
_client.Configuration.AddPlugin<IgnoreLicensingAndNonGeneratorExceptionsPlugin>(); | |
[Priority(30)] | |
private class IgnoreLicensingAndNonGeneratorExceptionsPlugin : IEventPlugin { | |
private static readonly List<string> _handledNamespaces = new List<string> { | |
"MyNamespace", | |
"MyThirdPartyDependencyNamespace" | |
}; |
blueprint: | |
name: Turn the switch on when motion is detected | |
description: Turn on a switch when motion is detected and Illuminance is low. | |
domain: automation | |
source_url: https://github.com/niemyjski/home-assistant-config/tree/master/blueprints/automation/niemyjski/motion_switch.yaml | |
input: | |
motion: | |
name: Motion Sensor | |
description: The motion sensor wich triggers the light to turn on | |
selector: |
- badges: [] | |
cards: | |
- entity: weather.smartweather | |
name: Forecast | |
show_forecast: true | |
type: weather-forecast | |
- entities: | |
- entity: sensor.smartweather_wind_bearing | |
- entity: sensor.smartweather_wind_chill | |
- entity: sensor.smartweather_wind_direction |
import aiohttp | |
import asyncio | |
import requests | |
async def main(): | |
url = "http://IP_OF_SHOWER_CONTROLLER_HERE/values.cgi?_=1579384493390" | |
response = requests.get(url) | |
print(response.json()) |