This file contains hidden or 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
# Home Assistant sensor plugin for Technicolor TG799vac modem | |
# Modem has been modified with https://github.com/davidjb/technicolor-tg799vac-hacks | |
# May work with other similar modems | |
# Based on the work of Matt Johnston with https://github.com/mkj/tgiistat | |
# htpc-helper (c) 2018 | |
# MIT license, see bottom of file | |
from datetime import timedelta |
This file contains hidden or 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 | |
# Configure inputs | |
INPUT_FOLDER='/media' | |
DELETE_ORIGINALS=false #set to true to delete original files | |
# Set $IFS variable to handle files whitespace in name | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") |
This file contains hidden or 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
from objc_util import ObjCClass | |
import clipboard | |
LSApplicationWorkspace = ObjCClass('LSApplicationWorkspace') | |
workspace = LSApplicationWorkspace.defaultWorkspace() | |
appInfo = workspace.allApplications() | |
appTxt = '' | |
for app in appInfo: | |
if str(app.applicationType()) == 'User': | |
if len(appTxt) != 0: |
This file contains hidden or 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 | |
import urllib2, json | |
class TVHeadend: | |
def __init__(self, host, port): | |
self.url = 'http://' + host + ':' + port | |
def GetRunning(self): | |
url = '/api/dvr/entry/grid_upcoming' |