How to automatically download TV Shows using bit torrent

This ones a pretty quick post just to go over the basics.

Steps involved:

1. Install uTorrent

You can download utorrent from www.utorrent.com

Simply download and install like any other app.  Be careful not to install the bloatware that comes with it (There’s tick boxes during the install.

2. Configure RSS Feeds for TV Shows

There are a few feeds you can add.  The two main ones are:

To add these to utorrent – Right click on feeds on the left hand side and in the box displayed paste in one of the above links and press ok.  You can repeat this step a number of times to add both or more if you find them.

3. Right click on feeds on the left and select update feed.

4. Once the list of shows currently in the list populates, right click on a favorite and select add to favorites.  This will then present another dialogue box where you can fine tune some settings.  Typically changing the show name to remove the release group is a good idea and replacing spaces with question marks works as well as an asterisk at the end of the show name.  for example NCIS LA S01E01 would change to NCIS?LA*

After about a week of monitoring the feed you will have a list of favorites and your tv shows will become a set and forget type of affair.

As always, any questions, feel free to ask.

Cheers

Getting NCID working on every device possible

So this weekend I decided it was time to resurrect some of the old caller-id scripts I used to utilise.  Previously I had used YAC as my caller-id server and listener on a windows pc, and used a python script on XBMC to display the caller ID on the old xboxes I used as media centres.Due to the latest version of XBMC (EDEN) the older scripts no longer function.  The next problem is I no longer use a windows machine anywhere near a telephone point.  There is however a linux server running right next to a telephone point I could hook an old external modem to and utilise that way.

After some research online, I found there was a package called NCID (network caller-id) that would happily monitor the responses from a serial modem and broadcast the caller-id information around my network.

In the interest of squeezing every last bit of usage from my new iPhone I also decided I needed to be able to send CID info to my phone via something like growl etc.

So now that we know all that, the software want list looks like this:

  • Ubuntu Linux Box
  • Windows YAC listener
  • Some kind of push notification app for the iPhone
  • NCID client for OSX so we can see the popup info on our Macbook
  • A python script to install on the Apple TV’s I have replaced old xboxes with.

So for the Ubuntu linux box – That’s already setup and working as an sql server for sharing the media database between multiple xbmc clients

  • We also need a serial modem that supports Caller-ID AT Commands.. Just so happens I have a netcomm roadster (Used to be US Robotics)

Windows YAC client is easy.  We simply download the package from: http://sunflowerhead.com/software/yac/

Push notifications to the iPhone was a little more complex.  Originally I was going to use Prowl and have the ubuntu box push the information out using that.  However being a “thrifty” fellow (RE: TIGHTARSE) I decided to use boxcar as my app of choice.  For those that don’t know, boxcar is used to push a number of different notifications to your iPhone via push messaging.  Things like twitter updates, Facebook, and all sorts of other services.  The beauty of box car is you can setup your own “Service” using their API and have custom icons etc assigned to that service.  Otherwise you can simply do it with your own username and password, and skip the pretty icons.  Boxcar will interpret your messages as Growl notifications and still display them on your iPhone.  You can read more about boxcar and get the app from: http://boxcar.io/

Finally a way to push the information to XBMC running on any platform.  xbmc now ships with a command called “xbmc-send” which can be used to send JSON-RPC commands to XBMC clients on your network.  Rather than re-invent the wheel I decided to use this as a way to popup the notification box that displays the CID information.  On the main AppleTV i’ve also used that same command to pause the video on an incoming call.

So lets finally get down to business.

Windows Setup

Download the Yac client from the above listed website, and install it on your windows machine.

Once install head over to your start menu and run the Yac Listener application.

At this point, if you right click and drag the listener app from the yac item of your start menu into the startup item, the listener will run each time windows start up and you’re logged in.

Ubuntu Server Setup

First we need to download the ncid package.  For me, this wasn’t already available from the repo’s I had setup, so i had to setup repos using the following commands:

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu precise-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'

once thats done we run:

sudo apt-get update
sudo apt-get install ncid

This will install both the ncid Server and the ncid-client which we will need to send info to xbmc and to our iPhone.

The next step is to configure NCID to actually utilise the modem.

next we enter:

sudo nano /etc/ncid/ncidd.conf

Search (CTRL+W) for the line that states:

# Set noserial = 1

and change it to

Set noserial = 0

Save the file (CTRL+O) and then exit nano (CTRL+X)

Now we need to edit the ncidmodules.conf file to send cid info to our yac listeners

sudo nano /etc/ncid/ncidmodules.conf

Search for YACLIST=”127.0.0.1″ and change it to the ip address of your windows computer.  IE: YACLIST=”192.168.0.XXX”

Save and close this file as we’re now done with it.

Next we need to create a script that will handle the notifications for us.  I decided to add all my custom notifiers into the one file, however you could launch separate processes for each notification (Now that I think of it, I’ll try that next :D)

sudo nano /etc/ncid/ncid-prowl

Copy and paste the following in as your script

# !/bin/sh
 # ncid-prowl output module
 # Modify as needed for new module
 # kiip "ncid-" in the name
 # input is 5 lines obtained from ncid
 # input: DATEnTIMEnNUMBERnNAMEnLINEn #
 # input is 5 lines if a message was sent
 # input: nnnMESSAGEnn
 # Message will be in $CIDNAME#
 # ncid usage:
 # ncid --nogui [--message] --program ncid-prowl

ConfigDir=/etc/ncid
 ConfigFile=$ConfigDir/ncidmodules.conf

[-f $ConfigFile ] && .$ConfigFile

read CIDDATE
 read CIDTIME
 read CIDNMBR
 read CIDNAME
 read CIDLINE

# Test to see if the number has an alias assigned to it - or if ncid is unaware who owns this number
 # If there is an alias assigned - push this value to the T1 variable, otherwise set T1 to the number of the incomming call

if [ "$CIDNAME" = "NO NAME" ];
 then T1=$CIDNMBR
 else T1=$CIDNAME
 fi

##############################
 # Send notifications to XBMC #
 ##############################

# Send notification without pausing currently playing item - Uncomment if you dont want a pause
 # xbmc-send --host=IPOFXMBC -a "Notification(Incomming Call,Call From $T1)"

# Send noticiation and PAUSE the currently playing item - Comment if you dont want a pause
 xbmc-send --host=IPOFXBMC -a "Pause"
 xbmc-send --host=IPOFXBMC -a "Notification(Incomming Call,Call From $T1)"

###############################
 # Send noticiations to boxcar #
 ###############################

# Replace UN with your boxcar username(email address)
 # Replace PA with your boxcar password

/usr/bin/curl -d "notification[from_screen_name]=Incoming Call" -d "notification[message]=Call From: $T1" -user "un:pa" <a href="https://boxcar.io/notifications">https://boxcar.io/notifications</a>

exit 0

Save and close nano with this new script

next we make it executable

sudo chmod +x /etc/ncid/ncid-prowl

Now that we’ve got all that setup we need to set the ncid client and the ncidd daemon to start on startup

sudo update-rc.d ncidd defaults

now to create a scrip that will start ncid and push the notifications to our ncid-prowl script.

sudo nano /etc/init.d/start-ncid.sh
#!/bin/bash

ncid --no-gui --program /etc/ncid/ncid-prowl &

Save and close the script

now we need to make it executable

sudo chmod +x /etc/init.d/start-ncid.sh[/code[

then add it to the default startup items

sudo update-rc.d start-ncid.sh defaults

reboot the box with

sudo shutdown -r now

and on reboot your caller id should be working without a problem

if you want to have peoples names appear instead of simply their numbers (For known callers) simply edit the file /etc/ncid/ncidd.alias file and follow the comments in the file.

Mac Setup

To have the notifications sent to your mac download and install a program called NCIDPop.  Don't bother turning on growl notifications as they don't work with the latest version of growl.

So after all that.. you finally have NCID setup and sending Caller-ID info to as many devices as possible. And all for free 😀

Enjoy!

UPDATE: After mucking around with this some more, I decided to go ahead and split the xbmc and boxcar notifications into different scripts.

The advantage of this is that now my iphone is alerted at almost the exact same time as xbmc.  So in the interest of speed I created a second script.  All thats required is to copy the entire ncid-prowl script and edit it a little to remove the xbmc notification part.  We do the same for ncid-prowl by removing the boxcar part

sudo cp /etc/ncid/ncid-prowl /etc/ncid/ncid-boxcar
sudo nano /etc/ncid/ncid-prowl

Delete the lines related to boxcar notifications then close and save this file

sudo nano /etc/ncid/ncid-boxcar

Delete the lines related to xbmc notifications, then close and save this file.

Make the ncid-boxcar script executable (I think it already is as we copied it, however just in case)

sudo chmod +x /etc/ncid/ncid-boxcar

next we need to update the /etc/init.d/start-ncid.sh script file to run a second instance of ncid.  From the documentation it's stated we can run as many instances of ncid as we like/require so we simply add another line to enable our boxcar script

sudo nano /etc/init.d/start-ncid.sh

add the following line under the first line that starts our xbmc script:

ncid --no-gui --program /etc/ncid/ncid-boxcar &

close and save this file and kill any running ncid processes

sudo ps -aux |grep ncid

once you identify the process ID for the running ncid issue

sudo kill -9 PROCESSNUMBER

then run

sudo /etc/init.d/start-ncid.sh

And enjoy your multiple instant alerts.

Next I'll look at integrating this into the main ncidd script.  Its already doing it for ncid-yac so I dont see why it can't run our scripts as well.

ENJOY!

UPDATE 18/04/12:

For those that want to do the same thing without the linux box and using windows to send to their xbmc machines (Thats any box running a current version of xbmc from Dharma up)

  1. Download and install YAC Server from http://sunflowerhead.com/software/yac/yac-0.16-win32.zip
  2. Once thats installed download this file: http://www.endpoint.eclipse.co.uk/wordpress/yac-0.17-win32.zip
  3. Extract that zip file to the same folder as your YAC installation and overwrite any files.  I pulled this file from here: http://mattcollinge.wordpress.com/2007/05/18/spoken-caller-id-using-yac/
  4. Download and install WGET into C:\windows\system32 or anywhere else in your command path.   http://gnuwin32.sourceforge.net/packages/wget.htm
  5. Edit the Yac-helper.cmd file to the following:
@echo off
02  
03 rem  ----------------------------------------------------------
04 rem  Matt Collinge :: http://www.mattcollinge.co.uk :: 17 April 2007
05 rem  ----------------------------------------------------------
06 rem  Helper Script for YAC 0.17. When present in the same 
07 rem  folder as "yac.exe" this will be run each time a call is 
08 rem  received. The type of data being passed through 
09 rem  in %2 &amp; %3 is specified in %1. 
10 rem  
11 rem    %1 = ( call | message )
12 rem    %2 = either the calling number or text-based message
13 rem    %3 = the calling name (not set for a text-based message)
14 rem  ----------------------------------------------------------
15  
16 rem This next line simply passes the parameters on to a piece of VBScript. But you can
17 rem modify this line to call any app you like :)
18  

Edit line 19's username/password to match what you have setup in xbmc, and ensure you enable all the options in xbmc network services.  Not only will this help this script to work, but lets you do some pretty funky stuff with your xbmc machine 😀

You can also use the same principal to adapt the boxcar notification stuff into windows as well.

I haven't been able to test this script as I dont have a windows machine thats running yac server.  Give it a go and if it doesn't work I'm happy to take suggestions that do make it work.

There is another solution to this though:  http://forum.xbmc.org/showthread.php?tid=105931 There they edit the .vbs script and make changes in there to get things happening.  In saying that, I don't see the point to do this when the solution is so elegantly simple

So there you have it, a linux and windows solution.  AND YES YOU CAN DO IT ON A MAC.. you'd use NCID and automater.

Sichtschutz, Screen Protection For Your Windows Desktop

Sometimes you may want to hide what is showing on your desktop, for instance if you notice that someone is going to walk by or approach you in office. You probably would not like your boss to find out that you are playing games during work hours, or your wife that you are shopping at the expensive jewelry store for a gift for her upcoming birthday.

While simply turning off the monitor hides the contents of the desktop, it is at the same time a dead giveaway that you are hiding something.

The portable application Sichtschutz offers an alternative. Sichtschutz, which means screen protection in this context, offers boss-key like functionality. It can quickly display an image on the screen that overshadows the actual computer desktop with its open windows and programs.

sichtschutz

You need to select an image from your local system on first start. You can alternatively press the print key on the keyboard to use a snapshot of the desktop as the image that is shown when the program is activated.

This can be handy as it makes the screen look like the standard desktop when in fact it may be not. Just take a screenshot with programs open that do not cause suspicion.

The configuration menu lists additional settings to set the image alignment to stretch, center or tile, to mute sounds and to automatically log off when the screen protection is triggered.

A click on Start hides the program from the taskbar and system tray, and enables the triggers to display or remove the screen protection.

The default key to trigger the protection is F12, the key to return to the previous state is F11.

The only indication that Sichtschutz is running is the process which is visible in the task manager.

Sichtschutz is fully compatible with dual-monitor systems. You can download the portable software from the developer homepage. The program requires the Microsoft .NET Framework 2.0.


© Martin Brinkmann for gHacks Technology News | Latest Tech News, Software And Tutorials, 2011. | Permalink | Add to del.icio.us, digg, facebook, reddit, twitter
Post tags: , , ,

[From Sichtschutz, Screen Protection For Your Windows Desktop]

IpswDownloader, Download Apple Firmware

New Firmware often adds new functionality and improvement to devices. Firmware is recorded on computer chips and therefor an integral part of the device. The best known firmware is probably the bios of a computer’s motherboard.

Apple releases regular firmware updates for their devices, which often add new functionality and improvements like a better performance or battery life. Firmware updates may on the other hand invalidate jailbreaks or tools used to jailbreak devices. In rare circumstances, they remove features from a device.

Firmware downloads are usually offered on Apple’s official support website. The site is a big mess to navigate, and the best option is to filter downloads by product to quickly find out if a new firmware is available.

A better solution is the free program IpswDownloader which is available for Windows and Macintosh computer systems. Ipsw is the file extension that Apple firmwares are provided in. The free tool offers firmware information and downloads for a variety of Apple devices. Supported devices include the iPhone 4G, iPad 1G and 2G or the Apple TV 2G.

apple firmware downloader

Each supported device is selectable from a pulldown list in the application interface. Next to the device pulldown menu is a second menu that lists all available firmwares for the device.
Each Firmware is listed with its version and a code.

The main interface displays additional information about the selected firmware. This includes its total file size, which jailbreak tool is available to jailbreak it and whether it is possible to unlock it. The tools that are mentioned are not linked, which means that users who want to jailbreak their Apple device need to find the program on their own to do so. The device firmwares are large files, usually between 200 and 700 Megabytes in size.

The question that remains is this: Do you really need a tool to download the firmware? It simplifies the process greatly. You only need to run it to download the latest firmware, and provided that the developers maintain a list of available firmwares that is all you need to do.
The jailbreak information are handy for users who jailbreak their devices. Security conscious users on the other hand may prefer to download the files directly from an official Apple website instead.

IpswDownloader is available for Windows and Mac at the developer’s website.


© Martin Brinkmann for gHacks Technology News | Latest Tech News, Software And Tutorials, 2011. | Permalink | Add to del.icio.us, digg, facebook, reddit, twitter
Post tags: , , , ,

[From IpswDownloader, Download Apple Firmware]

The ride on mower

So the back paddock needs a mow. What’s a bloke to do. Considering I mowed the first half of the land here with your standard lawn mower, my knee was killing me at the end of it all.

Borrowed a ride on from a mate of mine.. OMFG!!!! what on earth was I ever thinking to not have one earlier. I look around and the yards to the left of me are no bigger than my last place, yet the people who own them all have a ride-on. Turns out… I’M THE MUG!