diff --git a/assets/webconfig/js/content_effectsconfigurator.js b/assets/webconfig/js/content_effectsconfigurator.js
new file mode 100644
index 00000000..4fe20f71
--- /dev/null
+++ b/assets/webconfig/js/content_effectsconfigurator.js
@@ -0,0 +1,53 @@
+$(hyperion).one("cmd-config-getschema", function(event) {
+ effects = parsedConfSchemaJSON.properties.effectSchemas.internal
+ EffectsHtml = "";
+ for(var idx=0; idx
'+effects[idx].schemaContent.title+'';
+ }
+ $("#effectslist").html(EffectsHtml);
+ $("#effectslist").trigger("change");
+ });
+
+ effects_editor = null;
+ effectPy = "";
+
+ $("#effectslist").off().on("change", function(event) {
+ for(var idx=0; idx= 224 and int(octets[0]) < 240:
- print "ListenIP is a multicast address\n"
- # Multicast handling
- try:
- mreq = struct.pack("4sl", socket.inet_aton(ListenIP), socket.INADDR_ANY)
- UDPSock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
- except socket.error:
- print "ERROR enabling multicast\n"
-
-hyperion.setColor(hyperion.ledCount * bytearray((int(0), int(0), int(0))) )
-
-# Start the write data loop
-while not hyperion.abort():
- try:
- data,addr = UDPSock.recvfrom(4500)
-# print data.strip(),len(data),addr
- if (len(data)%3 == 0):
-# print "numleds ",len(data)/3
- ledData = bytearray()
- for i in range(hyperion.ledCount):
- if (i<(len(data)/3)):
- ledData += data[i*3+0]
- ledData += data[i*3+1]
- ledData += data[i*3+2]
- else:
- ledData += bytearray((int(0), int(0), int(0)))
-
- hyperion.setColor(ledData)
-
- else:
- print "not div 3"
- except IOError as e:
- if e.errno == errno.EWOULDBLOCK:
- pass
- else:
- print "errno:", e.errno
-
-print "udp.py: closing socket"
-UDPSock.close()
-
diff --git a/libsrc/jsonserver/JsonClientConnection.cpp b/libsrc/jsonserver/JsonClientConnection.cpp
index ca5bde60..909d55d7 100644
--- a/libsrc/jsonserver/JsonClientConnection.cpp
+++ b/libsrc/jsonserver/JsonClientConnection.cpp
@@ -1053,16 +1053,16 @@ void JsonClientConnection::handleSchemaGetCommand(const QJsonObject& message, co
{
QJsonObject internal;
internal.insert("script", effectSchema.pyFile);
- internal.insert("schema-location", effectSchema.schemaFile);
- internal.insert("schema-content", effectSchema.pySchema);
+ internal.insert("schemaLocation", effectSchema.schemaFile);
+ internal.insert("schemaContent", effectSchema.pySchema);
in.append(internal);
}
else
{
QJsonObject external;
external.insert("script", effectSchema.pyFile);
- external.insert("schema-location", effectSchema.schemaFile);
- external.insert("schema-content", effectSchema.pySchema);
+ external.insert("schemaLocation", effectSchema.schemaFile);
+ external.insert("schemaContent", effectSchema.pySchema);
ex.append(external);
}
}