caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
11.7k stars 410 forks source link

Added LunaSea Support #1072

Closed caronc closed 6 months ago

caronc commented 7 months ago

Description:

Related issue (if applicable): #1070

Syntax

Valid syntax is as follows:

Cloud Hosting

You can mix and match as well:

Private Hosting This works the exact same way; you can just additionally specify your connection details to your local server:

You can mix and match as well:

Use lunaseas:// for a Secure (https://) connection and lunasea:// for Insecure (http://).

lsea:// and lseas:// can also be used as an alias to lunasee:// and lunaseas:// (respectively) if you choose.

Parameter Breakdown

Variable Required Description
to *No One or more Firebase User IDs or Device IDs p you wish to send your notification to. You can use comma's to separate multiple entries if you wish.
image No Map the image associated with the notification type to the payload. By default this is set to no.
mode No The default mode to treat the URL provided as. Possible values are cloud and private. This is detected if no otherwise specified. When set to private, a hostname must be provided as part of the URL. When set to cloud, all elements are presumed to be notification end points and https://lunasea.app is used. In cloud mode, all transactions are secure (regardless if you specify lunasea:// or lsea://).

New Service Completion Status

Checklist

Testing

Anyone can help test this source code as follows:

# Create a virtual environment to work in as follows:
python3 -m venv apprise

# Change into our new directory
cd apprise

# Activate our virtual environment
source bin/activate

# Install the branch
pip install git+https://github.com/caronc/apprise.git@1070-lunasea-support

# Send to a Device (make sure to add + at front):
apprise -t "Test Title" -b "Test Message" \
  lunasea://+FireBaseDevice1

#Send to a device (add +) and a user (optionally add @)
apprise -t "Test Title" -b "Test Message" \
  lunasea://+FireBaseDevice1/@FireBaseUserID

# Running your own private server, no problem:
apprise -t "Test Title" -b "Test Message" \
  lunasea://user:pass@myhostname/+FireBaseDevice1/@FireBaseUserID
codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.28%. Comparing base (26d8e45) to head (ce5ffcd). Report is 3 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1072 +/- ## ======================================== Coverage 99.27% 99.28% ======================================== Files 136 137 +1 Lines 17753 17874 +121 Branches 3623 3649 +26 ======================================== + Hits 17625 17746 +121 Misses 119 119 Partials 9 9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mdeeter commented 2 weeks ago

̶G̶e̶t̶t̶i̶n̶g̶ ̶a̶n̶ ̶e̶r̶r̶o̶r̶ ̶w̶h̶e̶n̶ ̶t̶r̶y̶i̶n̶g̶ ̶t̶o̶ ̶u̶s̶e̶ ̶̶l̶u̶n̶a̶s̶e̶a̶̶.̶.̶.̶.̶ ̶B̶a̶d̶ ̶A̶t̶t̶a̶c̶h̶m̶e̶n̶t̶

Yup... was using wrong container for this repo....

caronc commented 2 weeks ago

Are you using my Docker container or LinuxServer.io?

mdeeter commented 2 weeks ago

updated... was struggling getting Lunasea to work... finally figured it out... your container definitely works better

caronc commented 2 weeks ago

LinuxServer.io is a great solution, but attachments are disabled out of the gate. I think i may need to still investigate why simple notifications aren't working with it in this state.