×

INDI Library v1.9.6 Released (21 May 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Push notifications

  • Posts: 167
  • Thank you received: 15
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 week 20 hours ago by Euripides.
1 month 1 week ago #83019
Attachments:

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

  • Posts: 167
  • Thank you received: 15

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 week 1 day ago by Euripides.
1 week 1 day ago #83794

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

  • Posts: 164
  • Thank you received: 32

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 week 22 hours ago #83811

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

  • Posts: 167
  • Thank you received: 15

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 week 21 hours ago by Euripides.
1 week 22 hours ago #83813

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

  • Posts: 167
  • Thank you received: 15

Replied by Euripides on topic Push notifications

Updated the original post with a workaround
1 week 20 hours ago #83818

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

  • Posts: 164
  • Thank you received: 32

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 week 12 hours ago #83825

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

Time to create page: 0.323 seconds