A small Frappe module that displays custom alerts to specific recipients after login.
Apologies in advance for any problem or bug you face with this module. Please report any problem or bug you face so it can be fixed.
The list of people who deserves more than a simple "Thank You".
- Frappe >= v12.0.0
Do not forget to replace [sitename] with the name of your site in all commands.
- Go to bench directory
cd ~/frappe-bench
- Get plugin from Github
bench get-app https://github.com/kid1194/frappe_alerts
- Build plugin files
bench build --app alerts
- Install plugin on a specific site
bench --site [sitename] install-app alerts
- Restart bench to clear cache
bench restart
- Go to app directory
cd ~/frappe-bench/apps/alerts
- Get updates from Github
git pull
- Go back to bench directory
cd ~/frappe-bench
- Build plugin files
bench build --app alerts
- Update a specific site
bench --site [sitename] migrate
- Restart bench to clear cache
bench restart
- Go to bench directory
cd ~/frappe-bench
- Uninstall plugin from a specific site
bench --site [sitename] uninstall-app alerts
- Remove plugin from bench
bench remove-app alerts
- Restart bench to clear cache
bench restart
- Go to
Alert Typethen create a new type - Enter the type name
- Set the
Display Priorityif needed - To make alerts of this type close automatically:
- Set the
Display Timeout (Seconds)or keep as0to disable the automatic close - Fraction numbers can also be used, like
1.5, to set a more specific timeout
- Set the
- To customize the alert sound:
- Select the
Display Soundthat you prefer - Select
Customoption to be able to upload aCustom Display Sound - Select
Noneto disable theDisplay Sound
- Select the
- To customize the look of the alert:
- Change the
Background Color,Border Color,Title ColorandContent Colorfor both, Light and Dark themes - After saving form, click on
Previewto see how the custom style will look
- Change the
- Go to
Alertand create new entry - Select an
Alert Typeand change the alertTitle, if needed - Set the
From DateandUntil Dateto specify the alert duration - Enter and format the
Messageof alert - Set the
For Rolesand/or theFor Usersto specify the alert recipients - Check
Is Repeatableto display the alert more than once, and set theNumber of Repeats - After submitting the alert:
- The
Seen Bytable will be visible and will include all the reached users and datetime of reach
- The
- In list view, check the total number of unique users the alert has
Reached
- Go to
Alerts Settingsto enable or disable the module - If realtime events isn't working for some reason:
- Check
Use Fallback Sync Methodfield to enable using the fallback method - Set the
Fallback Sync Delayfield with the number of minutes to wait between sync requests
- Check
Fallback Sync Delay, the more sync requests sent to server.
If you find bug in the plugin, please create a bug report and let us know about it.
This repository has been released under the MIT License.


