Support Board
Date/Time: Mon, 25 Nov 2024 13:31:10 +0000
Post From: Contribution/Alternative to Email alerts using PushOver App PUSH notifications
[2024-03-07 12:08:07] |
Trint - Posts: 115 |
Hi SCE/SC, You will be keeping the 'Run program if Alert is triggered' feature ..? As I've created a script to send Push notifications to my app on my phone. It will take network 'load' away from Sierra as its using a third party app I know you are working on an imminent release for the email notifications on alerts but thought I'd pass on an alternative using the PushOver app (you need to register and it does cost £5 for life after the 30 day free trial but handy to use that trial) - I'm not gaining or affiliated with them but it's handy as a backup Just to say Im using Linux in Wine so syntax differs Here's the script, I just call it from within Global Settings >> General Settings >> Alerts (Tab) I have a dedicated SSD drive for running Sierra in LINUX (wine) and just put the reference of the Script in the 'Run Program when this alert is triggered' field Z:\mnt\SSD\SierraChart\SierraChartInstance_6\ACS_Source\PushOverNotif.bat @echo off REM Set your Pushover user key and application token set USER_KEY=<YOUR_USER_KEY> set APP_TOKEN=<YOUR_APP_TOKEN> REM Set the message and title of your notification set MESSAGE="USD_Alert!" set TITLE="USD Breaking new lows" REM API URL for Pushover set API_URL=https://api.pushover.net/1/messages.json REM Sending the notification on WINE in Linux environment (windows just use 'curl -s -F') cmd /c start /unix /usr/bin/curl -s -F "token=%APP_TOKEN%" -F "user=%USER_KEY%" -F "message=%MESSAGE%" -F "title=%TITLE%" %API_URL% REM Check if the notification was sent successfully if %ERRORLEVEL% EQU 0 ( echo Notification sent successfully. ) else ( echo Error: Notification failed to send. ) Hope it helps. |