Skip to content

Commit

Permalink
Merge pull request #87 from dapplegatecp/master
Browse files Browse the repository at this point in the history
Dynamic App - download sdk apps from remote URL, overcome size limits and dev mode restrictions
  • Loading branch information
phate999 authored Dec 20, 2023
2 parents cb63969 + be3d9bf commit 4fbb5d3
Show file tree
Hide file tree
Showing 12 changed files with 811 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
Expand Down Expand Up @@ -35,13 +37,21 @@ jobs:
chmod +x ./.github/workflows/builds.sh
./.github/workflows/builds.sh
shell: bash
- name: Run make build and clean and commit newly built apps to github
if: github.event_name != 'pull_request'
- name: Tag
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/v')
run: |
git config --global user.name 'Github actions auto build packages'
git config --global user.email 'Github_actions_auto_build_packages@users.noreply.github.com'
chmod +x ./.github/workflows/builds.sh
./.github/workflows/builds.sh
git add built_apps/*
git commit -m "Rebuilt apps"
git push
git tag -a v1 -m "v1"
git push origin --tags
shell: bash
- name: Publish
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
# TODO: if any of the build step fails, the release should be deleted.
with:
files: 'built_apps/*'
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ The Application Developmers Guide is the best document to read first.

- **5GSpeed**
- Run Ookla speedtests via NCM API. Results are put in asset_id field (configurable in SDK Data). Clearing the results starts a new test. This can be done easily via NCM API v2 /routers/ endpoint.
- **app_template_csclient**
- A template for the creation of a new application utilizing the csclient library.
- **app_holder**
- Just a holder for dynamic_app. See dynamic_app.
- **Autoinstall**
- Automatically choose fastest SIM on install. On bootup, AutoInstall detects SIMs, and ensures (clones) they have unique WAN profiles for prioritization. Then the app collects diagnostics and runs Ookla speedtests on each SIM. Then the app prioritizes the SIMs WAN Profiles by TCP download speed. Results are written to the log, set as the description field, and sent as a custom alert. The app can be manually triggered again by clearing out the description field in NCM.
- **Installer_UI**
Expand All @@ -31,6 +35,8 @@ The Application Developmers Guide is the best document to read first.
- Includes csterm module that enables access to local CLI to send commands and return output.
- **ipverify_custom_action**
- Create a custom action in a function to be called when an IPverify test status changes.
- **dynamic_app**
- Downloads apps from a self hosted url and install into app_holder app. Overcome limitates with dev_mode and app size limits.
- **cpu_usage**
- Gets cpu and memory usage information from the router every 30 seconds and writes a csv file to a usb stick formatted in fat32.
- **ftp_client**
Expand Down
14 changes: 14 additions & 0 deletions app_holder/package.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[app_holder]
uuid = 35ac6371-e78d-4016-a45b-42f639ca0c11
vendor = Cradlepoint
notes = App is dynamically populated, this is just a placeholder
version_major = 1
version_minor = 0
version_patch = 3
auto_start = true
restart = true
reboot = true
firmware_major = 7
firmware_minor = 23
firmware_patch = 20

2 changes: 2 additions & 0 deletions app_holder/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This app is just a holder app for use with dynamic_app. Simply build and install both apps and upload to NCM.
see dynamic_app/readme.txt for more details
2 changes: 2 additions & 0 deletions app_holder/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
cd app && ./start.sh
Loading

0 comments on commit 4fbb5d3

Please sign in to comment.