Skip to content

Commit

Permalink
Add RJ45 DMX connector (#3831)
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Mar 5, 2024
1 parent e6aa848 commit ba9a428
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/plugins.json
Expand Up @@ -73,7 +73,7 @@
},
"ofl": {
"name": "Open Fixture Library JSON",
"exportPluginVersion": "12.4.1",
"exportPluginVersion": "12.5.0",
"exportTests": []
},
"op-z": {
Expand Down
9 changes: 8 additions & 1 deletion plugins/qlcplus_4.12.2/export.js
Expand Up @@ -414,7 +414,14 @@ function addPhysical(xmlParentNode, physical, fixture, mode) {
}

// add whitespace
const connector = physical.DMXconnector === `3.5mm stereo jack` ? `3.5 mm stereo jack` : physical.DMXconnector;
let connector = physical.DMXconnector;

if (connector === `3.5mm stereo jack`) {
connector = `3.5 mm stereo jack`;
}
else if (connector === `RJ45`) {
connector = `Other`;
}

return {
DmxConnector: connector || `Other`,
Expand Down
2 changes: 1 addition & 1 deletion schemas/fixture-redirect.json
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/OpenLightingProject/open-fixture-library/master/schemas/fixture-redirect.json",

"version": "12.4.1",
"version": "12.5.0",

"type": "object",
"properties": {
Expand Down
5 changes: 3 additions & 2 deletions schemas/fixture.json
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/OpenLightingProject/open-fixture-library/master/schemas/fixture.json",

"version": "12.4.1",
"version": "12.5.0",

"type": "object",
"properties": {
Expand Down Expand Up @@ -159,7 +159,8 @@
"5-pin",
"5-pin XLR IP65",
"3-pin and 5-pin",
"3.5mm stereo jack"
"3.5mm stereo jack",
"RJ45"
]
},
"bulb": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/gobo.json
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/OpenLightingProject/open-fixture-library/master/schemas/gobo.json",

"version": "12.4.1",
"version": "12.5.0",

"type": "object",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/manufacturers.json
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/OpenLightingProject/open-fixture-library/master/schemas/manufacturers.json",

"version": "12.4.1",
"version": "12.5.0",

"type": "object",
"properties": {
Expand Down

0 comments on commit ba9a428

Please sign in to comment.