Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively.Register now to secure your spot!
Sonnenstand
SpaceLogic KNX Forum
Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
-- calculate UTC altitude and azimuth local altitude, azimuth = sunposition(lat, long, time)
-- Check previous minute values to detect azimuth direction change 0º and 180º time = time - 60 local previuos_altitude, previuos_azimuth = sunposition(lat, long, time)
print("previuos_azimuth",previuos_azimuth,"<<<< azimuth",azimuth) if previuos_azimuth < azimuth then -- print("<<<<<<<<<<<<< TREND:", "UP") else -- print("<<<<<<<<<<<<< TREND:", "DOWN") end if previuos_azimuth < azimuth then -- calcualted azimuth trend UP >>>>>>>>>>>>>>>>>>> if long < 0 then if lat > 0 then return altitude, azimuth else return altitude, 360 - azimuth end else ------------------- long > 0 if lat > 0 then return altitude, azimuth else return altitude, 360 - azimuth end end else -- calcualted azimuth trend DOWN >>>>>>>>>>>>>>>>>>> if long < 0 then if lat > 0 then return altitude,360 - azimuth else return altitude, azimuth end else ------------------- long > 0 if lat > 0 then return altitude, 360 - azimuth else return altitude, azimuth end end end end
local plat = 47.53305 local plong = 7.810654
local altitude, azimuth = getSunPos(plat, plong, os.time()) --alert (altitude)
Link copied. Please paste this link to share this article on your social media post.
2025-08-2701:39 AM
Hallo Baerdo!
Vielen DANK für dieses Skript. Ich hatte das auch mal erstellt und damit kann man sehr schön in der freien Visu anzeigen wo die Sonne sich gerade befindet. D.h. mit der Integration eines Satellitenbildes kann man den Azimuth-Wert schön als Strich (Overlay) darstellen. Man muss nur eine entsprechende Anzahl Bilder beim Wert hinterlegen. Siehe Beispiel von der Website Sonnenverlauf welche natürlich noch mehr Infos wie Sonnenauf- und Sonnenuntergang als Strich liefert.