Push notifications by email
Happy new year everyone :-) I just added an email notification channel to the server code, following a request for a personal OVMS server. https://github.com/openvehicles/Open-Vehicle-Monitoring-System/commit/172a50... As the Android notifications need the hard coded C2DM channel and C2DM is no longer supported, this is primarily meant as an alternative for those using their own server and not wanting to build their own App. It might also be useful for other users & the main server -- I would like being able to receive my Twizy trip reports by mail. Regards, Michael -- Michael Balzer * Paradestr. 8 * D-42107 Wuppertal Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
Michael, Neat, and simple. But, the notify.pl is a bit messy. Kind of advanced for most users. I’m wondering if I can add something to the server vehicle record to add an eMail address there, and make it automatically notify that address as well (if defined). Thoughts? Regards, Mark.
On 3 Jan, 2015, at 7:09 pm, Michael Balzer <dexter@expeedo.de> wrote:
Happy new year everyone :-)
I just added an email notification channel to the server code, following a request for a personal OVMS server.
https://github.com/openvehicles/Open-Vehicle-Monitoring-System/commit/172a50...
As the Android notifications need the hard coded C2DM channel and C2DM is no longer supported, this is primarily meant as an alternative for those using their own server and not wanting to build their own App.
It might also be useful for other users & the main server -- I would like being able to receive my Twizy trip reports by mail.
Regards, Michael
-- Michael Balzer * Paradestr. 8 * D-42107 Wuppertal Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
<dexter.vcf>_______________________________________________ OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
Mark, thanks :) For users running their own server, using some perl script should be no issue. But if you'd like to enable this function on the main server, there should be another way to subscribe. IMO best would be a simple checkbox or email address entry on the vehicle account management page that produces the entry for ovms_notifies. Adding a vehicle email or using the owner email would be an option too, I decided for the notifies because that fits semantically and makes use of the existing process and structures without adding complexity. Being able to add multiple subscriptions per vehicle is a nice bonus effect. Also, more channel types (i.e. Whatsapp or the like) can be added the same way. Regards, Michael Am 03.01.2015 um 15:17 schrieb Mark Webb-Johnson:
Michael,
Neat, and simple.
But, the notify.pl is a bit messy. Kind of advanced for most users.
I’m wondering if I can add something to the server vehicle record to add an eMail address there, and make it automatically notify that address as well (if defined).
Thoughts?
Regards, Mark.
On 3 Jan, 2015, at 7:09 pm, Michael Balzer <dexter@expeedo.de> wrote:
Happy new year everyone :-)
I just added an email notification channel to the server code, following a request for a personal OVMS server.
https://github.com/openvehicles/Open-Vehicle-Monitoring-System/commit/172a50...
As the Android notifications need the hard coded C2DM channel and C2DM is no longer supported, this is primarily meant as an alternative for those using their own server and not wanting to build their own App.
It might also be useful for other users & the main server -- I would like being able to receive my Twizy trip reports by mail.
Regards, Michael
-- Michael Balzer * Paradestr. 8 * D-42107 Wuppertal Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
<dexter.vcf>_______________________________________________ OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
-- Michael Balzer * Paradestr. 8 * D-42107 Wuppertal Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
participants (2)
-
Mark Webb-Johnson -
Michael Balzer