Skip to content

Commit

Permalink
add latitude & logitude observation option
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Sep 17, 2024
1 parent e94fc9f commit aad9567
Show file tree
Hide file tree
Showing 8 changed files with 365 additions and 97 deletions.
37 changes: 35 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,45 @@
"type": "email"
}
},
"latitude": {
"title": "Latitude",
"type": "string",
"required": false,
"condition": {
"functionBody": "return !(model.devices && model.devices[arrayIndices].city && model.devices[arrayIndices].state && model.devices[arrayIndices].zipCode);"
}
},
"longitude": {
"title": "Longitude",
"type": "string",
"required": false,
"condition": {
"functionBody": "return !(model.devices && model.devices[arrayIndices].city && model.devices[arrayIndices].state && model.devices[arrayIndices].zipCode);"
}
},
"city": {
"title": "City",
"type": "string",
"required": true
"required": false,
"condition": {
"functionBody": "return !(model.devices && model.devices[arrayIndices].latitude && model.devices[arrayIndices].longitude);"
}
},
"state": {
"title": "State",
"type": "string",
"required": false,
"condition": {
"functionBody": "return !(model.devices && model.devices[arrayIndices].latitude && model.devices[arrayIndices].longitude);"
}
},
"zipCode": {
"title": "Zip Code",
"type": "string",
"required": true
"required": false,
"condition": {
"functionBody": "return !(model.devices && model.devices[arrayIndices].latitude && model.devices[arrayIndices].longitude);"
}
},
"distance": {
"title": "Distance",
Expand Down Expand Up @@ -184,7 +214,10 @@
"items": [
"devices[].provider",
"devices[].apiKey",
"devices[].latitude",
"devices[].longitude",
"devices[].city",
"devices[].state",
"devices[].zipCode",
"devices[].distance",
"devices[].firmware",
Expand Down
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"ext": "ts, html, json",
"ignore": [],
"exec": "DEBUG= tsc && homebridge -T -D -P -I -U ~/.homebridge-dev ..",
"exec": "DEBUG= tsc && npm run plugin-ui && homebridge -T -D -P -I -U ~/.homebridge-dev .. ",
"signal": "SIGTERM",
"env": {
"NODE_OPTIONS": "--trace-warnings"
Expand Down
Loading

0 comments on commit aad9567

Please sign in to comment.