add additional environment variables to custom commands (#1414) (#2356)

new variables: MTX_CONN_TYPE, MTX_CONN_ID, MTX_SOURCE_TYPE, MTX_SOURCE_ID, MTX_READER_TYPE, MTX_READ_ID
This commit is contained in:
Alessandro Ros
2023-09-16 21:41:49 +02:00
committed by GitHub
parent ed77560811
commit 64d9060560
24 changed files with 359 additions and 162 deletions

View File

@@ -131,8 +131,8 @@ func (s *rpiCameraSource) run(ctx context.Context, cnf *conf.PathConf, reloadCon
}
// apiSourceDescribe implements sourceStaticImpl.
func (*rpiCameraSource) apiSourceDescribe() pathAPISourceOrReader {
return pathAPISourceOrReader{
func (*rpiCameraSource) apiSourceDescribe() apiPathSourceOrReader {
return apiPathSourceOrReader{
Type: "rpiCameraSource",
ID: "",
}