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
<?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 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
# 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 |
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
Text item=Harmony_Activity label="Current Activity" |
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
<?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'); |
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/python | |
# By Brad Goodman | |
# http://www.bradgoodman.com/ | |
# [email protected] | |
####################### Fill in settings below ####################### | |
USERNAME="[email protected]" | |
PASSWORD="your_total_comfort_password" |
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
<?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/'); |
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
# | |
# 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 |
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
#!/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" |
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
<?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? |