[kstars] [Bug 497864] New: Ekos Scheduler starts observations when weather is unsafe

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=497864

Bug ID: 497864
   Summary: Ekos Scheduler starts observations when weather is
unsafe
Classification: Applications
   Product: kstars
   Version: 3.7.4
  Platform: Ubuntu
OS: Linux
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: mutla...@ikarustech.com
  Reporter: pe...@englmaier.ch
  Target Milestone: ---

SUMMARY

I am using ekos/scheduler to schedule observations in my observatory. The
weather is enabled in the 'job constraints' section and the cloudwatcher/solo
device is reporting safe/unsafe state to ekos with the weather watcher driver.

When I started the scheduler (day before), the status was unsafe reported and
stayed so. However, at some point the scheduler somehow  "lost contact" and the
status icon was no longer displayed in the scheduler screen. The scheduler then
considered the state 'safe' even if it had no information about the state. It
opened the observatory and started imaging. This is dangerous and I think ekos
should always consider situation unsafe if weather is job constrain and
condition is not reported safe.


STEPS TO REPRODUCE
1. Setup up observation in scheduler 
2. Enable the weather condition, check that the icon next to the weather
condition is displayed
3. Start the scheduler
4. Somehow mock the icon to disappear, i.e. stop the weather driver

OBSERVED RESULT

The scheduler is starting the observation when the other conditions are met
(i.e. Altitude, Moon seperation, Twilight, Horizon) even if weather is not
reported to be safe. When this happens, the icon indicating the status is also
disappearing from the scheduler and the observatory tab. The driver (in the
INDI control panel), however, is reporting the status to be unsafe! That is why
I think, the communication inside kstars/ekos seems to hang or break. 


EXPECTED RESULT

Scheduler should not start observations as long as weather is a constraint and
it has no current status information.
It knows that it has no current information, because the green icon is not
displayed.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Ubuntu 24.04 (all patches), kstars 3.7.4

ADDITIONAL INFORMATION

kstars was compiled and installed by hand. The precompiled version of kstars
has the same problem, but it does not install cleanly.

I am now trying to debug the problem myself and will submit a PR if I can fix
it. For now, I will focus on the behavior of the scheduler to be more 'safe'.
Next I will try to find out why the reporting is broken. 

There is another reports (420437), for the same or a similar issue. I think it
should be fixed inside the scheduler first, to make it more resilient, and then
the reporting should be fixed.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kstars] [Bug 420437] EKOS scheduler instructs Dome to open when weather is still in alert state

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=420437

Peter Englmaier  changed:

   What|Removed |Added

 Blocks||497864


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=497864
[Bug 497864] Ekos Scheduler starts observations when weather is unsafe
-- 
You are receiving this mail because:
You are watching all bug changes.

[kstars] [Bug 497864] Ekos Scheduler starts observations when weather is unsafe

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=497864

Peter Englmaier  changed:

   What|Removed |Added

 Depends on||420437


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=420437
[Bug 420437] EKOS scheduler instructs Dome to open when weather is still in
alert state
-- 
You are receiving this mail because:
You are watching all bug changes.

[kstars] [Bug 420437] EKOS scheduler instructs Dome to open when weather is still in alert state

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=420437

Peter Englmaier  changed:

   What|Removed |Added

 Blocks|497864  |


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=497864
[Bug 497864] Ekos Scheduler starts observations when weather is unsafe
-- 
You are receiving this mail because:
You are watching all bug changes.

[kstars] [Bug 420437] EKOS scheduler instructs Dome to open when weather is still in alert state

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=420437

Peter Englmaier  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=497864

-- 
You are receiving this mail because:
You are watching all bug changes.

[kstars] [Bug 497864] Ekos Scheduler starts observations when weather is unsafe

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=497864

Peter Englmaier  changed:

   What|Removed |Added

 Depends on|420437  |


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=420437
[Bug 420437] EKOS scheduler instructs Dome to open when weather is still in
alert state
-- 
You are receiving this mail because:
You are watching all bug changes.

[kstars] [Bug 497864] Ekos Scheduler starts observations when weather is unsafe

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=497864

Peter Englmaier  changed:

   What|Removed |Added

 CC||pe...@englmaier.ch

-- 
You are receiving this mail because:
You are watching all bug changes.

[kstars] [Bug 497864] Ekos Scheduler starts observations when weather is unsafe

2024-12-24 Thread Peter Englmaier
https://bugs.kde.org/show_bug.cgi?id=497864

Peter Englmaier  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=420437

-- 
You are receiving this mail because:
You are watching all bug changes.