-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Synse Server to be compatible with v1.0 of the Synse SDK (#175)
* start to update internal grpc client for sdk1.0 changes * update internal grpc client handling * add capabilities route * update models, update tests * update plugins route to include metadata and health info * update plugin registration flow. still needs to be cleaned up, tests need to be updated/added * add support for service discovery via kubernetes service endpointswith labels * update deployment configurations, fix bug in unix registration * update tests for plugin flow changes * update api docs * use new synse_grpc package * more doc updates, fix serialization bug * user guide docs update * update user guide docs * fix bug where no returned reading would cause failure (#178) * Change read scheme to allow multiple readings of the same type (#181) * update read scheme to allow multiple readings of the same type from the same device (e.g. a single device might provide multiple voltage readings) * update api docs * Fix build args for old docker versions (#183) * fix build args for old docker version * update comment * scan output should have type, not kind (#186) * final updates
- Loading branch information
1 parent
2b6da14
commit 1e03fb3
Showing
70 changed files
with
3,550 additions
and
2,119 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 |
---|---|---|
@@ -1,71 +1,105 @@ | ||
version: 1.0 | ||
locations: | ||
r1vec: | ||
rack: rack-1 | ||
board: vec | ||
- name: r1vec | ||
rack: | ||
name: rack-1 | ||
board: | ||
name: vec | ||
devices: | ||
# -- temperature devices -- | ||
- type: temperature | ||
model: emul8-temp | ||
- name: temperature | ||
metadata: | ||
model: emul8-temp | ||
outputs: | ||
- type: temperature | ||
instances: | ||
- id: "1" | ||
- info: Synse Temperature Sensor 1 | ||
location: r1vec | ||
info: Synse Temperature Sensor 1 | ||
- id: "2" | ||
data: | ||
id: 1 | ||
- info: Synse Temperature Sensor 2 | ||
location: r1vec | ||
info: Synse Temperature Sensor 2 | ||
- id: "3" | ||
data: | ||
id: 2 | ||
- info: Synse Temperature Sensor 3 | ||
location: r1vec | ||
info: Synse Temperature Sensor 3 | ||
- id: "4" | ||
data: | ||
id: 3 | ||
- info: Synse Temperature Sensor 4 | ||
location: r1vec | ||
info: Synse Temperature Sensor 4 | ||
- id: "5" | ||
data: | ||
id: 4 | ||
- info: Synse Temperature Sensor 5 | ||
location: r1vec | ||
info: Synse Temperature Sensor 5 | ||
data: | ||
id: 5 | ||
|
||
# -- pressure devices -- | ||
- type: pressure | ||
model: emul8-pressure | ||
- name: pressure | ||
metadata: | ||
model: emul8-pressure | ||
outputs: | ||
- type: pressure | ||
instances: | ||
- id: "1" | ||
- info: Synse Pressure Sensor 1 | ||
location: r1vec | ||
info: Synse Pressure Sensor 1 | ||
- id: "2" | ||
data: | ||
id: 1 | ||
- info: Synse Pressure Sensor 2 | ||
location: r1vec | ||
info: Synse Pressure Sensor 2 | ||
data: | ||
id: 2 | ||
|
||
# -- led devices -- | ||
- type: led | ||
model: emul8-led | ||
- name: led | ||
metadata: | ||
model: emul8-led | ||
outputs: | ||
- type: led.color | ||
- type: led.state | ||
instances: | ||
- id: "1" | ||
- info: Synse LED | ||
location: r1vec | ||
info: Synse LED | ||
- id: "2" | ||
data: | ||
id: 1 | ||
- info: Synse Backup LED | ||
location: r1vec | ||
info: Synse backup LED | ||
data: | ||
id: 2 | ||
|
||
# -- humidity devices -- | ||
- type: humidity | ||
model: emul8-humidity | ||
- name: humidity | ||
metadata: | ||
model: emul8-humidity | ||
outputs: | ||
- type: humidity | ||
- type: temperature | ||
instances: | ||
- id: "1" | ||
- info: Synse Humidity Sensor | ||
location: r1vec | ||
info: Synse Humidity Sensor | ||
data: | ||
id: 1 | ||
|
||
# -- fan devices -- | ||
- type: fan | ||
model: emul8-fan | ||
- name: fan | ||
metadata: | ||
model: emul8-fan | ||
outputs: | ||
- type: fan.speed | ||
instances: | ||
- id: "1" | ||
- info: Synse Fan | ||
location: r1vec | ||
info: Synse Fan | ||
data: | ||
id: 1 | ||
|
||
# -- airflow devices -- | ||
- type: airflow | ||
model: emul8-air | ||
- name: airflow | ||
metadata: | ||
model: emul8-air | ||
outputs: | ||
- type: airflow | ||
instances: | ||
- id: "1" | ||
- info: Synse Airflow Sensor | ||
location: r1vec | ||
info: Synse Airflow Sensor | ||
data: | ||
id: 1 |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
version: 1.0 | ||
name: emulator | ||
debug: true | ||
network: | ||
type: tcp | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
version: 1.0 | ||
name: emulator | ||
debug: true | ||
network: | ||
type: unix | ||
|
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
Oops, something went wrong.