Skip to content

Commit

Permalink
Merge pull request #12 from gordonturner/develop
Browse files Browse the repository at this point in the history
Preparing 4.2
  • Loading branch information
gordonturner authored Jun 20, 2018
2 parents 4ca9eae + 47caaec commit 9c37fe9
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 47 deletions.
24 changes: 12 additions & 12 deletions README Demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Software Versions
- OS, tested with the following distributions:
Raspbian Stretch April 18th 2018 (2018-04-18-raspbian-stretch.zip)

- NodeJS version: 10.3.0
- NodeJS version: 10.4.1

- cec-client tested:
libCEC version: 4.0.2
Expand All @@ -31,7 +31,7 @@ sudo apt-get autoremove -y
Install Node and Npm
--------------------

- Download the latest LTS version of node
- Download the latest version of node
- There are different downloads for the different versions of Raspberry Pi
- To download the right one, run the following:

Expand All @@ -52,9 +52,9 @@ https://nodejs.org/dist/latest/
- For example, download armv6l, install and restart:

```
wget https://nodejs.org/dist/latest/node-v10.3.0-linux-armv6l.tar.xz
tar -vxf node-v10.3.0-linux-armv6l.tar.xz
cd node-v10.3.0-linux-armv6l
wget https://nodejs.org/dist/latest/node-v10.4.1-linux-armv6l.tar.xz
tar -vxf node-v10.4.1-linux-armv6l.tar.xz
cd node-v10.4.1-linux-armv6l
sudo cp -R * /usr/local/
sudo reboot
```
Expand All @@ -65,7 +65,7 @@ sudo reboot
node -v
```
```
v10.3.0
v10.4.1
```


Expand Down Expand Up @@ -102,38 +102,38 @@ Download and Run
https://github.com/gordonturner/stupid-remote/releases/latest

```
wget https://github.com/gordonturner/stupid-remote/archive/4.0.tar.gz
wget https://github.com/gordonturner/stupid-remote/archive/4.2.tar.gz
```

- Uncompress the download:

```
tar -zvxf 4.0.tar.gz
tar -zvxf 4.2.tar.gz
```

- From the root of the project, update npm and start:

```
cd stupid-remote-4.0
cd stupid-remote-4.2
npm install
node ./bin/www
```

- Or run with DEBUG on:

```
cd stupid-remote-4.0
cd stupid-remote-4.2
DEBUG=* node ./bin/www
```

- web ui:

http://HOSTNAME:8080/
http://HOSTNAME:8181/


- swagger:

http://HOSTNAME:8080/api-docs/
http://HOSTNAME:8181/api-docs/


Customization
Expand Down
33 changes: 10 additions & 23 deletions README Install OSMC.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Software Versions
- OS, tested with the following distributions:
Open Source Media Center running Kodi 17.6 (OSMC_TGT_rbp1_20180502.img.gz)

- NodeJS version: 10.3.0
- NodeJS version: 10.4.1

- cec-client tested:
libCEC version: 4.0.2
Expand Down Expand Up @@ -41,7 +41,7 @@ Install Node and Npm
sudo apt-get install build-essential xz-utils
```

- Download the latest LTS version of node
- Download the latest version of node
- There are different downloads for the different versions of Raspberry Pi
- To download the right one, run the following:

Expand All @@ -62,9 +62,9 @@ https://nodejs.org/dist/latest/
- For example, download armv6l, install and restart:

