sundriven
v0.6.0
Published
Very simple app to provide toaster-style notification reminders (daily or one-time) given relative to either the current time or to astronomical events such as dawn, sunrise, or sunset. Note that the astronomical event times are currently determined mathe
Downloads
2
Readme
sundriven
Very simple installable open web app to provide toaster-style notification reminders given relative to either the current time or to astronomical events such as dawn, sunrise, or sunset. Note that the astronomical event times are currently determined mathematically rather than by querying an online service.
Uses MeeusSunMoon for astronomical calculations.
I have experienced Geolocation errors periodically, but that may be due to my specific location or network settings.
Installation
npm install .
Higher priority todos
- Ask for notifications permission immediately so it will work the first time used!
- Debug and reinstall "install" button
- Get ES6 modules working
- Change cache.manifest to service worker; add
<link>
for Web Manifest discovery https://developer.mozilla.org/en-US/docs/Web/Manifest#Deploying_a_manifest_with_the_link_tag- Test offline manifest on server, ensuring no dependencies missing
- Add content policy directive indicating no Ajax needed, etc. (see if Firefox will, with an add-on if not by default, display this (for privacy reassurances to user))
- Test offline manifest on server, ensuring no dependencies missing
- Modularize and use localization function
_
(and separating out the locales as well including in createNotification file), so it can be reused across modules); publish to npm
Possible to-dos
- Allow fractional minutes (if able to keep input steps)
- Make geolocation options (and option to use
watchPosition
in place ofgetCurrentPosition
--the latter being used currently due to intermittent Geolocation errors) configurable - Option to auto-store latest latitude/longitude from Geolocation in order to work next time offline
- Indicate original expected time on notices? (since geoloc may have updated)
- Config to auto-delete expired timeouts (one-time ones) instead of just disabling
- Display dialogs instead of alerts/confirm for save/delete
- Optionally change close event (and message for it) to give optional prompt to snooze instead of just closing
- Allow specification of applicable date range or all
- Presets, e.g., for Baha'i Fast, obligatory prayers (relative to morning, noon, or sunset), dawn prayers (though configurable afterward, e.g., in relative minutes after or before)
Credits
Thanks to MeeusSunMoon for a great library and to dear_theophilus of openclipart for the Rising Sun public domain clip art.