zilexa / autosetup-VERO4K_RPi

Automatically installs and configures a RPi device running OSMC or Debian to get a "Netflix-like" experience.
19 stars 6 forks source link

20/05/2020 UPDATE: I will not update this again. I sold my Vero4K as it wasn't that stable and updates did not improve. Also none of the promises of the developer (couple years ago) came through. Switching to an nVidia ShieldTV 2019 (tube model) was the best choice ever: rock-stable, much better picture quality (best upscaling available to consumers). Also moved away from Kodi, I now use Jellyfin only: https://github.com/zilexa/Homeserver

autosetup

Automatically installs and configures a Vero 4K or RasberryPi device running OSMC or Debian to get a "Netflix-like" experience! It uses OSMC with Kodi for playback. No streaming addons are being used.

For the system to know what series and movies you want to watch, you need a free account on trakt.tv. Go to trakt.tv, create an account, go to your profile, create a list called "TVshows". Now search the tvshows you like to watch and add them to the "TVshows" list. For movies, Search movies and add them to your "watchlist" (not to your TVshows list).

VERY IMPORTANT: you need to mark the seasons or episodes you have already seen as "watched". Otherwise the system will think you want every season of every series (for example, NCIS has 14 seasons.. you might have seen season 1-12 already and the first episodes of season 13). This is probably a lot of work. I have used the app "Nachos" in the Google Play Store to do this, it's a lot easier. Took me half an hour which is more work than the steps below to install everything.

Requirements:

MAKE SURE YOU FOLLOW OSMC INSTALLATION INSTRUCTIONS FIRST: https://osmc.tv/download/

PREPARE your device:

  1. On first boot, follow the install wizard on your TV. Use your remote or the Yatse app on your phone (recommended! Find it in Play Store).
  2. Go to MyOSMC > Apps and install Transmission.
  3. Go to MyOSMC > Services, enable SSH and Cron.
  4. Go back to the homescreen, find Settings and select System Information. Find the "IP Address" and write it down. For example 192.168.1.1

Get a laptop and LOGIN TO YOUR DEVICE VIA SSH:

  1. Get the tool Putty and open it.
  2. Enter your device IP address like this: osmc@192.168.1.1 and select SSH. Now hit connect.
  3. Enter the default password (osmc) and hit enter.
  4. Change the password by typing: passwd and hit enter.

USE AUTOSETUP.SH:

  1. Download autosetup.sh by copy pasting this command (you can paste by simply right-clicking in the black Putty window): wget https://rawgit.com/zilexa/autosetup/master/autosetup.sh
  2. See the FEATURES and REQUIRED USER-SPECIFIC SETTINGS below. Edit the file to select the features you need and fill in the required details. Run this command to edit the file: nano autosetup.sh (save the file with CTRL+O, exit the editor with CTRL+X)
  3. Now run the script, without sudo(!): bash autosetup.sh
  4. A lot will happen now, just leave it be. When it's done, all that's left is for you to authorize the device to access your trakt account. This process will be triggered, just follow the instructions: go to trakt.tv/activate and fill in the temporary password. If you are too late, you can trigger this process yourself by running the following command: /home/osmc/flexget/bin/flexget trakt auth yourtraktusername
  5. Now you can enable Flexget with this command: /home/osmc/flexget/bin/flexget daemon start
  6. Flexget is active but will run most tasks between 2AM and 8AM. but you can start it immediately by running: /home/osmc/flexget/bin/flexget execute --now

Make sure you go through the features, by default everything except OpenVPN, SyncThing and Spotify are selected. If you don't need those, leave it. Do go through all user-specific settings, you need change them correctly.

.

FEATURES (1 = will be installed, 0= will be skipped):

NOTE: every application installed will show up in MyOSMC > Apps. You can start/stop the apps from there using your TV remote.

DynamicDNS=1

Schedules your Dynamic DNS update URL to be called every 4 hrs.

Transmission=1

Configures Transmission, the tool that will actually download stuff. Needs to be installed first via MyOSMC!

FlexGet=1

This is the magic and complex tool that will check your Trakt account, find series, season packs, episodes and movies, get them for you in the right quality, organise them neatly on your USB drive and triggers Kodi to scan all files. Setting this to 1 will install Flexget and required components and it will install this Flexget config https://github.com/zilexa/flexget_config

Spotify=0

Installs Spotify Connect (Premium users only). This allows you to use Spotify on your phone/pc but playback on this device!

OpenVPN=0

Simply installs OpenVPN, nothing else. I would like to configure it in such a way, Flexget & Transmission will always run via VPN, all other things will have direct access to the internet. But this is too complex so it just installs OpenVPN. You can configure it yourself.

SyncThing=0

installs SyncThing, nothing else. Nothing will be configured. Handy as personal cloud to sync your phones photos to your device or autobackup documents. https://syncthing.net/.

AddMediaToKodi=1

the folders containing your media will be added as library sources. You can do this in Kodi but now you don't have to, just run a library scan.

DisableLEDS=1

Disables the annoying blinking leds on the RPI3 and also the powerled on the RPI2 (powerled of RPI3 cannot be disabled).

.

REQUIRED USER-SPECIFIC SETTINGS

Location of your connected USB drive. Connect it to your laptop to figure out it's name. Make sure you create the following folders: TVshows, Movies, Music, Pictures. The first two are required and case sensitive! Example: My harddrive label when I connect it to a Windows laptop shows in My Computer as "MyDrive". MyDrive contains the mentioned folders.

DYNDNS url

Want to access files/see download progress or manually download when not at home? you can create a nice domain (like zilexa.funstuff.com) otherwise you need to know your IP address given by your ISP. Go to https://freedns.afraid.org/, register for free and go to the DynamicDNS. Create a nice domain name and then get the url by electing 'cron example'.

TRAKT username

For the system to know what series and movies you want to watch, you need a free account on trakt.tv. Go to trakt.tv, create an account, go to your profile, create a list called "TVshows". Now search the tvshows you like to watch and add them to the "TVshows" list. Search for movies and add them to the "watchlist".

TRANSMISSION personal user and password:

By default user/password is osmc/osmc. That's not very safe. Fill in a desired user/password. This will then be set for you.

SPOTIFY CONNECT

Your device will show up in the Spotify app when you are connected to your home network. You can playback music on the device! Fill in your Spotify Premium username and password and choose a name for your device. This is how the device will appear on your phone or tablets Spotify app.