<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Christopher,<br>
<br>
thanks :)<br>
<br>
The caching is necessary as a means to keep mobile data volume low
-- it's still expensive over here. There is currently no user info
on the caching.<br>
<br>
For the compact format, I'm not sure how much that saves on transfer
volume: gzip transport is enabled on the OCM server, and a JSON
stream should be perfect food for gzip.<br>
<br>
A much better solution would be possible if the OCM API allows to
query for updates, for example like this:<br>
<br>
...&updatedafter=<timestamp><br>
<br>
As I'm now using the charge point ID as the primary key, this would
allow for more frequent updates without adding too much data volume.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 01.02.2015 um 03:13 schrieb
Christopher Cook:<br>
</div>
<blockquote cite="mid:54CD8BC8.9060407@webprofusion.com" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><br>
Michael,<br>
<br>
Nice work! If you're interested in extending the OCM integration
at all you could consider:<br>
<ul>
<li>Add &includecomments=true to the API call and you will
get a UserComments list for locations where people have left
check-in comments, you will also get a MediaItems list when
people have added photos. <br>
</li>
<ul>
<li>Example with lots of comments: <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://api.openchargemap.io/v2/poi/?chargepointid=5546&includecomments=true">http://api.openchargemap.io/v2/poi/?chargepointid=5546&includecomments=true</a>
<br>
</li>
<li>Example with several images:
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://api.openchargemap.io/v2/poi/?chargepointid=23178&includecomments=true">http://api.openchargemap.io/v2/poi/?chargepointid=23178&includecomments=true</a></li>
</ul>
<li>You could add basic buttons to edit, comment and uploads
photos. These would need to launch a browser activity with
the appropriate URL</li>
<ul>
<li>Edit: <span style="color: rgb(199, 37, 78);
font-family: Menlo, Monaco, Consolas, 'Courier New',
monospace; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 17.142858505249px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;
background-color: rgb(249, 242, 244);"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://openchargemap.org/site/poi/edit/">http://openchargemap.org/site/poi/edit/</a>{OCM-ID}</span></li>
<li>Add Comment: <span style="color: rgb(199, 37, 78);
font-family: Menlo, Monaco, Consolas, 'Courier New',
monospace; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 17.142858505249px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;
background-color: rgb(249, 242, 244);"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://openchargemap.org/site/poi/addcomment/">http://openchargemap.org/site/poi/addcomment/</a>{OCM-ID}</span></li>
<li>Add Photo: <span style="color: rgb(199, 37, 78);
font-family: Menlo, Monaco, Consolas, 'Courier New',
monospace; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 17.142858505249px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;
background-color: rgb(249, 242, 244);"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://openchargemap.org/site/poi/addmediaitem/">http://openchargemap.org/site/poi/addmediaitem/</a>{OCM-ID}</span></li>
<li>Add A New Location (bit more complex an demanding on the
browser): <span style="color: rgb(199, 37, 78);
font-family: Menlo, Monaco, Consolas, 'Courier New',
monospace; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 17.142858505249px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;
background-color: rgb(249, 242, 244);"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://openchargemap.org/site/poi/add">http://openchargemap.org/site/poi/add</a></span></li>
</ul>
</ul>
I would invalidate the cache a bit more frequently than 4 weeks
(depending on what it's caching). In regions where OCM is
popular we would have a number of POI updates every day. I don't
know if the app informs the user they're seeing cached data and
lets them do anything about it?<br>
<br>
On a tanget, we do have an experimental (subject to change) API
call for smaller POI result sets: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://api.openchargemap.io/v2/compactpoi/">http://api.openchargemap.io/v2/compactpoi/</a>
it's the same as the /poi call in terms of filters but it
returns a much more concise result set. Might be worth looking
at.<br>
<br>
Best regards,<br>
Christopher Cook<br>
<br>
On 01/02/2015 06:17, Michael Balzer wrote:<br>
</div>
<blockquote cite="mid:54CD548B.7060803@expeedo.de" type="cite">Hi
everyone, <br>
<br>
I fixed the 2.3 compatibility issue. Turned out it was in fact a
cache error combined with a RAM issue. <br>
<br>
Test APK release can be downloaded from: <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://dexters-web.de/f/tw/oVMS-release-3.3.1.apk">http://dexters-web.de/f/tw/oVMS-release-3.3.1.apk</a>
<br>
<br>
Github kept telling me "auth error", so I created a pull request
and merged it myself => <br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/openvehicles/Open-Vehicle-Android/commits/master">https://github.com/openvehicles/Open-Vehicle-Android/commits/master</a>
<br>
<br>
This includes... <br>
<br>
Version 3.3.1: … <br>
Michael Balzer authored 6 minutes ago <br>
<br>
- Fixed OCM region caching, added cache validation based on
time: <br>
cache reload triggered once every 4 weeks <br>
- Added OCM maxresults configuration (invalidates cache) <br>
(+ changed OCM settings layout to TableLayout) <br>
- Switched OCM JSON parsing to GSON library to reduce RAM usage;
<br>
now >500 chargepoints loadable on Android 2.3 devices again
<br>
- Implemented OCM filtering by vehicle range <br>
<br>
Version 3.2.3: … <br>
Michael Balzer authored 14 days ago <br>
<br>
- OCM API update: fixes missing stations, missing detail data <br>
and station address encoding issues <br>
- USSD code dialog is now text field allowing "*" and "#", <br>
default "*100#" (account balance query in most networks) <br>
- 12V battery state display (car info) <br>
- Renault Twizy: "Homelink" gets "Profile" and extended by
"Default" <br>
<br>
<br>
Testing & feedback is welcome :-) <br>
<br>
Regards, <br>
Michael <br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OvmsDev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
</pre>
</body>
</html>