-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SM-826: move all configuration to configuration files (#73)
- added embedded configuration - used shared dimo library for parsing yaml files - switch dev devices to connect directly to emqx - fixed scan-vin command
- Loading branch information
1 parent
a0d25ba
commit a706c07
Showing
14 changed files
with
338 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,7 @@ Change the template on the device to "no loggers" id 117. | |
|
||
### Deploying binary to device | ||
|
||
- build binary use command at beginning - targeting linux: `GOARCH=arm GOOS=linux go build -ldflags="-s -w -X 'main.Version=v1.0.0'" -o edge-network && upx edge-network` | ||
- build binary use command at beginning - targeting linux: `GOARCH=arm GOOS=linux go build -ldflags="-s -w -X 'main.Version=v1.0.0' -X 'main.ENV=dev'" -o edge-network && upx edge-network` | ||
- scp edge-network [email protected]:~ | ||
- ssh [email protected] | ||
- sudo systemctl stop edge-network | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
mqtt: | ||
broker: | ||
host: ssl://stream.dev.dimo.zone | ||
port: 8884 | ||
tls: | ||
enabled: true | ||
topics: | ||
status: devices/%s/status | ||
network: devices/%s/network | ||
logs: devices/%s/logs | ||
fingerprint: devices/%s/fingerprint | ||
services: | ||
auth: | ||
host: https://auth.dev.dimo.zone | ||
clientId: step-ca | ||
clientSecret: replace-me | ||
caFingerprint: replace-me | ||
generateChallengeURI: /auth/web3/generate_challenge | ||
submitChallengeURI: /auth/web3/submit_challenge | ||
ca: | ||
host: https://ca.dev.dimo.zone | ||
certPath: /opt/autopi/client.crt | ||
privateKeyPath: /opt/autopi/client.pem | ||
identity: | ||
host: https://identity-api.dev.dimo.zone/query | ||
vehicle: | ||
host: https://vehicle-signal-decoding.dev.dimo.zone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
mqtt: | ||
broker: | ||
host: tcp://localhost | ||
port: 1883 | ||
tls: | ||
enabled: false | ||
topics: | ||
status: status | ||
network: network | ||
logs: logs | ||
fingerprint: fingerprint | ||
services: | ||
auth: | ||
host: https://auth.dimo.zone | ||
clientId: step-ca | ||
clientSecret: replace-me | ||
caFingerprint: replace-me | ||
ca: | ||
host: https://ca.dimo.zone | ||
identity: | ||
host: https://identity-api.dimo.zone/query | ||
vehicle: | ||
host: https://vehicle-signal-decoding.dimo.zone |
Oops, something went wrong.