Setting up Xiaomi Yi Small Ants Intelligent Camera (Home IP Camera)

0 comments

I love this little device already, but it's a bitch to set up because of the language barrier + no clear English instructions oh how to get started.

For those wondering it's this device on the left, not the Xiaomi Yi Go-Pro style camera on the right.

http://www.xiaoyi.com/images/c-17.jpg               http://www.ibuygou.com/images/upfilepic2015/201532103838827.jpg

Downloads

I went through the trouble of finding the APKs and saving them online for future use so you don't have to. But if you're anything like me and don't trust random downloads, then here are the links to the official sources.

Setting up the camera

Before starting, make sure the camera is OFF until needed.

  • Download and install the "yicamera" APK onto your phone.
  • Log in with your Xiaomi account (or one of the various other accounts supported). If you don't have one, sign up via the app or the "Register" button on http://en.miui.com.
  • (optional) Update to the newer version of the app. At time of writing, I'm running v1.6.0 (20150512)
  • Swipe right until you see an orange button on the bottom.

Screenshot_2015-05-20-23-19-47

  • Click on the top-right (+) button to add a camera
  • "Power on camera, wait until orange light flashes" means turn on the camera and wait until the orange light flashes.
  • Wait until the light was flashing orange, then pressed "Have heard the voice prompts" when you hear something in Chinese. If it flashes blue, reset the camera with a pin at the back. If you need help finding the reset button, click "Cannot hear the voice prompts".
  • "Camera needs Wi-Fi to connect" is asking for a WiFi password that your camera should connect to.
  • Enter it in and click next.
  • The app will scan and do stuff while the camera talks to you in Chinese.
  • Once you're on WiFi, the blue light will stop flashing.
  • Let it keep scanning. Once the camera is detected, click "Connect".

Screenshot_2015-05-20-23-27-15

  • You should now be able to use your IP camera!

coeUe
... for all sorts of security monitoring!

"Binding timeout, please reset" error? Update your firmware

If you get "binding timeout please reset" error then you'll need to update the firmware on the camera itself.

You can do this by using the Xiaomi Home app. The Android version isn't in English (for Android), but below are some intructions on how to get by.

  • Start it and leave it ticked, click the button on the right.
  • Click on the (+) button on the top-right to add a device.
  • Click on the second one (which should look like a webcam, or Wheatley from Portal)

Screenshot_2015-05-21-00-13-08  http://images5.fanpop.com/image/photos/30100000/Wheatley-portal-2-30105366-300-300.gif

  • Click the button on the right.
  • Enter in your Xiaomi account details.
  • Click on the little thing on the right of the camera icon (if there is one).
  • When it's gone, you can click on the camera item and you should be able to see out of it.

Screenshot_2015-05-21-00-15-58
As seen from the Xiaomi Home app

  • Ensure you have a micro-SD card slotted into the back of the camera.
  • Click on the 3 dots on the top-right and select the third menu item.

Screenshot_2015-05-21-19-33-55

  • Tell it to download the new firmware by pressing the green button. It'll download for a moment, but it's quick.
  • Press the green button again so the camera installs the new firmware. It'll automatically restart and blink orange, go solid orange and then blink blue.
  • Reset the camera with a pin and go through the setup process again.

You should now be able to access it without any problems. Here's what it should look like from the Xiaomi Yi Camera app.

Screenshot_2015-05-21-19-46-21  Screenshot_2015-05-21-19-43-16

Sources

Kodi / XBMC / uTorrent / EventGhost / TheRenamer: Automatically renaming downloads for Kodi consumption

0 comments

Kodi expects your files to be organised in a certain way if you want it to be displayed correctly. This isn't a big ask, but most people are incapable or lazy, so it'd be nice if it could be done automatically.

At the moment this handles movies and TV shows just fine, but anime renaming is a whole different can of worms.

This method relies on a particular setup, but your setup is similar then it'll work for you. If your setup is similar, then you can easily adapt it.

Basic process

  • When files are added to uTorrent, categorise them with a label (movie, TV show, anime, etc)
  • uTorrent completes a download and moves it your "completed" folder but also appends the label. (eg. C:\Downloads\Movies\)
  • EventGhost monitors the labelled folders for media files and copies them off to a temporary folder (so you can continue seeding)
  • When the file has finished copying to the temporary folder, EventGhost will start TheRenamer to rename and move the files to it's final resting place
  • Next time Kodi starts, it'll scan and detect the new files

