Pysolar with Arch Site

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Pysolar with Arch Site

Post by yorik »

In git commit 8987bd1df I re-added support for older pysolar, one never knows...
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Pysolar with Arch Site

Post by vocx »

yorik wrote: Sat May 11, 2019 2:06 am In git commit 8987bd1df I re-added support for older pysolar, one never knows...
This will still not work with older Pysolar 0.6, as the methods are differently named. The different functions need to be included inside the if oldversion statement.

Pysolar 0.7 and above (Python 3) [snake_case]

Code: Select all

alt = math.radians(pysolar.solar.get_altitude_fast( . . . ))
az = pysolar.solar.get_azimuth( . . . )
Pysolar 0.6 (Python 2) [CamelCase]

Code: Select all

alt = math.radians(Pysolar.solar.GetAltitudeFast( . . . ))
az = pysolar.solar.GetAzimuth( . . . )
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Pysolar with Arch Site

Post by yorik »

Thanks, you have a keen eye :D Fixed in git commit c05bc0990
User avatar
nemesis
Posts: 372
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: Pysolar with Arch Site

Post by nemesis »

Hello,
silly question, but is this working with appimage?
cause I have pysolar installed, but it says it cannot find it.
I guess due to appimage
jtm2020hyo
Posts: 594
Joined: Wed Aug 12, 2020 1:24 am

Re: Pysolar with Arch Site

Post by jtm2020hyo »

Could you guys share a tutorial for test this? Look very interesting
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Pysolar with Arch Site

Post by paullee »

nemesis wrote: Wed Feb 24, 2021 8:04 pm Hello,
silly question, but is this working with appimage?
cause I have pysolar installed, but it says it cannot find it.
I guess due to appimage
I tried pip install pysolar, it installs. But import pysolar in FC console return error ... I thought I had once make it works ... Appimage on Fedora 30

Anybody ?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Pysolar with Arch Site

Post by Kunda1 »

I believe yorik ported this to ladybug tools over pysolar. Need to find the link though


edit: just a reference not a direct link
https://forum.freecadweb.org/viewtopic. ... ug#p438784

edit2: on his blog: https://yorik.uncreated.net/blog/2020-008-freecad-may (search 'ladybug')
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply