0.3.1 • Published 1 year ago

car-detector-connect v0.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Edge Cloud Connector CarDetector Connect

Electron based project using Angular and Node JS that builds into a Windows application for device discovery and internet connection sharing.

App Desciption

The application is capable of listing VLPs provisioned with the ECC Provisioning App on the local network. In addition, when connecting a VLP to the device running the application with an ethernet cable, the application will automatically detect the device and share internet (listing it as well). The application will also differentiate between CD6.5 and CD7 devices (this is determined by the applianceSubtype in the provisioning app) by showing a button labeled ‘Open CarDetector’ on CD7 devices.

How to Use

In order to utilize the internet sharing feature, an existing internet connection is required as well as connecting the device running the application through ethernet to a device running the Edge-Cloud-Connector OS.

  1. Start the Application, through an executable or through the development instructions below.
  2. The application will automatically list provisioned devices connected on the same network, differentiating between CD6.5 and CD7 devices.
  3. If there is a valid internet connection source and an ECC OS Device is connected through ethernet, Internet Connection Sharing (ICS) will be established. Once established, devices connected through ICS will also be listed.
  4. Devices running CD7 will have a button labeled "Open Car Detector" which will open the CD7 Web Interface within a new application window (pending development).

Config

To use MSI packages and components from libraries like Cobalt

  1. configure the local .npmrc for your project
  2. Since new way of resolving npm packages is not supported, if error is displayed on npm install run npm install --legacy-peer-deps

Install Angular

Install Angular and node dependencies:

  • run npm i -g @angular/cli@latest

Setup

Install Node Modules:

npm install --legacy-peer-deps

Development

NOTE: The application must be run as an administrator in order to use the internet sharing features 1. npm run build builds angular frontend web content to ./frontend/dist 1. npm run serve serves the angular frontend at localhost:4200 1. npm start runs the electron application locally