Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" ?>
<!DOCTYPE service-group SYSTEM 'avahi-service.dtd'>
<service-group>
<name replace-wildcards="yes">AirPrint HLL2300D @ %h</name>
<service>
<type>_ipp._tcp</type>
<subtype>_universal._sub._ipp._tcp</subtype>
<port>631</port>
<txt-record>txtvers=1</txt-record>
<txt-record>qtotal=1</txt-record>
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
@ghostbitmeta
ghostbitmeta / default.sitemap
Last active August 29, 2015 14:25
openHAB Harmony Hub
Text item=Harmony_Activity label="Current Activity"
@ghostbitmeta
ghostbitmeta / echo.php
Last active December 1, 2015 04:02
Amazon Echo PHP file to control Honeywell Thermostat through a python script
<?php
//https://www.ourace.com/145-amazon-echo-alexa-with-php-hello-world
$EchoJArray = json_decode(file_get_contents('php://input'));
$RequestType = $EchoJArray->request->type;
$JsonOut = GetJsonMessageResponse($RequestType,$EchoJArray);
$size = strlen($JsonOut);
header('Content-Type: application/json');
@ghostbitmeta
ghostbitmeta / therm.py
Last active August 17, 2024 15:18
Python script to control Honeywell Thermostat's through My Total Connect
#!/usr/bin/python
# By Brad Goodman
# http://www.bradgoodman.com/
# [email protected]
####################### Fill in settings below #######################
USERNAME="[email protected]"
PASSWORD="your_total_comfort_password"
@ghostbitmeta
ghostbitmeta / interface.php
Created June 25, 2015 00:37
PHP Interface for IFTTT Maker
<?php
$TOKEN = "INSERT_RANDOM_TOKEN_HERE";
# Capture JSON content
$input=json_decode(file_get_contents('php://input'), true);
# Check if correct TOKEN passed or else redirect to Google
if($input['token'] != $TOKEN) {
header('Location: http://www.google.com/');
@ghostbitmeta
ghostbitmeta / lircd.conf
Created June 7, 2015 19:44
LIRC configuration for the Hoover Air Purifier 600
#
# To find out how to get a proper configuration file please read:
#
# /usr/share/doc/lirc/README.Debian
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"
begin remote
name hoover
bits 16
@ghostbitmeta
ghostbitmeta / air_purifier.sh
Last active January 1, 2018 19:38
Bash script to control an air purifier through LIRC
#!/bin/bash
if [ $1 == "on" ] || [ $1 == "off" ]; then
irsend SEND_ONCE hoover "KEY_POWER"
exit
fi
DIR="Home_Automation"
ON_FILE="air_purifier_on.txt"
OFF_FILE="air_purifier_off.txt"
@ghostbitmeta
ghostbitmeta / pushbullet.php
Created May 30, 2015 00:17
Synology + Pushbullet
<?php
// Used code from the following sources:
// https://gist.github.com/styxit/e34d4c6f8cb23d55f5af#file-synology-pushover-php
// http://pastebin.com/iHAFAHGq
// Thanks to: https://styxit.com/2014/05/10/synology-pushover.html
// Only allow request made by localhost?