<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I'm easy either way, whatever suits
everyone else.<br>
<br>
By the way I'm in the process of a bug update to the OCM API
documentation, which is always at: <a
href="http://openchargemap.org/site/develop/api">http://openchargemap.org/site/develop/api<br>
</a><br>
There is now also a sandboxed API for testing.<br>
<br>
Chris<br>
<br>
On 22/05/2014 15:46, Paul Churchley wrote:<br>
</div>
<blockquote
cite="mid:CAArqmi3YnOjXL9xWTOqmLnYaUyujVEF9OLMmDzqYrVwk6yibdg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
</div>
<div>There is a design principle at play here that we would do
well not to ignore and that is encapsulation.<br>
<br>
</div>
<div>As a general rule there are massive benefits to ensuring
that each system is as much as a "black box" as possible. By
that I mean that each system functions in isolation taking
care of its own business and not getting involved in the
business of other systems. Designing systems, programs etc
this way removes, or at least reduces, dependencies and
decouples functionality.<br>
<br>
</div>
<div>The way I see the integration of OVMS and OCM is that OCM
should remain as much as possible a static partner. It
should provide an API to allow the adding of locations,
checking in, handing out location data etc by anyone. Where
ever possible, it should not be pulling data from other
systems if we want to reduce these dependencies and remain
flexible.<br>
<br>
</div>
<div>Functionally this interface is identical to a person
doing the same things except that it is being automated. We
should therefore use the same processes. This is not a
database transfer, or a bulk data load, which would
functionally be initiated by OCM. It is an individual
checking in at a single location and so shouldn't we use the
same process... OVMS sends the data to OCM via the OCM API?
Which userid is used to access OCM is clear to me... it is
OVMS that is the source and so there must be a single user
in OCM through which OVMS intefaces with the OVMS user id
perhaps passed to OCM perhaps as a comment or in one of the
other API data fields that makes sense.<br>
<br>
</div>
<div>For OCM to pull data from OVMS, or any system from that
matter, is the wrong way to apporach this IMO.<br>
</div>
<br>
</div>
Paul<br>
</div>
<div class="gmail_extra"><br>
</div>
</blockquote>
<br>
</body>
</html>