Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Powershell Script ( based on pr #2 ) #5

Merged
merged 1 commit into from Mar 21, 2024
Merged

Conversation

linuxkidd
Copy link
Owner

This update provides a powershell script, originally authored by @scottsousa via pr #2.

The script is a companion which is executed during the SharpCap Sequence and runs in parallel to provide Windows notifications and Test 2 Speech prompts of key events during the Eclipse.

The announced events can be seen / edited in the april-2024-solar-eclipse.ps1 file.

The script takes 5 parameters, with only 2 being required:

  • -c1, -c4 == The 24 hour time designation for the start and end of the Partial Solar Eclipse ( Optional - if not provided, partial announcements will be skipped )
  • -c2, -c3 == The 24 hour time designation for the start and end of the Total Solar Eclipse ( Required )
  • -display_windows_notifications == Boolean for disabling the Windows Toast notifications ( Optional - Default: $true )

Example use:

PowerShell -NoProfile -ExecutionPolicy Bypass -WindowStyle Minimized -Command .\april-2024-solar-eclipse.ps1 -display_windows_notifications $true -c1 12:23:51 -c2 13:41:14 -c3 13:45:08 -c4 15:03:09

Signed-off-by: Michael J. Kidd <linuxkidd@gmail.com>
@scottsousa
Copy link
Contributor

@linuxkidd I'm testing the new version now. I'll post my results once I've finished. So far so good.

@scottsousa
Copy link
Contributor

@linuxkidd Everything looks good to me! Thank you so much for assisting with this and tidying up the code. If you're ready, I think this feature is good to merge.

By the way, in case anyone asks (or if you were wondering), there are 3 Venus disappearing alerts on either side of totality because I'm not exactly sure when it will be visible lol.

Also, in the coming days I can still make an attempt at having SharpCap trigger the individual alerts between capture events if you'd like. Let me know what you think. Thanks!

@linuxkidd
Copy link
Owner Author

linuxkidd commented Mar 21, 2024

Hi @scottsousa , Thanks again for the contribution, and thanks so much for testing all the changes!

I'll merge this and post about the update on Cloudy Nights and the SharpCap support forum.

@linuxkidd linuxkidd merged commit 5d5ee5e into main Mar 21, 2024
@linuxkidd linuxkidd deleted the powershell branch March 21, 2024 03:11
@linuxkidd linuxkidd restored the powershell branch March 21, 2024 03:11
@linuxkidd linuxkidd deleted the powershell branch March 21, 2024 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants