Skip to content

Instantly share code, notes, and snippets.

@bdwilson
bdwilson / start_ffmpeg.sh
Created January 23, 2020 00:45
monit script to start ffmpeg only when Wyze Cam V2 is on
#!/bin/sh
# connects to local ffserver starting from /etc/rc.local with: /usr/bin/ffserver &
# Wyze camera on 192.168.1.42 with rtsp server replace user and password with your user/password setup within Wyze app
# make sure you have screen package installed
/usr/bin/screen -dmS ffmpeg ffmpeg -rtsp_transport tcp -i 'rtsp://user:password@192.168.1.42/live' http://127.0.0.1:8090/camera.ffm
@bdwilson
bdwilson / ffserver.conf
Created January 23, 2020 00:43
ffserver.conf for wyze v2 Octocam
# Port on which the server is listening. You must select a different
# port from your standard HTTP web server if it is running on the same
# computer.
HTTPPort 8090
# Address on which the server is bound. Only useful if you have
# several network interfaces.
HTTPBindAddress 0.0.0.0
# Number of simultaneous HTTP connections that can be handled. It has
/*
* Neo Smart Controller
*
* Calls URIs with HTTP GET for shade open/close/stop/favourite using the Neo Smart Controller
*
* Based on the Hubitat community driver httpGetSwitch
*/
metadata {
definition(name: "Neo Smart Controller-alpha", namespace: "bigrizzo", author: "bigrizz", importUrl: "https://raw.githubusercontent.com/bdwilson/hubitatDrivers/master/NeoSmart.groovy") {
capability "WindowShade"
@bdwilson
bdwilson / graphs.conf
Created November 13, 2019 00:53
belchertown 1.01 graphs config for weewx
# This is the Belchertown skin charting system which utilizes Highcharts to display the chart data.
#
# PLEASE READ THE CHARTS WIKI! A lot of information is there and it will help you!
# It is located here: https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation
#
# Caution!
# The more charts you have, the slower things can become. This is especially true at the YEAR level. These are interactive charts which have to build plot points from the database on every archive interval. This could result in large file sizes to generate, and for your website visitors to download. You're welcome to customize as many charts as you want, but be warned things could slow down if you do too much!
# The defaults in this skin have proven to be a good baseline for the number of charts and options without overwhelming your system.
#
# Overview of options:
@bdwilson
bdwilson / hemv2+sandood
Created May 6, 2015 00:24
HEMv2+ Sandood
/**
* Aeon HEMv2+
*
* Copyright 2014 Barry A. Burke
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@bdwilson
bdwilson / garageflood
Created April 25, 2015 23:37
Trigger Garage Floodlight to stay on for 6 hours (requires off/on/off/on sequence within 3 seconds). Used with this light: http://www.homedepot.com/p/Defiant-270-Degree-Outdoor-Motion-Activated-White-LED-Security-Floodlight-MSH27920LWDF/203303767#product_description
/**
* Garage Flood 6 hour on initiate
*
* Author: SmartThings
*/
definition(
name: "Garage Flood 6 Hour On",
namespace: "smartthings",
author: "SmartThings",
description: "Turn your lights off when the SmartApp is tapped or activated",
@bdwilson
bdwilson / zulu.pl
Last active August 29, 2015 14:08
Zscaler Zulu Submission Script
#!/usr/bin/perl
# Zscaler Zulu submission tool.
# 10/30/2014 - bubba@bubba.org
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request::Common qw(POST);
$ua= LWP::UserAgent->new;

Keybase proof

I hereby claim:

  • I am bdwilson on github.
  • I am brianwilson (https://keybase.io/brianwilson) on keybase.
  • I have a public key whose fingerprint is FE17 9A2E F36C C7F7 789B 4053 A3E9 DEE3 BDF7 D8C2

To claim this, I am signing this object: