Closed tnozicka closed 1 year ago
@yorikvanhavre can you comment on this? is this a module that should be shipped with freecad? if yes I'll see about adding it
Indeed one of these two is needed to generate diagrams...
I think pysolar is the easiest because it's pretty lightweight, just a bunch of py files: https://github.com/pingswept/pysolar/tree/master/pysolar
An alternative to packaging could be to migrate the solar diagram functionality to the BIM workbench. Then, additional dependencies such as pysolar could be handled directly by the addon manager...
Thanks for your input! As this has been lingering for a while and there are 2 proposed paths forward - should we start by adding pysolar to the flatpak image? Unless there is any work going on migrating the functionality to the BIM workbench itself, it seems like the easiest path forward.
I've looked at the code again, actually there is not much point in separating the solar diagram code and migrate it to BIM, as in any case the Arch Site works without it. So there would be not much difference.
We could distribute pysolar with FreeCAD, but since pysolar is GPL, this would force us to change the license of the distributed FreeCAD packages. That's a much deeper discussion to have...
so which one shall be shipped ? pysolar or ladybug?
ladybug is AGPL so in principle it also forces FreeCAD to be distributed as GPL. That's a decision for the FreeCAD flatpack maintainers I guess...
The license is a non issue here. The question was which one is better, but pysolar seems to be the simplest dependency.
There is a test build on #121 that includes pysolar. Not sure how to test it, but if someone can confirm it works, we can merge it.
pysolar seems to be the simplest dependency
Yes on a pure practicability point of view, pysolar is indeed much easier to package.
there was no feedback with the test build, I'll assume it works.
Arch workbench has an object called Arch Site that should be able to generate Solar and wind diagrams. Long-term it seems to head toward Ladybug but according to the wiki description, there is a fallback to Pysolar. Given I got the Pysolar error it seems like none of these is present in the flatpak.