<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Those two metrics are available in v2 protocol:<div class=""><br class=""></div><div class=""><ul class="MailOutline"><li class="">Both in doors5, as part of the “D” message</li></ul><div><br class=""></div><div>So, the iOS App should have them delivered. But the iOS App doesn’t handle anything beyond doors3 in the “D” message at the moment. That would not be too hard to add, but you’d be unlikely to get the change 100% without an ability to test. Displaying on the screen itself is probably not too hard. Apple has some new requirements for App Store submission, including requiring support for apple sign on, that I am not sure if we now meet (so getting this approved maybe a hassle). If someone makes the change, I will try to get it through.</div><div><br class=""></div><div><u class=""><b class="">Unified App</b></u></div><div><br class=""></div><div>I have been concentrating on the unified app recently, rather than trying to extend the iOS specific App. But it is hard going, and a real struggle. <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">I’ve got forty years of programming experience, but am very new to these unified frameworks.</span></div><div><br class=""></div><div>Compared to the native app frameworks, these unified app frameworks are a mess. Poor documentation. Breaking changes on every version upgrade. Outdated example code. Unmaintained libraries. The open source ones are like perl - 10 libraries to do variants of the same thing and no idea which one is the best. The majority simply don’t work on the latest version of the framework. I like Xamarin (which doesn’t suffer front too many of these problems), but it is just too proprietary for my taste (and I am scared MS will shut it down, or restrict it in some way). We use Monaca (phone gap based) at work, but it is just too restrictive and too ‘webby'.</div><div><br class=""></div><div><br class=""></div><div>I have decided to try to implement the App in react-native, which seems to be the most up-to-date and modern of the open source frameworks. It is certainly fast, but the breaking changes in each new versions are a nightmare for those new to the framework (like me). Any example code / library more than a few months old just doesn’t work properly. The nice thing about this framework is that so long as we stick to pure javascript, we can self-publish a development version of the App, and load it remotely from the ‘expo’ client that runs on Android and iOS phones and tables. It is incredibly quick to iterate through changes, without all the code signing crap, App Store approvals and delays. We would still use the app stores to publish final versions. For example, my current first couple of evenings very basic attempt at building using this framework is here:</div><div><br class=""></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div><a href="https://exp.host/@markwj/Open-Vehicle-React-App" class="">https://exp.host/@markwj/Open-Vehicle-React-App</a></div></div></blockquote><div class=""><div><br class=""></div><div>Install the expo client, point the camera at that QR code, and the App will be downloaded and run locally. Some comments:</div><div><br class=""></div><div><ul class="MailOutline"><li class="">Status tab is for vehicle overall status. This is a web view, and will be loaded dynamically (with callbacks to be able to retrieve metrics, issue commands) for per-vehicle-type and per-customer customisation.<br class=""><br class=""></li><li class="">Vehicle tab is for vehicle environment status. Same as the status tab, this is a web view.<br class=""><br class=""></li><li class="">Location tab is a map.<br class=""><br class=""></li><li class="">Messages tab are chat style messages for talking to the car.<br class=""><br class=""></li><li class="">Settings tab will change in this app, and will be for settings of that particular select car.<br class=""><br class=""></li><li class="">The above tabs may change (in particular, I am not sure about status and vehicle tabs - perhaps we need just one, and then have some customisable way of having multiple screens per car type. I don’t like that it is fix to two screens. So I am thinking maybe just one screen, with tabs along the top, or swipe, to switch between pages.<br class=""><br class=""></li><li class="">Swipe left for the menu drawer. This is where the list of your vehicles will be, as well as menu options (create new vehicle, etc).</li></ul></div><div><br class=""></div><div>The basic ideas behind this are unchanged, as I outlined before. Vehicle API agnostic, central metrics store, user customisable display, etc.</div><div><br class=""></div><div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">I'm working in the open on this, committing as I go along. So dozens/hundreds of little commits, often correcting each other. It is a prototype, that I am using to just test each of the technologies we need (e.g. can the web view retrieve metrics from the app), can we support websocket connections to OVMS v2 servers, etc. I have no idea if it can become a production App, but so far it seems that it can.</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">If anybody wants to jump onboard and help, that would be most appreciated. Especially if you have javascript or react experience. Likewise, if anybody wants to try this in another framework, that is also possible. At this point, I am simply not sure what is the best approach.</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Regards, Mark.</div></div><div><br class=""></div><div><blockquote type="cite" class=""><div class="">On 23 Jun 2020, at 6:45 PM, Jaunius Kapkan <<a href="mailto:jaunius@gmx.com" class="">jaunius@gmx.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=us-ascii" class=""><div dir="auto" class=""><div dir="ltr" class=""><meta http-equiv="content-type" content="text/html; charset=us-ascii" class=""><span style="caret-color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="">Hi,</span><div style="caret-color: rgb(0, 0, 0);" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0);" class="">Can someone guide on the best approach here. I have no access to MAC so it would be more of a trial and error approach.  Current view:</div><div style="caret-color: rgb(0, 0, 0);" class=""><span id="cid:9596E0A0-5E9D-46CB-BD8E-C75007898CFB"><0dddcf99-4faa-4b3a-a523-da98780ce30d.jpg></span><br class=""></div><div style="caret-color: rgb(0, 0, 0);" class="">Metrics:</div><div style="caret-color: rgb(0, 0, 0);" class=""><span id="cid:1CFD02E6-7568-49F6-8DF6-FF16C8F35513"><f370a907-df44-4b55-bf0a-b7eb11ef1382.jpg></span><br class=""></div><div style="caret-color: rgb(0, 0, 0);" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0);" class="">Or are we close to the unified app for both iOS and Android and I should wait?<br class=""><br class="">Regards,</div><br class=""><div dir="ltr" class=""><div style="margin: 0cm 0cm 0.0001pt;" class="">Regards,</div><div style="margin: 0cm 0cm 0.0001pt;" class=""><b class=""><span lang="EN-US" style="background-color: rgba(255, 255, 255, 0);" class="">Jaunius Kapkan </span></b><i style="background-color: rgba(255, 255, 255, 0);" class="">[Sent from cellphone]</i></div></div></div></div>_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>