Rise/transit/set as 'wait' command argument

Asked by Tomasz Lewicki

I'm writing a script which has 'date load current' command at the beginning. I want to say few words, then fast forward to Sun's transit with meridian visible. Now I'm doing it so: timerate rate 1800, meridian on after 3 seconds, pause on remote when Sun is on meridian. Is it possible to add something like:

wait until [body] transit/rise/set

for given [body] - planet, Sun, Moon, named star?

Question information

Language:
English Edit question
Status:
Answered
For:
Nightshade Legacy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Rob Spearman (rob-digitaliseducation) said :
#1

This feature currently does not exist. If you create a bug report describing exactly how you want the feature to work we can track that for the wish list.

As a workaround, you should be able to have your script stop at the correct time (local noon) if you start from a defined time on any date. Use UTC to avoid daylight savings changes.

Rob

Revision history for this message
Tomasz Lewicki (stalkerpl) said :
#2

Workaround is good but only if I will update the script in regular manner, every day or few days at least to be correct as possible. I have to manually check sunrise/transit/sunset time, change time in script, add 'wait duration' with exact amount of seconds (manually calculated for each date) between rise and transit plus transit and set. It's quite complex and time consuming approach.

I think Nightshade has implemented function for calculating rise/transit/set time of the Sun for given place on Earth or other Solar System body.

Revision history for this message
Rob Spearman (rob-digitaliseducation) said :
#3

What I meant was that you could always start at some defined time, say
midnight on the current date. Then have the script advance time until
mean local noon. But maybe that doesn't fit your needs.

There is not currently any rise/transit/set calculation going on in
Nightshade. Just body positions and orientations are calculated, which
produce those events.

Revision history for this message
Lionel RUIZ (astro2kpremium) said :
#4

A developer of our group has implemented a piece of code doing this in real time but it hasn't been added to the trunk at the moment (we are waiting for NS12). It's a good idea to try to add it in the scripting commands, as there are some needs about it for sure. You'll get it working soon enough probably.

Revision history for this message
Tomasz Lewicki (stalkerpl) said :
#5

@Rob: workaround you've proposed is standard way but yes, in this case it doesn't fit my needs. From Lionel's reply I see some other people think it would be nice feature.

Revision history for this message
Tomasz Lewicki (stalkerpl) said :
#6
Revision history for this message
ASTROdidactico (raul-astrodidactico) said :
#7

I'm agree this is an important and necesary feature.

Revision history for this message
Lionel RUIZ (astro2kpremium) said :
#8

I agree with Rob that using it in a wait command would be difficult and hasardous to do the job.
What I propose would be to have a command that move the date to the rise/set/transit of the sun.
That's correponding to the needs of many users. Other options would be more complex and not that useful.

Revision history for this message
Tomasz Lewicki (stalkerpl) said :
#9

@Lionel: I agree with your proposal - new argument to 'date' command rolling the sky to particular phenomenon moment. 'wait' command was an example; if it is hard to code or even dangerous it could be other command.

Can you help with this problem?

Provide an answer of your own, or ask Tomasz Lewicki for more information if necessary.

To post a message you must log in.