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
blueprint: | |
name: UniFi Protect License Plate Notifications | |
domain: automation | |
source_url: https://raw.githubusercontent.com/AngellusMortis/unifiprotect_blueprints/main/blueprints/automation/unifiprotect/notification_smart_licenseplate_event.yaml | |
description: | |
"## UniFi Protect License Plate Notifications\n\nThis blueprint will | |
send push notifications to a Home Assistant mobile app when an AI series series | |
camera detects\na License Plate.\n\n### Required Settings\n\n - UniFi Protect | |
License Plate Sensor\n\n### Optional Settings\n\n - Notification target for the | |
[mobile app notification target][1].\n - Time formatting strings. Timestamp is |
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
blueprint: | |
name: UniFi Protect Motion / Smart Detection Notifications | |
domain: automation | |
source_url: https://raw.githubusercontent.com/AngellusMortis/unifiprotect_blueprints/main/blueprints/automation/unifiprotect/notification_smart_motion_event.yaml | |
description: "## UniFi Protect Motion / Smart Detection Notifications\n\nThis blueprint | |
will send push notifications to a Home Assistant mobile app when a camera detections | |
motion or a\nsmart detection.\n\n### Required Settings\n\n - UniFi Protect Detection | |
Sensor\n\n### Optional Settings\n\n - Notification target for the [mobile app | |
notification target][1].\n - Presence filter - list of mobile phones or other | |
entities that should be within the \"home\" zone\n - Alarm entity to check arm |
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
blueprint: | |
name: UniFi Protect Doorbell Ring Notifications | |
domain: automation | |
source_url: https://raw.githubusercontent.com/AngellusMortis/unifiprotect_blueprints/main/blueprints/automation/unifiprotect/notification_ring_event.yaml | |
description: "## UniFi Protect Doorbell Ring Notifications\n\nThis blueprint will | |
send push notifications to a Home Assistant mobile app when a doorbell ring is | |
detected.\n\n### Required Settings\n\n - UniFi Protect Doorbell Sensor\n\n### | |
Optional Settings\n\n - Notification target for the [mobile app notification | |
target][1].\n - Cutoff time before ring event for video clips.\n - Time formatting | |
strings. Timestamp is injected into the notification in case the notification |
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
import time | |
import board | |
import neopixel | |
from digitalio import DigitalInOut, Direction, Pull | |
from adafruit_debouncer import Debouncer | |
import usb_hid | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keycode import Keycode |
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
>>>> adc1 | |
ADC1 settings | |
Parsing error: | |
SR : 0x00000000 [0x40012400] | |
Parsing error: | |
CR1 : 0x00000000 [0x40012404] | |
Parsing error: | |
CR2 : 0x00000000 [0x40012408] | |
Parsing error: | |
SMPR1 : 0x00000000 [0x4001240c] |
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
""" | |
notifier.py | |
Listens to a Duet over USB | |
Configure your slicer to add M118 P1 S"###END###" to the end of your GCode | |
Ensure "port" points to the Duet serial port | |
Configure the following parameters: | |
- twilio_account_sid - from https://www.twilio.com/console/project/settings | |
- twilio_auth_token - from https://www.twilio.com/console/project/settings | |
- s3_bucket - your S3 bucket name | |
- s3_url - Add in the region instead of #### |
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
import serial, time, json, io, os, requests, datetime, sys, traceback, logging | |
from systemd import journal | |
log = logging.getLogger('timelapse') | |
log.addHandler(journal.JournalHandler()) | |
log.setLevel(logging.INFO) | |
port = '/dev/serial/by-id/usb-Duet3D_Duet-if00' | |
baud = 115200 |
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
pragma solidity ^0.5.1; | |
pragma experimental ABIEncoderV2; | |
contract TestContract { | |
constructor() public {} | |
struct Foo { uint8 bar; uint8 baz; } | |
function test (Foo[] calldata input) external {} | |
} |
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
; bed.g | |
; called to perform automatic bed compensation via G32 | |
; | |
; generated by RepRapFirmware Configuration Tool on Tue Feb 27 2018 20:56:15 GMT+0000 (GMT Standard Time) | |
M561 ; clear any bed transform | |
; G28 ; home all axes | |
; Probe the bed at 5 points | |
G1 X60 Y60 Z5 F9000 ; Move to bed | |
G4 P1500 |
This file has been truncated, but you can view the full file.
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
; Generated with: | |
; "Duet Raster 2 Laser Gcode generator" | |
; by 305 Engineering | |
; | |
; | |
; | |
G28; home all axes | |
G21; Set units to millimeters | |
G90; Use absolute coordinates | |
G92; Coordinate Offset |
NewerOlder