NewEllijayTV/README.md

113 lines
3.7 KiB
Markdown
Raw Normal View History

<!--
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
SPDX-License-Identifier: MIT
-->
2022-09-23 01:05:02 +00:00
# New EllijayTV - A Roku Channel for Ellijay
<img src="images/splash-screen_SD.png"/>
2022-09-20 22:01:24 +00:00
This is a Roku “channel” that allows you to watch videos hosted on New Ellijay TV on your TV.
## Have Questions?
See the [FAQ page](FAQ.md).
## Getting Started
2022-09-20 22:01:24 +00:00
If you simply wish to use the channel, add the [private channel code NEWLIJTV](https://my.roku.com/add/NEWLIJTV) to your Roku account.
If you wish to help improve the channel, follow the developer steps below to install the app on your personal Roku device.
### Developer Mode
Put your Roku device in [developer mode](https://blog.roku.com/developer/2016/02/04/developer-setup-guide). Write down your Roku device IP and the password you created, you will need these later.
### Clone the GitHub Repo
Navigate to where you'd like to install the app then copy the application files:
```bash
2022-09-20 22:01:24 +00:00
git clone https://fileshare.ellijaymakerspace.org/code/DIY-Media/NewEllijayTV
```
Open up the new folder:
```bash
2022-09-20 22:01:24 +00:00
cd NewEllijayTV
```
### Install Necessary Packages
```bash
sudo apt-get install wget make
```
### Login Details
Run this command - replacing the IP and password with your Roku device IP and dev password from the first step:
```bash
export ROKU_DEV_TARGET=192.168.1.234
export ROKU_DEV_PASSWORD=password
```
Normally you would have to open up your browser and upload a .zip file containing the app code. These commands enable the app to be zipped up and installed on the Roku automatically which is essential for developers and makes it easy to upgrade in the future for users.
### Deploy
Package up the application, send it to your Roku, and launch the channel:
```bash
make install
```
2022-09-20 22:01:24 +00:00
Note: You only have to run this command once if you are not a developer. The New Ellijay TV channel will still be installed after rebooting your Roku device.
### Bug/Crash Reports
2022-09-20 22:01:24 +00:00
Did the app crash? Find a nasty bug? Use the this command to view the error log and [report it to the developers]
```bash
telnet ${ROKU_DEV_TARGET} 8085
```
To exit telnet: `CTRL + ]` and then type `quit + ENTER`
### Upgrade
Navigate to the folder where you installed the app then upgrade the code to the latest version:
```bash
git pull
```
Deploy the app:
```bash
make install
```
## Developer Setup
Read below and also checkout the [Development Guide For New Devs](DEVGUIDE.md)
### Workflow
Modify code -> `make install` -> Use Roku remote to test changes -> `telnet ${ROKU_DEV_TARGET} 8085` -> `CTRL + ]` -> `quit + ENTER`
Unfortunately there is no debugger. You will need to use telnet to see log statements, warnings, and error reports. You won't always need to telnet into your device but the workflow above is typical when you are new to Brightscript or are working on tricky code.
## Improving PeerVue for Roku
### Internationalization
All display strings used in this channel are from localized string files in JSON format. A complete set of string definitions is contained in locale/default/strings.json See the [Roku documentation](https://developer.roku.com/docs/developer-program/core-concepts/localization.md) for information about how localization is supported by the Roku device. In the case of PeerVue, creating or updating an appropriate locale/language/strings.json file where "language" is the Roku code for the language and country combination.
Pull requests for language additions or corrections will be greatly appreciated.
### Customization
The resources/config.json file contains number of configuration items. This includes the definitions of the queries used to display the default content. See the [PeerTube API documentation](https://docs.joinpeertube.org/api-rest-reference.html) details on the queries used.