Skip to content

Instantly share code, notes, and snippets.

ghostbitmeta

Block or report user

Report or block ghostbitmeta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AirPrint-HLL2300D.service
<?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>
View avahi-daemon.conf
# 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 Aug 29, 2015
openHAB Harmony Hub
View default.sitemap
Text item=Harmony_Activity label="Current Activity"
@ghostbitmeta
ghostbitmeta / echo.php
Last active Dec 1, 2015
Amazon Echo PHP file to control Honeywell Thermostat through a python script
View echo.php
<?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 Jun 11, 2019
Python script to control Honeywell Thermostat's through My Total Connect
View therm.py
#!/usr/bin/python
# By Brad Goodman
# http://www.bradgoodman.com/
# brad@bradgoodman.com
####################### Fill in settings below #######################
USERNAME="your@emailaddress.com"
PASSWORD="your_total_comfort_password"
@ghostbitmeta
ghostbitmeta / interface.php
Created Jun 25, 2015
PHP Interface for IFTTT Maker
View interface.php
<?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 Jun 7, 2015
LIRC configuration for the Hoover Air Purifier 600
View lircd.conf
#
# 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 Jan 1, 2018
Bash script to control an air purifier through LIRC
View air_purifier.sh
#!/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
Synology + Pushbullet
View pushbullet.php
<?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?
You can’t perform that action at this time.