```
wget https://nodejs.org/dist/latest/node-v10.3.0-linux-armv6l.tar.xz
tar -vxf node-v10.3.0-linux-armv6l.tar.xz
cd node-v10.3.0-linux-armv6l
wget https://nodejs.org/dist/latest/node-v10.4.1-linux-armv6l.tar.xz
tar -vxf node-v10.4.1-linux-armv6l.tar.xz
cd node-v10.4.1-linux-armv6l
sudo cp -R * /usr/local/
sudo reboot
```
Expand All @@ -75,7 +75,7 @@ sudo reboot
node -v
```
```
v10.3.0
v10.4.1
```


Expand Down Expand Up @@ -114,40 +114,27 @@ Install stupid-remote
https://github.com/gordonturner/stupid-remote/releases/latest

```
wget https://github.com/gordonturner/stupid-remote/archive/4.0.tar.gz
wget https://github.com/gordonturner/stupid-remote/archive/4.2.tar.gz
```

- Uncompress the download:

```
tar -zvxf 4.0.tar.gz
tar -zvxf 4.2.tar.gz
```

- From the root of the project, update npm:

```
cd stupid-remote-4.0
cd stupid-remote-4.2
npm install
```

- NOTE: OSMC web interface defaults to 8080, so you will have to change the port for stupid-remote:

```
sudo vi ./bin/www
```
```
...
/* CHANGED */
/* var port = normalizePort(process.env.PORT || '8080'); */
var port = normalizePort(process.env.PORT || '8081');
...
```

- Rename and copy `stupid-remote` folder to `/opt`:

```
cd ..
mv ./stupid-remote-4.0 ./stupid-remote
mv ./stupid-remote-4.2 ./stupid-remote
sudo cp -R ./stupid-remote /opt
```

Expand Down
20 changes: 10 additions & 10 deletions README Install Raspbian.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Software Versions
- OS, tested with the following distributions:
Raspbian Stretch April 18th 2018 (2018-04-18-raspbian-stretch.zip)

- NodeJS version: 10.3.0
- NodeJS version: 10.4.1

- cec-client tested:
libCEC version: 4.0.2
Expand All @@ -31,7 +31,7 @@ sudo apt-get autoremove -y
Install Node and Npm
--------------------

- Download the latest LTS version of node
- Download the latest version of node
- There are different downloads for the different versions of Raspberry Pi
- To download the right one, run the following:

Expand All @@ -52,9 +52,9 @@ https://nodejs.org/dist/latest/
- For example, download armv6l, install and restart:

```
wget https://nodejs.org/dist/latest/node-v10.3.0-linux-armv6l.tar.xz
tar -vxf node-v10.3.0-linux-armv6l.tar.xz
cd node-v10.3.0-linux-armv6l
wget https://nodejs.org/dist/latest/node-v10.4.1-linux-armv6l.tar.xz
tar -vxf node-v10.4.1-linux-armv6l.tar.xz
cd node-v10.4.1-linux-armv6l
sudo cp -R * /usr/local/
sudo reboot
```
Expand All @@ -65,7 +65,7 @@ sudo reboot
node -v
```
```
v10.3.0
v10.4.1
```


Expand Down Expand Up @@ -112,27 +112,27 @@ Install stupid-remote
https://github.com/gordonturner/stupid-remote/releases/latest

```
wget https://github.com/gordonturner/stupid-remote/archive/4.0.tar.gz
wget https://github.com/gordonturner/stupid-remote/archive/4.2.tar.gz
```

- Uncompress the download:

```
tar -zvxf 4.0.tar.gz
tar -zvxf 4.2.tar.gz
```

- From the root of the project, update npm:

```
cd stupid-remote-4.0
cd stupid-remote-4.2
npm install
```

- Rename and copy `stupid-remote` folder to `/opt`:

```
cd ..
mv ./stupid-remote-4.0 ./stupid-remote
mv ./stupid-remote-4.2 ./stupid-remote
sudo cp -R ./stupid-remote /opt
```

Expand Down
2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var http = require('http');
* Get port from environment and store in Express.
*/

var port = normalizePort(process.env.PORT || '8080');
var port = normalizePort(process.env.PORT || '8181');
app.set('port', port);

/**
Expand Down
2 changes: 1 addition & 1 deletion public/api-docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
} else {
<!-- CHANGED -->
<!-- url = "http://petstore.swagger.io/v2/swagger.json"; -->
url = "http://localhost:8080/swagger/swagger.json";
url = "http://localhost:8181/swagger/swagger.json";
}

hljs.configure({
Expand Down

0 comments on commit 9c37fe9

Please sign in to comment.