[Ovmsdev] Added Pushover and SSL client support

Michael Balzer dexter at expeedo.de
Sat Oct 19 18:40:55 HKT 2019


…or alternatively / additional to the pcp scheme implement "start" & "stop" commands as shown by the v2/v3 servers.


Am 19.10.19 um 12:38 schrieb Michael Balzer:
> Marko,
>
> I guess you already saw my quick fix to the pushover module. Failing to clear the "read" flag leads to messages being held indefinitely by the notification
> system.
>
> The fix is no real solution, as the current implementation will drop messages being raised during a network outage. A notify reader may use the "read" flag to
> keep the messages on temporary loss of connectivity, but it needs to retry sending itself. There is no automatic re-delivery of messages. So you need to add
> some flag telling the component to check for undelivered messages, as is shown in the server v2 / v3 code.
>
> Also, as you're able to tell by your nice filter mechanism if a notification should be sent to the pushover service, you should check that filter already in
> the filter callback. By doing so, messages without actual readers won't be queued in the first place, so that saves processing time and RAM.
>
> I was also surprised by the service running without activation. The standard scheme for optional components is to implement the "pcp" power control scheme and
> add an AutoInit() integration.
>
> Regards,
> Michael
>
>
> Am 18.10.19 um 15:25 schrieb Michael Balzer:
>> The Pushover support isn't enabled now in our default builds, because…
>>
>> a) MBEDTLS_PSK_MODES defaults to "no"
>> b) MG_ENABLE_SSL also defaults to "no"
>> c) OVMS_COMP_PUSHOVER would default to "yes" but depends on a) + b)
>>
>> Should we set these to "yes" for the edge release now?
>>
>> Regards,
>> Michael
>>
>>
>> Am 29.07.19 um 21:07 schrieb Marko Juhanne:
>>> Hello all,
>>>
>>> I've been wanting to have a bit more configurable notification system on my mobile phone compared to the OVMS mobile app (quiet hours, different message
>>> priority levels, override quiet hours with emergency priority, custom sounds, persistent notifications demanding acknowledgment etc).  I already use
>>> Pushover as notification platform for my home automation system and it has worked nicely for these two past years so I decided to port Pushover client to
>>> OVMS as well.
>>>
>>> For those who don't know, Pushover is a notification platform that has apps for iOS and Android. They also have a desktop (actually web) application as
>>> well. You create an account and then register your application. There's a 5 USD per platform one-time fee, which I find quite reasonable. Message limit is
>>> 7500 messages / month / application.  So if you have multiple cars, you could register them as individual applications.  I'm not affiliated with the
>>> company, just a happy customer.
>>>
>>> There are now commits for Pushover support on my fork (https://github.com/mjuhanne/Open-Vehicle-Monitoring-System-3). It's up to date with the main branch,
>>> and has the SWCAN commits as well. I would appreciate if others could test it before making a pull request, since there are now quite many changes.  I
>>> didn't want to add another http client, so I used Mongoose. But then after enabling SSL support using mbedssl I found out that there's this client space
>>> "struct mg_connect_opts" that will be too small (and causes crash) if MG_ENABLE_SSL is not enabled also in every component that uses Mongoose. 
>>>
>>> To configure Pushover, there's a new Config/Notifications page on OVMS. You can filter which notifications and events will be relayed and select their
>>> priority levels accordingly. I thought about using web config pluging, but maybe we could integrate this page to configure notifications for OVMS mobile
>>> apps as well?
>>>
>>> Best regards,
>>> Marko Juhanne
>>>  
>>>
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.openvehicles.com
>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>
>> -- 
>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>
> -- 
> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20191019/df56d34e/attachment.htm>


More information about the OvmsDev mailing list