So I noticed, that for every Module, there is a Width and Hight.
Those combos are Static. One Module cannot have multiple Width's and Height's (afaik).
So how about removing the following properties:
Everything before and after would still stay the same of course.
One could still reconstruct the needed URL, because we have serverip as a property. The reconstruction should just look similar to this: "http://" + serverip + "/" + overlayName (Please use format Strings in actual code!).
One could then add a config.ini file to each module, where it's height and width are stored. Something along the lines of this:
Not sure about the serverip thing as it supports golang formatting (stuff like :24050) static's index.html will see a lot of changes soon so the other parts of this proposal might come as a part of that change.
So I noticed, that for every Module, there is a Width and Hight. Those combos are Static. One Module cannot have multiple Width's and Height's (afaik). So how about removing the following properties:
and replacing them with the following:
Everything before and after would still stay the same of course. One could still reconstruct the needed URL, because we have
serverip
as a property. The reconstruction should just look similar to this:"http://" + serverip + "/" + overlayName
(Please use format Strings in actual code!).One could then add a
config.ini
file to each module, where it's height and width are stored. Something along the lines of this: