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
#!/usr/bin/python3 | |
import os,time | |
# {"seg":{"i":[0,"FF0000",1,"00FF00",2,"FFFFFF",3,"FF0000"]}} | |
led_count = 200 | |
wled_ip = '192.168.10.11' | |
#curl --header "Content-Type: application/json" \ |
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
esphome: | |
name: geiger-counter | |
friendly_name: Geiger Counter | |
external_components: | |
- source: github://TheStaticTurtle/esphome_syslog | |
components: [syslog] | |
esp8266: | |
board: nodemcuv2 |
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
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
# Update this line to be your domain | |
server_name homeassistant.domain.net; | |
# These shouldn't need to be changed |
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
#!/opt/local/bin/perl | |
# ^ perl installed using Homebrew | |
# make it harder to suck | |
use strict; | |
use warnings; | |
# mediainfo command | |
my $height_cmd = "/usr/local/bin/mediainfo '--Inform=Video;%Height%' "; |
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
; Configuration file for Duet WiFi (firmware version 1.20 or newer) | |
; executed by the firmware on start-up | |
; | |
; generated by RepRapFirmware Configuration Tool on Thu May 10 2018 12:24:40 GMT-0300 (ADT) | |
; General preferences | |
G90 ; Send absolute coordinates... | |
M83 ; ...but relative extruder moves | |
M667 S1 ; Select CoreXY mode |
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
#!/usr/bin/perl | |
use strict; | |
use Roku::RCP; | |
use GD; | |
use Image::Resize; | |
# connect to Roku | |
my $rcp = new Roku::RCP('192.168.5.40'); |
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
#!/usr/bin/python3 | |
import urllib.request | |
import lxml.html | |
import untangle | |
import sys | |
def rchop(the_string, sub_str): | |
if (the_string.endswith(sub_str)): | |
return the_string[:-len(sub_str)] |
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
#!/usr/bin/python3 | |
import untangle | |
doc = untangle.parse('/home/gpeverill/bryden.xml') | |
# use python's handy 'for item in list' syntax to traverse the list of Assets | |
for asset in doc.root.Dealership.Assets.Asset: | |
# save the VIN cdata value to a variable and print it |
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
// ESP8266 with 20x4 i2c LCD | |
// Compatible with the Arduino IDE 1.6.4 | |
// Library https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | |
// Bavensky :3 | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> |
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
/************************ | |
Version history | |
0.99.14 - Jan 12/2016 | |
Migrate to MQTT for notifications | |
0.99.13 - Jan 7/2016 | |
Add /temperature route to just return text/plain current temperature | |
0.99.12 - Jan 2/2016 | |
Add DS18B20 for temperature sensing and reporting | |
Use SPIFFS filesystem for hosting web assets | |
0.99.11 - Dec 25/2015 |
NewerOlder