A boilerplate for getting up and running with Kodi (v18.2 Git:20190428-a94ccc8ba5) open source home theatre on your balena-enabled Raspberry Pi.
Also the nessary things are installed to watch amazon prime movies and series. For this you need an amazon prime account !
Moreover it should be relatively easy to extend this repository so that it also supports netflix (for this have a look at https://www.makeuseof.com/tag/netflix-amazon-video-plex-raspberry-pi/ )
Set these environment variables in the application's dashboard on balena.
Set this in the Fleet or Device Configuration panel.
Name | Value |
---|---|
RESIN_HOST_CONFIG_gpu_mem | 160 |
Set these in the Fleet or Device Configuration panel.
Name | Value |
---|---|
RESIN_SUPERVISOR_DELTA | 1 |
RESIN_HOST_CONFIG_disable_splash | 1 |
RESIN_HOST_CONFIG_disable_overscan | 1 |
Set this in the Device Service Variables panel.
Name | Value |
---|---|
ENABLE_REMOTE_CONTROL_VIA_ADVANCEDSETTINGS | 1 |
Settings this environment variable will put the file advancedsettings.xml
in the folder /root/.kodi/userdata
.
This will enable the web interface as specified in https://kodi.wiki/view/Web_interface so you can control Kodi via http://<IP_address>:8080 or using a Kodi Remote app.
Set this in the Fleet or Device Configuration panel.
Name | Value |
---|---|
RESIN_HOST_CONFIG_dtoverlay | hifiberry-dac |
Set this in the Device Service Variables panel.
Name | Value |
---|---|
PHAT_DAC | 1 |
In order to assure that the raspberry pi is able to properly play videos you must enable Allow hardware acceleration - OMXPlayer from the Settings > Player Settings menu.
Below instructions are based on section "Install and Configure Amazon Video on Raspberry Pi" of https://www.makeuseof.com/tag/netflix-amazon-video-plex-raspberry-pi/
Note that you don't need to download repository.sandmann79.plugins-1.0.2.zip
. This file is already downloaded. It can be found in the root folder (= \
)!
Within Kodi:
Add-ons
=> Enteradd-on browser
Install from zip file
- Most likely you will get a message telling that for security reasons it is not allowed to install from zip file. In that case select
Settings
and then checkUnknown sources
and thenyes
and then go back. Now you should see the menuinstall from zip file
. - select
root file system
and then selectrepository.sandmann79.plugins-1.0.2.zip
(which is directly located in root folder) - browse back, select again
enter add-on browser
and this time selectInstall from repository
and selectsSandmann79s Repository
. - go to
Video Add-ons
, selectAmazon VOD
(version 0.7.4) and click oninstall
and selectok
. - Reboot kodi (I did it using the kodi menu but most likely restarting kodi service through balenaCloud dashboard is sufficient.
- Then from
Add-ons
selectAmazon VOD
. You should now see theSettings - Amazon VOD
screen - In
General
tab check thatPlayback with
is set toInput Stream
if not change it. - In
connection
tab selectsignin
and enter your amazon login and password. If you have enabled 2 factor authentication you should also enter the code has been sent to you. - If you then play for the first time an Amazon VOD video, follow all instructions to install the necesarry chrome plugin.
For more information about the Amazon VOD
add-on see the faq and its github repository
Àllow hardware accellaration - OMXplayer
must be disabled otherwise you get green screen when playing movies (see playing an amazon prime video shows green screen #1)- on a pi the max video resolution is apparently 720p - you can change the video resolution when playing a movie. See also My video is choppy / My video stutters a lot.
I noticed that searching for Amazon movies and series is very slow in kodi (I think this is also covered in issue 304). It is much faster to search those Amazon movies and series from a PC/laptop at site primevideo and add them to your watch list. In kodi you can then open your watch list and launch the movies and series from there.
Copyright 2016 Rulemotion Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.