For the time being, anime is copied to a temporary folder but no renaming is done.

Downloads

Setting up your computer

You'll need 3 sets of folders, one for completed downloads and one for temporary downloads.

For example:

  • C:\Downloads\Movies
  • C:\Downloads\TV Shows
  • C:\Downloads\Anime
  • C:\XBMC-prepare\Movies
  • C:\XBMC-prepare\TV Shows
  • C:\XBMC-prepare\Anime
  • C:\XBMC\Movies
  • C:\XBMC\TV Shows
  • C:\XBMC\Anime

Ensure these are ready before continuing.

Setting up uTorrent

  • Options > Preferences
  • Under "Directories", ensure that you set the "Move completed downloads to:" to a specific folder
image
  • On older uTorrent clients, you'll have to check "Append the torrent's label to the directory name" as well
  • (optional) Under Advanced > UI Extras, fill in the persistent labels "Anime|Movies|TV Shows" so you don't run into inconsistent label names

Setting up EventGhost

image

To the right is an image of the setup you should replicate in EventGhost.

Preparation

  • Click "Add plugin" in the toolbar
  • Select Other > Directory Watcher
  • Select the folder "C:\Downloads\TV Shows" and tick "Watch subdirectories too"
  • Do this again for Movies and Anime
  • Now under Autostart, you should have "Plugin: Directory Watcher" "Autostart" #2 and #3 (note this for naming for events)
  • Select "Configuration Tree" at the top
  • Click the "Add macro..." button in the toolbar
  • Select "Event Ghost > Python Script"
  • Paste in the following content:

 

This part took the longest because of the finicky nature of events and the EventGhost UI. A few people have contributed to the original script by Pako, but many of the solutions had flaws which made it unworkable for larger files (longer copy times). After months of trial, I've figured out the ideal script to handle most use cases without problems.

Note: Make sure the variables at the top of the script are correct for YOUR setup

    • ALLOWED_TYPES
    • DESTINATION_FOLDER
    • THE_RENAMER

 

  • When done, rename the new macro to "Copy Video Files"

 

For each media type (Movies, TV Shows, Anime)

  • Select "Configuration Tree" at the top
  • Click the "Add macro..." button in the toolbar
  • When asked to choose an event to add, select "EventGhost > Python Command" (not Python Script!)
  • For the statement, enter in: mediaType = "Movies" (or "TV Shows", "Anime" etc)
  • Select the macro and rename it to "Copy Movies" (because the default is just silly)
  • Now right click your macro and select "Add event"
  • Type in "DirectoryWatcher.Created" and click ok (Note: For Movies or Anime, use DirectoryWatcher2 or DirectoryWatcher3 accordingly depending on the order you created the plugins)
  • Now right click your macro and select "Add action"
  • Change "If" to "Always"
  • Select "EventGhost > Jump" and select "Copy Video Files"
  • Repeat these steps for TV Shows and Anime if needed

Phew, that's it for EventGhost!

Setting up TheRenamer

Last piece of the puzzle is quite a useful tool. However, the UI isn't the most intuitive so I'll have to guide you through that part. I forgot which mode TheRenamer starts in, but you can switch between "TV Shows" and "Movies" modes by clicking on the middle of the screen as highlighted.

Settings for the current mode is always in the top-right corner.

image

TV Shows

For TV shows, set it up as shown. This configuration makes it very easy for XBMC to parse your content when organised as "C:\XBMC\TV Shows\Show Name\Season 01\Show Name S01E02.avi".

image

The important parts are:

  • Renamed format: s1e01 ticked
  • Fetch folder
  • TV shows archive (destination folder)
  • Moving File Structure: TV Show Folder ticked

Movies

For movies, it's much simpler. All you really need is "Movie Name (Year)" and it'd be enough to scrape correctly.

image

The important parts are:

  • Fetch folder
  • Movies archive (destination folder)
  • Auto move
  • The brackets around the year format

Kodi / XBMC scanning

Whenever Kodi starts up it should scan for new media files. I forgot if this was enabled by default or not, but it's definitely something I would consider setting up after all this.

20DQV7U
Automation, it's a beautiful thing... when it works.

Sources

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog