Skip to content

Commit f9c2778

Browse files
committed
Provide some installation notes and a helper script. Resolves #6.
1 parent b2d92ae commit f9c2778

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,23 @@ Warning: This app is a legacy program meant for older Samsung Smart TVs running
55
You may also wish to try a web browser with Jellyfin, wherever possible.
66

77
This is a fork of the original jellyfin-samsungtv repo which is now archived. If you own an older samsung TV as I do you probably wanted a more updated app. Feel free to use and start issues and pull requests. However, I am not the original developer of this app so I maynot be able to provide the best help.
8+
9+
## Installation
10+
11+
Install the app using your own web server's IP and the appropriate instructions
12+
for your model year TV. Look [here](https://emby.media/community/index.php?/topic/9869-samsung-orsay-smarttv-2011-2015-community-app-install-instructions/&/topic/9869-samsung-smart-tv-app-install-instructions/?p=277346)
13+
for general instructions.
14+
15+
These instructions explain how to prepare the files to be uploaded. It is also
16+
possible to load the files using a USB stick; these notes don't cover that
17+
process.
18+
19+
1. Edit the supplied `package.sh` script to set your own IP address and
20+
document root. The script assumes a modern Linux (Ubuntu) setup; you may
21+
need to make other adjustments to suit your environment.
22+
1. Run the script. It will:
23+
24+
1. Create a ZIP file and an XML file that points to it.
25+
2. Copy the file to your web server's document root.
26+
3. Run the `netcat` command to listen for debug messages emitted when
27+
the application is loaded.

package.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
#
3+
# Create .zip file anme .xml file needed for upload.
4+
#
5+
set -o errexit
6+
set -o pipefail
7+
set -o nounset
8+
typeset -r infomsg=%%$(basename $0)-info:
9+
typeset -r errmsg=%%$(basename $0)-err:
10+
11+
CONFIG=config.xml
12+
NAME=$(grep '<widgetname' $CONFIG | sed 's/>/</g' | cut -d\< -f3)
13+
VERSION=$(grep '<ver' $CONFIG | sed 's/>/</g' | cut -d\< -f3)
14+
DESCRIPTION=$(grep '<description' $CONFIG | sed 's/>/</g' | cut -d\< -f3)
15+
ZIP=${NAME}_${VERSION}_Europe_$(date +"%Y%m%d").zip
16+
WIDGETLIST=widgetlist.xml
17+
#
18+
# TODO: modifythese values to suit your web server.
19+
#
20+
WEBSERVER_ADDR=192.168.1.108
21+
WEBSERVER_ROOT=/var/www/html/
22+
#
23+
# Create files.
24+
#
25+
echo $infomsg Creating $ZIP $WIDGETLIST
26+
zip -q -r $ZIP app config.xml icon images index.html Main.css widget.info
27+
SIZE=$(stat --format="%s" $ZIP)
28+
cat > $WIDGETLIST <<EOF
29+
<rsp stat="ok">
30+
<list>
31+
<widget id="$NAME">
32+
<title>$NAME</title>
33+
<compression type="zip" size="$SIZE"/>
34+
<description>$DESCRIPTION</description>
35+
<download>http://$WEBSERVER_ADDR/$ZIP</download>
36+
</widget>
37+
</list>
38+
</rsp>
39+
EOF
40+
#
41+
# Copy files to server, and wait for debug messages.
42+
#
43+
echo $infomsg Deploy files to webserver
44+
sudo cp $ZIP $WIDGETLIST $WEBSERVER_ROOT
45+
#
46+
# Copy files to server, and wait for debug messages.
47+
#
48+
echo $infomsg Display debug messages when app is loaded
49+
nc -l 45634
50+

0 commit comments

Comments
 (0)