Skip to content

Commit

Permalink
Merge pull request #107 from dapplegatecp/master
Browse files Browse the repository at this point in the history
Update built_apps/README.md and delete tar.gz files
  • Loading branch information
phate999 authored Jan 2, 2024
2 parents 8dd49ba + cf50b96 commit 87d2bb8
Show file tree
Hide file tree
Showing 42 changed files with 53 additions and 112 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,21 @@ do

fi
done

# Format the README file
regex_pattern="## Sample Application Descriptions"
file_path="README.md"

cat << EOF > built_apps/README.md
These files are sample SDK Applications that are ready to use for testing and do not require modification or "building" of the app from source files.
## How to use these files: ##
Download the .tar.gz file, then upload to your NetCloud Manager account and assign to groups.
Additional documentation:
https://customer.cradlepoint.com/s/article/NetCloud-Manager-Tools-Tab#sdk_apps
----------
EOF

sed -n "/$regex_pattern/,\$p" "$file_path" >> built_apps/README.md
40 changes: 23 additions & 17 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
Expand Down Expand Up @@ -32,26 +30,34 @@ jobs:
./.github/workflows/csclient_compare.sh
shell: bash
- name: Run make build and clean
if: github.event_name == 'pull_request'
run: |
chmod +x ./.github/workflows/builds.sh
./.github/workflows/builds.sh
shell: bash
- 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 tag -a v1 -m "v1"
git push origin --tags
shell: bash
if: github.event_name == 'push'
uses: actions/github-script@v3
with:
github-token: ${{ github.token }}
script: |
github.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/built_apps"
})
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/built_apps",
sha: context.sha
})
setTimeout(() => { console.log("Done") }, 3000)
- name: Publish
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'push'
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 }}
files: 'built_apps/*.tar.gz'
tag_name: "built_apps"
token: ${{ secrets.TOKEN }}
body_path: ./built_apps/README.md
name: "Built Apps"
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This directory contains the NCOS SDK tools and sample applications.

The Application Developmers Guide is the best document to read first.
The Application Developers Guide is the best document to read first.

## Documents

Expand All @@ -13,7 +13,16 @@ The Application Developmers Guide is the best document to read first.
- **Cradlepoint NCOS SDK v3.1 Application Developers Guide.html**
- The main document that describes application development.

## Sample Application Directories
## Files

