Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions cp-mario/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# cp-mario
This project runs the jgaudu/cp-mario container which runs the game "Infinite Mario Bros" in a web interface on port 8080.
No background music (sorry). Use arrow keys for left and right, 'A' and 'S' for run and jump.

> ARM64 only

![image](https://user-images.githubusercontent.com/7169690/227016810-4c7c2f26-7bb5-4604-915c-c1220d17ad28.png)

## Setup:
- Edit your Cradlepoint router configuration and navigate to System > Containers > Projects and click Add.
- Give your project a name ("CP-Mario") and click on the Compose tab.
- Paste the following YAML into the compose tab of your project and click save:

```yaml
version: '2.4'
services:
cp-mario:
image: jgaudu/cp-mario
restart: unless-stopped
ports:
- 8080:8080
```

![image](https://user-images.githubusercontent.com/7169690/227014750-f1e48eaa-6e8e-408b-9e0f-f94ddecc928e.png)

## Usage:

#### NCM:
- Use NCM Remote Connect LAN Manager to create a profile for "CP-Mario" at 127.0.0.1 port 8080 protocol HTTP.
- Connect to the "CP-Mario" profile you created.

#### Local:
- In the routers Zone Firewall, forward the PrimaryLAN Zone to the Router with DefaultAllowAll policy.
- Browse to the IP address of your router, port 8080 (e.g. http://192.168.0.1:8080)

## Docker Hub:
https://hub.docker.com/r/jgaudu/cp-mario
40 changes: 40 additions & 0 deletions speedtest-tracker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# speedtest-tracker
This project runs the henrywhitaker3/speedtest-tracker:dev-arm container which runs a speedtest every hour and graphs the results. The back-end is written in Laravel and the front-end uses React. It uses Ookla's Speedtest cli to get the data and uses Chart.js to plot the results.

![image](https://user-images.githubusercontent.com/127797701/226963907-80ee2aae-f1d5-499b-9b84-ba0f6d8c8559.png)

## Setup:
- Edit your Cradlepoint router configuration and navigate to System > Containers > Projects and click Add.
- Give your project a name ("Speedtest-Tracker") and click on the Compose tab.
- Paste the following YAML into the compose tab of your project and click save:

```yaml
version: '2.4'
services:
speedtest:
image: henrywhitaker3/speedtest-tracker:dev-arm
ports:
- 8000:80
volumes:
- data:/config
environment:
- OOKLA_EULA_GDPR=true
restart: unless-stopped
volumes:
data:
driver: local
```

![image](https://user-images.githubusercontent.com/127797701/226963581-e4f081b3-865b-486e-8064-1d13828b6106.png)

## Usage:
- Use NCM Remote Connect LAN Manager to create a profile for "Speedtest-Tracker" at 127.0.0.1 port 8000 protocol HTTP.
- Connect to the "Speedtest-Tracker" profile you created.

or

- In the routers Zone Firewall, forward the PrimaryLAN Zone to the Router with DefaultAllowAll policy.
- Browse to the IP address of your router, port 8000 (e.g. http://192.168.0.1:8000)

## Docker Hub:
https://hub.docker.com/r/henrywhitaker3/speedtest-tracker
2 changes: 2 additions & 0 deletions web-video-player/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx:latest
COPY . /usr/share/nginx/html/
27 changes: 27 additions & 0 deletions web-video-player/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<head>
<link href="https://vjs.zencdn.net/7.20.3/video-js.css" rel="stylesheet" />
</head>

<body>
<video
id="demo-video"
class="video-js"
controls
preload="auto"
width="1280"
height="720"
poster="thumbnail.png"
data-setup="{}"
>
<source src="video.mp4" type="video/mp4" />
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a
web browser that
<a href="https://videojs.com/html5-video-support/" target="_blank"
>supports HTML5 video</a
>
</p>
</video>

<script src="https://vjs.zencdn.net/7.20.3/video.min.js"></script>
</body>
42 changes: 42 additions & 0 deletions web-video-player/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# web-video-player

### Purpose:
NGINX webserver with index.html serving embedded video using javascript library.

![image](https://user-images.githubusercontent.com/7169690/221065573-005d6b62-7788-49ff-91b4-9ef174bae7fc.png)

### Build:
1. Put your video in the folder and name it video.mp4 (or edit index.html and change the video source filename)
2. Put your thumbnail image in the folder and name it thumbnail.png - this is displayed before the video is played
3. Build the image and push to your docker repo:

```
docker login
docker buildx build --platform linux/arm64,linux/arm/v7 -t docker-username/repo-name --push .
```

### Setup Container:
Create a new container project on your Cradlepoint router and enter the following into the project compose tab:

```yaml
version: '2.4'
services:
video:
image: 'docker-username/repo-name'
restart: unless-stopped
ports:
- 8000:80
```

### Watch video:
#### From Netcloud Manager:
- Use Remote Connect LAN Manager to connect to 127.0.0.1 port 8000 HTTP.

#### Locally:
- In the zone firewall, forward the PrimaryLAN zone to the RouterZone with DefaultAllowAll policy.
- Open a browser and navigate to your router IP address port 8000.
Example:
http://192.168.0.1:8000

### Docker homepage:
https://hub.docker.com/r/cpcontainer/web-video-player
Binary file added web-video-player/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web-video-player/video.mp4
Binary file not shown.