2019-01-30 05:10:51 +00:00
|
|
|
# Jellyfin app for Roku
|
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
**This app is not complete!**
|
2019-01-30 05:10:51 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
Currently, the data stored on your Roku device are server name, server port,
|
2019-03-20 02:42:37 +00:00
|
|
|
user id, and some user preferences like movie sort order.
|
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
The format that is used to save those settings could change at any time and
|
|
|
|
your data could be lost and you'd have to re-enter it.
|
2019-03-20 02:42:37 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
## Getting Started
|
2019-01-30 05:10:51 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
Follow the steps below or checkout the [Development Guide For New Devs](DEVGUIDE.md)
|
2019-01-30 05:10:51 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
### Developer Mode
|
|
|
|
|
|
|
|
Put your Roku device in [developer mode](https://blog.roku.com/developer/2016/02/04/developer-setup-guide)
|
|
|
|
|
|
|
|
### Clone the GitHub Repo
|
|
|
|
|
|
|
|
Open a terminal and navigate to where you would like to install the app then run the commands below:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
https://github.com/jellyfin/jellyfin-roku.git
|
|
|
|
cd jellyfin-roku
|
2019-01-30 05:10:51 +00:00
|
|
|
```
|
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
This will copy all of the application files to a new folder and then change directories
|
|
|
|
|
|
|
|
### Login Details
|
2019-02-11 04:49:22 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
Run the commands below - Replacing the IP and password (using the info from the first step)
|
2019-03-05 16:29:45 +00:00
|
|
|
|
2019-05-02 17:45:07 +00:00
|
|
|
```bash
|
|
|
|
export ROKU_DEV_TARGET=192.168.1.234
|
|
|
|
export ROKU_DEV_PASSWORD=aaaa
|
|
|
|
```
|
2019-03-05 16:29:45 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
This will allow you to test your code without having to manually upload a .zip file every time
|
|
|
|
|
|
|
|
### Download Images
|
|
|
|
|
|
|
|
Install these packages:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo apt-get install imagemagick wget make nodejs npm
|
|
|
|
```
|
|
|
|
|
|
|
|
Then run this script to download the images from the jellyfin-ux repo:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sh make_images.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
### Deploy
|
|
|
|
|
|
|
|
Run this:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
This packages up the application, sends it to your Roku, and launches the channel.
|
2019-03-05 16:29:45 +00:00
|
|
|
|
2019-05-02 17:45:07 +00:00
|
|
|
### Testing
|
2019-10-04 04:27:53 +00:00
|
|
|
|
2019-09-09 03:02:09 +00:00
|
|
|
Testing is done with the [Rooibos](https://github.com/georgejecook/rooibos/) library.
|
2019-10-04 04:27:53 +00:00
|
|
|
|
2019-05-03 12:52:46 +00:00
|
|
|
This works by including the tests in the deployment and then looking at telnet
|
2019-10-04 04:27:53 +00:00
|
|
|
for the test results. To use the testing library you need to install [rooibos-cli](https://github.com/georgejecook/rooibos-cli):
|
|
|
|
|
|
|
|
Run this in the root app directory:
|
2019-05-02 17:45:07 +00:00
|
|
|
|
2019-05-03 12:52:46 +00:00
|
|
|
```bash
|
2019-10-04 04:27:53 +00:00
|
|
|
npm install -g rooibos-cli
|
2019-05-03 12:52:46 +00:00
|
|
|
```
|
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
To deploy the application with tests:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make test
|
|
|
|
```
|
2019-05-02 17:45:07 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
To see test results and crash reports:
|
2019-05-02 17:45:07 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
```bash
|
|
|
|
telnet ${ROKU_DEV_TARGET} 8085
|
|
|
|
```
|
2019-09-09 03:02:09 +00:00
|
|
|
|
2019-10-04 04:27:53 +00:00
|
|
|
To exit telnet: `CTRL + ]` and then type `quit + ENTER`
|