Hello Mark, Chris, and other OVMS users and developers...
I am happy with all of Mark's outline with only one point for debate. Admittedly, I am new to OpenChargeMap API and OVMS programming, and so maybe I simply don't understand how things work, but...
As the OVMS server will be performing the OpenChargeMap API on behalf of the partner instead of the portable app performing the OpenChargeMap API (more-directly in the control of the partner)... is it really necessary for the OVMS server to masquerade as the partner... using their identity for authentication with OpenChargeMap?
I'd prefer to avoid requiring the user to set-up an independent account with OpenChargeMap and then permit OVMS to operate on behalf of that newly-created account. Could not the OVMS server simply use its own account (for everyone) and simply provide an information field about the identification of the OVMS user?
My primary interest here is in making it as simple as possible for the OVMS user to opt-in. Requiring them to sign up with OpenChargeMap and provide a PIN or key from the account is an additional step that will prove to be a barrier for users that are willing to opt-in as long as it is merely as easy as a button-press.
Thanks,
Lee.
On 05/21/2014 04:12 AM, Christopher Cook wrote:
....[snip]........[/snip]....
One option I'm pondering is for apps to be able to request the OCM Session Token just by supplying a PIN code and Username to the API, the user would need to go to the OCM website to generate the pin code (and conform the expected Username for it to work) probably by starting a certain OCM url with an API Key specific to OVMS.
On 21/05/2014 15:23, Kevin Sharpe wrote:
FYI, I’ve asked Lee Howard from Mainpine to take a look at this in detail.From: Mark Webb-Johnson <mark@webb-johnson.net <mailto:mark@webb-johnson.net>>
Kevin Sharpe | Founder & Patron | Zero Carbon World is a UK Registered Charity #1141347
Reply-To: OVMS Developers <ovmsdev@lists.teslaclub.hk <mailto:ovmsdev@lists.teslaclub.hk>>To: OVMS Developers <ovmsdev@lists.teslaclub.hk <mailto:ovmsdev@lists.teslaclub.hk>>
Date: Wednesday, 21 May 2014 07:19....[snip]....
Subject: Re: [Ovmsdev] Open Charge Map
Here is an email with a proposal / suggest I sent out last year. This would be wonderful to do, just limited resources to do it with.
_*Partners*_
The server will maintain a database of partners, and their API
access keys. This database should allow for PUSH messages (via
HTTP) to the partner. If PUSH is enabled, every time a charging
session is updated (either started or completed), the server will
connect to each partner (in randomised order) and send them the
information for recent charges. The server will also provide an
API to allow partners to PULL messages past a certain date/time
stamp (to allow for periodic synchronisation).
....[snip]....
Partners would just have to subscribe to the system (signing up
with a user account and being given an API key). They would have
to agree to the license terms, but other than that there would be
no restrictions to partnership.
--
*Lee Howard*
*Mainpine, Inc. Chief Technology Officer*
Tel: +1 866 363 6680 | Fax: +1 360 462 8160
lee.howard@mainpine.com | www.mainpine.com
_______________________________________________
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev