Maybe I am not understanding something. Does the dome open as soon as I click the "run schedule" button even though I tell it to defer execution of the first job until 2am? If that is the case then I see your point. What I am saying is: open the dome (if it is not already open) upon execution of the first job. I'll have to test some more.
I'll read that thread, thanks Wolfgang.
>> Rain on a telescope is always a bad idea, even if it is not capturing.
I fully agree. I was thinking ahead to when I have an observatory. In my example I wanted to launch the scheduler at 10pm with the knowledge that the weather is currently wet. My expectation however, according to forecasts, is that it will clear by 2am. So my expectation is that Ekos will keep the observatory sealed. When the job awakens at 2am it will first check the weather and then abort if still raining -- the observatory will remain sealed. In other words, check the weather first and then open the observatory only if the weather is OK, otherwise keep it sealed and abort the remaining jobs in the schedule.
Sure, I understand that there is "critical" and then there is "CRITICAL".
I ran another test which is closer to how I would use it:
I use three forecasting services: Clear Outside, Clear Dark Sky, and College of DuPage Meteorology. Let's say they are in agreement that skies will clear by 2am. The problem is I've got a meeting at 8am. At 10pm I would like to start the scheduler to wake up at 2am, check the weather, continue if clear or abort if cloudy. I tested this scenario. The problem is that the scheduler appears to constantly monitor the weather from 10pm to 2am and prematurely aborts when the weather changes. Like I said I am only really interested at the weather conditions at 2am.
I found a bug in the scheduler. You can recreate it offline using the Weather Simulator, CCD Simulator, and Telescope Simulator:
1. Create a simple capture sequence (ESQ): 10 frames at 10 seconds.
2. Create a simple schedule:
a. Locate M35 currently rising in the east this time of year.
b. Select our simple capture sequence.
c. Check: Track, Uncheck all others because we are using the CCD Simulator.
d. Check: Weather.
e. Add the job to the schedule.
3. Go to INDI control panel's Weather Simulator:
a. Set the POLL to 5 seconds.
b. Set WEATHER to 1 (i.e. Danger).
c. Return to the Ekos Scheduler module and wait for the weather icon to light up DANGER.
4. Run the schedule
a. You should see that it begins to run even while the weather is dangerous.
b. Try this to get it to abort while the sequence is running:
A. Change the WEATHER to 0 (OK) and wait a few seconds.
B. Change the WEATHER to 1 (DANGER) again. This time the sequence will abort!
I have a theory as to what is happening but I'll keep it to myself since I have zero experience with INDI programming.
I made the change you suggested above, locally in a VM. Works great! Now I can test some more.
Smart! I think I'll do that too. I've got a spare Adafruit MetroMini. I may also have some sensors. Good idea!
Wolfgang said: "The scheduler is meanwhile quite robust so that it can recover from passing clouds etc."
That's my next nut to crack: weather sensing. I've had my eye on Unihedron's SQM-LU but at this time I don't know if I need to write a custom driver in order to perform cloud detection. There may be better products out there for that purpose.
Right now, I am make a clone of an Ubuntu 18.04 VM for the purpose of INDI development. I'll see if I can make that change to a line of code in the Weather Simulator that you pointed out to me in another thread.
Thanks for help, Wolfgang!
Thank you, Wolfgang.
Wolfgang said: "I personally never use the "Sort by altitude" option but I simply set a termination time so that the next job may start when it makes sense."
I like your idea best. It takes care of an important criterion of mine: I have a relatively small east-facing visibility window due to trees. It's best that I control this.
Ahhhhhhh, I'll give it a try. Thanks!
I keep seeing tooltips that make mention of "Sort by altitude" but I see no way of engaging it. I've tried clicking all buttons but nothing approximate what you described.