Skip to content

Instantly share code, notes, and snippets.

@yanniks
yanniks / kodiupdate-firetv.php
Created October 26, 2014 17:03
Update Kodi on your Fire TV to latest nightly automatically
#! /usr/bin/env php
<?php
// Set ARM or x86
$arch = "arm";
// IP adress of Fire TV
$ip = "10.0.0.229";
// Timezone
$timezone = "Europe/Berlin";
function getxbmc($currv,$date,$arch,$ip) {
@yanniks
yanniks / install.sh
Last active August 29, 2015 14:06
Install XBMC nightly update script
#! /usr/bin/env bash
export homedir=$PWD
cd /usr/bin
sudo curl -O https://gist.githubusercontent.com/yanniks/fa9ce00c19a6fb74ea0a/raw/kodiupdate.php
sudo mv kodiupdate.php kodiupdate
sudo chmod +x kodiupdate
echo Installation complete!
cd $homedir
@yanniks
yanniks / kodiupdate.php
Last active August 29, 2015 14:06
Get newest Kodi nightly - Mac specific
#! /usr/bin/env php
<?php
$timezone = "Europe/Berlin";
function getxbmc($currv,$date) {
$left = strstr($currv,"kodi-".$date);
echo "Selected build: ".$date."\n\n";
$filename = substr($left,0,strpos($left,".dmg")).".dmg";
if(file_exists($filename)) {
unlink($filename);