Skip to content

Commit 924561c

Browse files
committed
2 parents ea4e235 + 9955abd commit 924561c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# OpenFrame-NodeClient
2+
A simple OpenFrame CLIENT prototype written in Node.
3+
4+
This minimal client sets up a websocket connection with a specified username and displays a browser window into which images can be pushed. The idea is that this runs on a dedicated Raspberry Pi, and displays the images full screen using chromium in kiosk mode.
5+
6+
7+
### Setup
8+
9+
#### Dependencies
10+
11+
Make sure you have Node.js installed.
12+
13+
On Linux, install chromium. For the Raspberry Pi running Debian:
14+
15+
```bash
16+
$ sudo apt-get install chromium
17+
```
18+
You can also use Chromium on the mac if you want -- download the Chromium app and put it in your Applications directory. Then you can use the `-c` flag to start the app in Chromium (it will open in kiosk mode on a new desktop).
19+
20+
#### Installation
21+
22+
From the command line, clone this repo and cd into the root of the project.
23+
24+
```bash
25+
$ git clone https://github.com/jmwohl/OpenFrame-NodeClient.git
26+
$ cd OpenFrame-NodeClient
27+
```
28+
29+
Install the npm dependencies.
30+
31+
```bash
32+
$ npm install
33+
```
34+
35+
You should now be able to run the client (see Usage).
36+
37+
38+
### Usage
39+
40+
```bash
41+
$ node frame.js -u username [-d domain] [-c]
42+
```
43+
44+
As an example, to start up the frame for user jonwohl, with a server at www.openframe.io:
45+
46+
```bash
47+
$ node frame.js -u jonwohl -d www.openframe.io
48+
```
49+
50+
The presence of the `-c` flag will force the system to try to open the frame using Chromium instead of whatever the default browser is. At present, on linux Chromium is a required dependency, and will always be used.
51+

0 commit comments

Comments
 (0)