×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Push notifications

  • Posts: 401
  • Thank you received: 41
Does anybody know a way for Push notification ? For example using a service like pushover.net ?

It would be great to receive a notification to my iPhone when a failure comes up, or after meridian flip etc.


I'm updating the original thread cause I've managed to achieve that, to have iOS push notifications for major events of my sessions.

I'm pretty confident that this is not the best way, it not free - but cheap - and it works :-)

Requirements:

1. Create pushover.net account and of course iOS app (free 30 days trial, then 5$ one time purchase on each platform)

2. Script: gist.github.com/goodevilgenius/5544874 : Just a simple sh script that does the job (I am not the author, credits on the link)


Step 1: Create the pushover.net account. You will instantly receive a user key.


Step 2: Create a new Application/API Token pushover.net/apps/build (free) to receive the key.



Step 3: Edit the script that you've downloaded earlier and change both user and token key. Of course you can edit the message you wanna send and rename the file to match the event (for example mount_parked.sh)


Step 4: Make the sh script executable. Open terminal and then write
<code>chmod u+x YourScriptFileName.sh</code>

For example in this case (of course you have to set the correct path of your sh script)


Step 5: Go to Kstars --> Settings --> Configure notifications, locate the event you want and add your script to the run command field.


Step 6 : That's it! When the event occurs, you will receive a notification on your iOS screen :-)



Right now, my idea is to create multiple scripts for the events I want. But if anyone has the knowledge to integrate pushover.net/apps this feature in Kstars, to login with tokens through it, and without the need to create multiple scripts, that would be awesome.
Last edit: 1 year 9 months ago by Euripides.
1 year 10 months ago #83019
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 401
  • Thank you received: 41

Replied by Euripides on topic Push notifications

I'll just bump it, just to be sure that anyone saw the thread and maybe someone has an idea ;)
Last edit: 1 year 9 months ago by Euripides.
1 year 9 months ago #83794

Please Log in or Create an account to join the conversation.

  • Posts: 351
  • Thank you received: 109

Replied by nou on topic Push notifications

If you can write script that push this notification to service then in notification settings you can setup so that it run this script.
1 year 9 months ago #83811

Please Log in or Create an account to join the conversation.

  • Posts: 401
  • Thank you received: 41

Replied by Euripides on topic Push notifications

I wish I could....

Except if I could find if or how to execute an sh directly from notifications, I would be able to achieve something
Last edit: 1 year 9 months ago by Euripides.
1 year 9 months ago #83813

Please Log in or Create an account to join the conversation.

  • Posts: 401
  • Thank you received: 41

Replied by Euripides on topic Push notifications

Updated the original post with a workaround
1 year 9 months ago #83818

Please Log in or Create an account to join the conversation.

  • Posts: 351
  • Thank you received: 109

Replied by nou on topic Push notifications

That is exactly what I had in my mind.
The following user(s) said Thank You: Euripides
1 year 9 months ago #83825

Please Log in or Create an account to join the conversation.

  • Posts: 597
  • Thank you received: 280

Replied by John on topic Push notifications

Hi Euripides,

I'm interested in giving this a try... is the info in this thread still the latest / greatest?
8 months 2 weeks ago #94307

Please Log in or Create an account to join the conversation.

  • Posts: 401
  • Thank you received: 41

Replied by Euripides on topic Push notifications

The following user(s) said Thank You: John
8 months 2 weeks ago #94308
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.915 seconds