Pushover configuration?

Furry 21 days ago

I have Traccar running as an app in TrueNAS Scale, and I would like to use Pushover for notifications.

The User has attributes added, and filled, for Pushover User Key (I have entered a Pushover API key here) and Pushover Device Name.

But my server does not have a Channel for Pushover; it only has Web and Email.

How can I add this type? I do not have 'easy' access to configuration (.xml), as it's an app in TrueNAS. Maybe there is an 'environment variable' that I could define, in the TrueNAS configuration for this app? Or...?

Thank you.

Anton Tananaev 20 days ago

Yes, you can configure this using environment variables:

CONFIG_USE_ENVIRONMENT_VARIABLES=true
NOTIFICATOR_TYPES=web,mail,pushover
NOTIFICATOR_PUSHOVER_TOKEN=<your Pushover application API token>

Restart the app after adding these, then refresh the Traccar web interface. Pushover should become available as a notification channel.

The Pushover User Key user attribute must contain your Pushover user key, not the application API token. The device name is optional.

See the configuration documentation for details about environment variables.

Furry 20 days ago

Thank you.

TrueNAS won't accept the CONFIG_USE_ENVIRONMENT, in the app setup, I guess because this is already available (I can enter environment variables in the setup).

After adding the NOTIFICATOR_TYPES variable to the TrueNAS app setup, the Pushover type now appears as an available channel for selection within Traccar.

I have access within Traccar to the User's Pushover User Key attribute, and have set that to my Pushover user key (not the API key). But, whether I do this, or instead add the NOTIFICATOR_PUSHOVER_TOKEN variable to the TrueNAS app setup, no notification is received.

Web and email notifications are successful.

Furry 20 days ago

Further to the above:

It is now working, since I put the Pushover API key in the NOTIFICATOR_PUSHOVER_TOKEN variable, in the TrueNAS app setup.

Thanks again, I'm pleased to have this working.