sunset issue
-
Time and Date.com has an API service>>> https://www.timeanddate.com/se...
-
@dbini thanx for your hint but there is no internet available in this space! can i tell isadora to change a file according to date. like even 1st of a month?
best
-
Hi there,
A bit of JavaScript and you are all set :) Let me know what you need exactly, and I can invest some of my time tonight in it.
- Juriaan
-
@juriaan Hi, as i said we a starting a 1 year long installation in a gallery space in vienna. Everyday at 10am a performer will start the computer with 2 programms on it! isadora and abelton live!
i have 4-6 light cues via dmxking on isadora. the opening 2 cues during the day are not a problem. they work fine with the "time of day" actor. where i will get into trouble is when the sunset shifts! as the
main cue will be during this time. as i said i can program 12 files one for every month, but its not ver convenient. and there is no wifi in the space!
best
-
Hi there Gap,
Got ya. Working on a piece of JavaScript code for you. Basically what we need is the position in the world (The latitude and the longitude), the timezone and the Date (Year-Month-Day) that we wish to calculate..
Our output then tells us the hour, minutes and seconds when the sun will go up.
- Juriaan
-
Hi,
The sunset is basically a curve during the year so if it doesn't has to be super precise maybe you can use minimum in december and a maximum in June and than with a limit scale and value curver you can make an approximate time of sunset?
Groeten Gertjan
-
@juriaan sorry i need the sun going down ;) but thanx for your help!
-
IzzySun is an quick actor that I made for this purpose :) it uses the code of SunCalc (https://github.com/mourner/sun...) that I edited to work with Isadora. Follow the instructions inside the file to get started.
As always, let me know if you are missing something / have questions / feedback / etc !
- Juriaan
-
@juriaan i sent you an email!
-
@juriaan thank you so much! i can't wait to try it tomorrow! for this project we decided to manually change time every week and also the cues. but its perfect for an upcoming outdoor project.
i put it here as i guess other users also will appreciate this actor a lot! you are great!
-
Hi there @gapworks,
It was my pleasure, was a fun little project that didn't cost a lot of time :) Enjoy !
- Juriaan