-
Notifications
You must be signed in to change notification settings - Fork 841
Onepush configuration [EN]
Alas use Onepush for push message. Support multiple platforms like Bark, ServerChan, Discord, mail(SMTP) etc.
Complete support list here Onepush providers
Each platform requires different parameters.
Take Bark as example,
In Onepush repository,find _params
in providers/bark.py
_params = {
'required': ['key'],
This shows that this provider requires key
as parameters.
In Bark APP, we can find key
here in the server list
Show Picture
In this example key
is Vg*******************
Mail is sent via SMTP。You need to obtain the following parameters from your mail service provider (such as Gmail)
_params = {
"required": ["host", "user", "password"],
-
host
: smtp server address. -
user
: username, usually this is your mailbox address. -
password
: password to login, for some service provider you need to apply for an individual key to use smtp. -
port
: smtp server port, use ssl port(465, 587, etc.) for secure if possible. -
ssl
: explicitly specifies to use ssl connection. When the port is 465, ssl will be used automatically.
Commom mail service:
- gmail: https://support.google.com/mail/answer/7104828
- host:
smtp.gmail.com
- port:
587
-
ssl:
true
- host:
For other platform, please refer to their document for more details.
Feel free to add more tutorials
Configuration is in json format. Need two items: push service name provider
and the corresponding parameter dictionary params
.
In the case of Bark, the parameters key
have been obtained above: Vg*******************
So the final configuration is
{
"provider": "bark",
"params": {
"key": "Vg*******************"
}
}
Let's add more parameter, such as sound
{
"provider": "bark",
"params": {
"key": "Vg*******************",
+ "sound": "alarm"
}
}
More Examples
- Mail
don't forget ssl
{
"provider": "smtp",
"params": {
"host": "smtp.gmail.com",
"port": 587,
"ssl": true,
"user": "[email protected]",
"password": "abcdefghijklmnopq"
}
}
{
"provider": "smtp",
"params": {
"host": "smtp.qq.com",
"port": 465,
"user": "[email protected]",
"password": "abcdefghijklmnopq"
}
}
- discord
{
"provider": "discord",
"params": {
"webhook": "https://discord.com/api/webhooks/12345678912345678900/verylongstring_veryveryverylongstring"
}
}
In case you mess up, you can verify you json format here
Finally, copy your json to Alas -> Debug Settings -> Error notify config.
Getting Started
- Installation [EN]
- Installation [CN]
- Installation With Docker [EN]
- Emulator Support [CN]
- FAQ [EN/CN]
- FAQ [JP]
- Troubleshooting [EN]
- Another Installation guide
- Research Filter String [EN]
- Research Filter String [CN]
- Reward Shop Filter String [EN/CN]
- Onepush Configuration [EN]
- Onepush Configuration [CN]
Development
- Perspective [CN]
- Perspective [EN]
- Debug perspective [CN]
- Debug perspective [EN]
- Item Statistics [EN]
- 1. Start
- 2.1. Debugging
- 2.2. Multi-server support
- 3.1. Utils
- 3.2. Decorators
- 3.3. Log
- 3.4. Exception
- 4.1. Detection objects
- 4.2. UI control
- 4.3. OCR
- 4.4. State loop
- 5.1. Local Map
- 5.2. Create globe Map
- 5.3. Globe Map
- 6.1. GUI Option
MISC