- **make.py**
- The main python tool used to build application packages and install, uninstall, start, stop, or purge from a locally connected device that is in DEV mode.
- **sdk_settings.ini**
- This is the ini file that contains the settings used by python make.py.
- **tools/**
- Contains support files for the SDK. There is also a simple python syslog server that can be used during application development.

## Sample Application Descriptions

- **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.
Expand Down Expand Up @@ -100,19 +109,6 @@ The Application Developmers Guide is the best document to read first.
- **throttle_cellular_datacap_rate_tiered**
- Upon *any* Modem interface reaching 70, 80, 90 or 100% of the monthly data capacity limit, manual QoS will be enabled globally and bandwidth throttling will be enforced on ALL Modem profiles to the configured limit as set by the rate tier (minbwup and minbwdown variables).

- **built_apps/**
- Ready to use sample apps - Download the .tar.gz file, then upload to your NetCloud Manager account and assign to groups.

- **tools/**
- Contains support files for the SDK. There is also a simple python syslog server that can be used during application development.

## Files

- **make.py**
- The main python tool used to build application packages and install, uninstall, start, stop, or purge from a locally connected device that is in DEV mode.
- **sdk_settings.ini**
- This is the ini file that contains the settings used by python make.py.

----------

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).
Expand Down
Binary file removed built_apps/5GSpeed.tar.gz
Binary file not shown.
Binary file removed built_apps/AutoInstall.tar.gz
Binary file not shown.
Binary file removed built_apps/Boot2.tar.gz
Binary file not shown.
Binary file removed built_apps/Installer_UI.tar.gz
Binary file not shown.
Binary file removed built_apps/Mobile_Site_Survey.tar.gz
Binary file not shown.
Binary file removed built_apps/OBDII_monitor.tar.gz
Binary file not shown.
81 changes: 1 addition & 80 deletions built_apps/README.md
Original file line number Diff line number Diff line change
@@ -1,80 +1 @@
# Built Apps
These files are sample SDK Applications that are ready to use for testing and do not require modification or "building" of the app from source files.

## How to use these files: ##
Download the .tar.gz file, then upload to your NetCloud Manager account and assign to groups.

Additional documentation:
https://customer.cradlepoint.com/s/article/NetCloud-Manager-Tools-Tab#sdk_apps

----------

## App Descriptions ##

- **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.
- **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**
- Provide a web interface for installers to configure WiFi and run speedtests.
- **Mobile_Site_Survey**
- Robust Site Survey app with cloud aggregating and reporting via 5g-ready.io
- **cp_shell_**
- Web interface for running linux shell commands.
- **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**
- Creates a file and uploads it to an FTP server.
- **ftp_server**
- Creates an FTP server in the device. A USB memory device is used as the FTP directory.
- **geofences**
- Send alert when entering or exiting geofences. Configure geofences in SDK app data after loading app.
- **gpio_any_wan_connected**
- Set GPIO out high when any wan (not just modems) is connected.
- **gps_probe**
- Probe the GPS hardware and log the results.
- **hello_world**
- Outputs a 'Hello World!' log every 10 seconds.
- **hspt**
- Sets up a custom Hot Spot landing page.
- **ibr1700_gnss**
- Demonstrates how to access the gyroscope and accelerometer data on the IBR1700
- **ibr1700_obdII**
- Demonstrates how to access OBD-II PIDs on the IBR1700
- **logfile**
- Writes router logs to flash available for download via HTTP/NCM LAN Manager port 8000.
- **mosquitto**
- Demonstrates launching embedded mosquitto server
- **mqtt_app**
- Demonstrated MQTT using the paho library
- **mqtt_azure_client**
- Sample Application which uses SDK to send sensor data to Microsoft Azure IoT Central.
- **mqtt_azure_tls**
- Sample Application which uses SDK to send sensor data to Microsoft Azure IoT Central over TLS connection.
- **OBDII_monitor**
- Monitor OBD-II values, put latest values in asset_id, and alert on conditions defined in SDK AppData.
- **ping_sample**
- Contains ping function and example usage.
- **ports_status**
- Sets the device description to visually show the LAN/WAN/WWAN/Modem/IP Verify status
- **python_module_list**
- This app will log the python version and modules in the device. It is intended to help with app development to show the python environment within the device.
- **send_to_server**
- Gets the '/status' from the device config store and send it to a test server.
- **simple_custom_dashboard**
- Creates a simple dashboard using HTML and JS. Note that any 'server function' requires the router firewall to be correctly changed to allow client access to the router.
- **simple_web_server**
- A simple web server to receive messages. Note that any 'server function' requires the router firewall to be correctly changed to allow client access to the router.
- **system_monitor**
- Get various system diagnostics, alert on thresholds, and put current status in asset_id field.
- **tornado_sample**
- A webserver using Tornado with NCM-themed example to set WiFi SSIDs.


----------

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).

NOTWITHSTANDING ANY PROVISION CONTAINED IN THE TSLA, CRADLEPOINT DOES NOT WARRANT THAT THE SOFTWARE OR ANY FUNCTION CONTAINED THEREIN WILL MEET CUSTOMER’S REQUIREMENTS, BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE SOFTWARE IS PROVIDED “AS-IS,” WITHOUT ANY WARRANTIES OF ANY KIND. ANY USE OF THE SOFTWARE IS DONE AT CUSTOMER’S SOLE RISK AND CUSTOMER WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE, LOSS OR EXPENSE INCURRED AS A RESULT OF OR ARISING OUT OF CUSTOMER’S USE OF THE SOFTWARE. CRADLEPOINT MAKES NO OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THE SOFTWARE. CRADLEPOINT SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT.

Copyright © 2018 Cradlepoint, Inc. All rights reserved.
You can find the already compiled sample applications under the Github releases tab: https://github.com/cradlepoint/sdk-samples/releases/tag/built_apps
Binary file removed built_apps/app_template_csclient.tar.gz
Binary file not shown.
Binary file removed built_apps/cli_sample.tar.gz
Binary file not shown.
Binary file removed built_apps/cp_shell.tar.gz
Binary file not shown.
Binary file removed built_apps/cpu_usage.tar.gz
Binary file not shown.
Binary file removed built_apps/ftp_client.tar.gz
Binary file not shown.
Binary file removed built_apps/ftp_server.tar.gz
Binary file not shown.
Binary file removed built_apps/geofences.tar.gz
Binary file not shown.
Binary file removed built_apps/gpio_any_wan_connected.tar.gz
Binary file not shown.
Binary file removed built_apps/gps_probe.tar.gz
Binary file not shown.
Binary file removed built_apps/hello_world.tar.gz
Binary file not shown.
Binary file removed built_apps/hspt.tar.gz
Binary file not shown.
Binary file removed built_apps/ibr1700_gnss.tar.gz
Binary file not shown.
Binary file removed built_apps/ibr1700_obdII.tar.gz
Binary file not shown.
Binary file removed built_apps/ipverify_custom_action.tar.gz
Binary file not shown.
Binary file removed built_apps/logfile.tar.gz
Binary file not shown.
Binary file removed built_apps/mosquitto.tar.gz
Binary file not shown.
Binary file removed built_apps/mqtt_app.tar.gz
Binary file not shown.
Binary file removed built_apps/mqtt_azure_client.tar.gz
Binary file not shown.
Binary file removed built_apps/mqtt_azure_tls.tar.gz
Binary file not shown.
Binary file removed built_apps/ping_sample.tar.gz
Binary file not shown.
Binary file removed built_apps/ports_status.tar.gz
Binary file not shown.
Binary file removed built_apps/python_module_list.tar.gz
Binary file not shown.
Binary file removed built_apps/send_to_server.tar.gz
Binary file not shown.
Binary file removed built_apps/serial_temp.tar.gz
Binary file not shown.
Binary file removed built_apps/serial_vibration_test.tar.gz
Binary file not shown.
Binary file removed built_apps/shell_sample.tar.gz
Binary file not shown.
Binary file removed built_apps/simple_custom_dashboard.tar.gz
Binary file not shown.
Binary file removed built_apps/simple_web_server.tar.gz
Binary file not shown.
Binary file removed built_apps/system_monitor.tar.gz
Binary file not shown.
Binary file removed built_apps/throttle_cellular_datacap.tar.gz
Binary file not shown.
Binary file not shown.
Binary file removed built_apps/tornado_sample.tar.gz
Binary file not shown.

0 comments on commit 87d2bb8

Please sign in to comment.