<html>
  <head>
    <meta content="text/html; charset=ISO-8859-15"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Nikolay,<br>
      <br>
      you found an API server bug :-)<br>
      <br>
      Solution: delete all domain cookies for "openvehicles.com" from
      your browser before using the API.<br>
      <br>
      The API server gets confused by multiple cookies. If you visit
      <a class="moz-txt-link-abbreviated" href="http://www.openvehicles.com">www.openvehicles.com</a> before using the API, you get a persistent
      PHP session cookie like this:<br>
      <br>
      Name    SESS619b2b3f204291df32506531f8b446dd<br>
      Host    .openvehicles.com<br>
      Pfad    /<br>
      <br>
      As the host defines ".openvehicles.com" and path "/", this cookie
      also gets sent to the API host, which then confuses this one with
      the "ovmsapisession" cookie, i.e.<br>
      <br>
      Name    ovmsapisession<br>
      Host    tmc.openvehicles.com<br>
      Pfad    /api/<br>
      <br>
      Regards,<br>
      Michael<br>
      <br>
      <br>
      Am 05.06.2014 23:46, schrieb Nikolay Shishkov:<br>
    </div>
    <blockquote
      cite="mid:1402004777.40857.YahooMailNeo@web141202.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:12pt">
        <div><span>Thanks Michael, </span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
          Grande', sans-serif; font-style: normal; background-color:
          transparent;"><span>I am getting "login ok" when pressing on
            the login button, but then all the other buttons are giving
            "authentication error" message. </span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
          Grande', sans-serif; font-style: normal; background-color:
          transparent;"><span>I could check that the cookie is sent with
            the request, but the server seems to respond with the 400
            code. </span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
          Grande', sans-serif; font-style: normal; background-color:
          transparent;">I tried in Chrome. Where, how do you use the
          page?</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
          Grande', sans-serif; font-style: normal; background-color:
          transparent;">Nikolay</div>
        <div class="qtdSeparateBR"><br>
          <br>
        </div>
        <div class="yahoo_quoted" style="display: block;">
          <div style="font-family: HelveticaNeue, 'Helvetica Neue',
            Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:
            12pt;">
            <div style="font-family: HelveticaNeue, 'Helvetica Neue',
              Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:
              12pt;">
              <div dir="ltr"> <font size="2" face="Arial"> On Thursday,
                  June 5, 2014 10:59 PM, Michael Balzer
                  <a class="moz-txt-link-rfc2396E" href="mailto:dexter@expeedo.de"><dexter@expeedo.de></a> wrote:<br>
                </font> </div>
              <br>
              <br>
              <div class="y_msg_container">
                <div id="yiv0016367475">
                  <div> Nikolay,<br clear="none">
                    <br clear="none">
                    that's right, I intend to get this running without
                    an otherwise necessary proxy, i.e. for local HTML
                    pages on mobile devices or the like. I've been in
                    contact with Mark about CORS on the perl server.<br
                      clear="none">
                    <br clear="none">
                    A server could of course be used, most simply the
                    HTTP API itself could deliver the client page, but
                    CORS should now enable to cope without and open
                    possible cross origin data/control integrations. Not
                    sure about static pages for this though, not yet
                    tested. I think it would be cool to just load some
                    HTML file in your browser and have a graphical OVMS
                    client.<br clear="none">
                    <br clear="none">
                    The "code" is currently just a first test bed HTML
                    page to interact with the HTTP API. No graphics,
                    just a simple table view. Works, but is clumsy as
                    hell.<br clear="none">
                    <br clear="none">
                    Try yourself, I've attached it.<br clear="none">
                    <br clear="none">
                    Regards,<br clear="none">
                    Michael<br clear="none">
                    <br clear="none">
                    <br clear="none">
                    <div class="yiv0016367475moz-cite-prefix">Am
                      05.06.2014 11:26, schrieb Nikolay Shishkov:<br
                        clear="none">
                    </div>
                    <blockquote type="cite">
                      <div class="yiv0016367475yqt7756636819"
                        id="yiv0016367475yqt66378">
                        <div style="color: rgb(0, 0, 0); font-family:
                          HelveticaNeue, 'Helvetica Neue', Helvetica,
                          Arial, 'Lucida Grande', sans-serif; font-size:
                          12pt; background-color: rgb(255, 255, 255);">
                          <div class="yiv0016367475" style=""><span
                              class="yiv0016367475" style="">Hi
                              Michael, </span></div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;"><span class="yiv0016367475"
                              style=""><br class="yiv0016367475"
                                style="" clear="none">
                            </span></div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;">I am very interested in the
                            "Browser client using HTTP API and
                            jQuery/Flot for visualization". From the
                            comment that CORS is needed I suspect you
                            want to have the html5 page locally and then
                            fetch data from the server while using other
                            sources for context data. </div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;">Have you considered running
                            this on a separate server that serves as a
                            gateway to the TMC server?</div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;"><br clear="none">
                          </div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;">Have you uploaded the code
                            somewhere?</div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;"><br clear="none">
                          </div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;">I have been playing around
                            with C# client and was thinking of using it
                            on an asp.net server...</div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;"><br clear="none">
                          </div>
                          <div class="yiv0016367475" style="color:
                            rgb(0, 0, 0); font-size: 16px; font-family:
                            HelveticaNeue, 'Helvetica Neue', Helvetica,
                            Arial, 'Lucida Grande', sans-serif;
                            font-style: normal; background-color:
                            transparent;">Nikolay</div>
                          <div class="yiv0016367475qtdSeparateBR"><br
                              clear="none">
                            <br clear="none">
                          </div>
                          <div class="yiv0016367475yahoo_quoted"
                            style="display: block;">
                            <div class="yiv0016367475"
                              style="font-family: HelveticaNeue,
                              'Helvetica Neue', Helvetica, Arial,
                              'Lucida Grande', sans-serif; font-size:
                              12pt;">
                              <div class="yiv0016367475"
                                style="font-family: HelveticaNeue,
                                'Helvetica Neue', Helvetica, Arial,
                                'Lucida Grande', sans-serif; font-size:
                                12pt;">
                                <div class="yiv0016367475" dir="ltr"
                                  style=""> <font class="yiv0016367475"
                                    style="" size="2" face="Arial"> On
                                    Wednesday, June 4, 2014 11:22 PM,
                                    Michael Balzer <a
                                      moz-do-not-send="true"
                                      rel="nofollow" shape="rect"
                                      class="yiv0016367475moz-txt-link-rfc2396E"
                                      ymailto="mailto:dexter@expeedo.de"
                                      target="_blank"
                                      href="mailto:dexter@expeedo.de"><dexter@expeedo.de></a>
                                    wrote:<br class="yiv0016367475"
                                      style="" clear="none">
                                  </font> </div>
                                <br class="yiv0016367475" style=""
                                  clear="none">
                                <br class="yiv0016367475" style=""
                                  clear="none">
                                <div class="yiv0016367475" style="">Am
                                  04.06.2014 07:38, schrieb Gianluca
                                  Magalotti:<br class="yiv0016367475"
                                    style="" clear="none">
                                  > For nice2have features I'll wait
                                  for your list (I have my personal <br
                                    class="yiv0016367475" style=""
                                    clear="none">
                                  > list too but maybe we'll have a
                                  later focus on that)<br
                                    class="yiv0016367475" style=""
                                    clear="none">
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                  So here it is.<br
                                    class="yiv0016367475" style=""
                                    clear="none">
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                  If other Twizy drivers would like to
                                  add their ideas, you're welcome.<br
                                    class="yiv0016367475" style=""
                                    clear="none">
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                  I'll do my best to check new ideas
                                  against my collected knowledge of <br
                                    class="yiv0016367475" style=""
                                    clear="none">
                                  what's possible up to now and give you
                                  some feedback.
                                  <div class="yiv0016367475"
                                    id="yiv0016367475yqtfd99580"
                                    style=""><br class="yiv0016367475"
                                      style="" clear="none">
                                    <br class="yiv0016367475" style=""
                                      clear="none">
                                    Regards,<br class="yiv0016367475"
                                      style="" clear="none">
                                    Michael</div>
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                  -- <br class="yiv0016367475" style=""
                                    clear="none">
                                  Michael Balzer * Paradestr. 8 *
                                  D-42107 Wuppertal<br
                                    class="yiv0016367475" style=""
                                    clear="none">
                                  Fon 0202 / 272 2201 * Handy 0176 / 206
                                  989 26
                                  <div class="yiv0016367475"
                                    id="yiv0016367475yqtfd18255"
                                    style=""><br class="yiv0016367475"
                                      style="" clear="none">
                                    <br class="yiv0016367475" style=""
                                      clear="none">
                                  </div>
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                  <div class="yiv0016367475"
                                    id="yiv0016367475yqtfd30669"
                                    style="">_______________________________________________<br
                                      class="yiv0016367475" style=""
                                      clear="none">
                                    OvmsDev mailing list<br
                                      class="yiv0016367475" style=""
                                      clear="none">
                                    <a moz-do-not-send="true"
                                      rel="nofollow" shape="rect"
                                      class="yiv0016367475"
                                      ymailto="mailto:OvmsDev@lists.teslaclub.hk"
                                      target="_blank"
                                      href="mailto:OvmsDev@lists.teslaclub.hk"
                                      style="">OvmsDev@lists.teslaclub.hk</a><br
                                      class="yiv0016367475" style=""
                                      clear="none">
                                    <a moz-do-not-send="true"
                                      rel="nofollow" shape="rect"
                                      class="yiv0016367475"
                                      target="_blank"
                                      href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev"
                                      style="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
                                      class="yiv0016367475" style=""
                                      clear="none">
                                  </div>
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                  <br class="yiv0016367475" style=""
                                    clear="none">
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <br clear="none">
                      <fieldset
                        class="yiv0016367475mimeAttachmentHeader"></fieldset>
                      <br clear="none">
                      <pre>_______________________________________________
OvmsDev mailing list
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv0016367475moz-txt-link-abbreviated" ymailto="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv0016367475moz-txt-link-freetext" target="_blank" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
                    </blockquote>
                    <br clear="none">
                    <pre class="yiv0016367475moz-signature">-- 
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
</pre>
                  </div>
                </div>
                <br>
                <div class="yqt7756636819" id="yqt96220">_______________________________________________<br
                    clear="none">
                  OvmsDev mailing list<br clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    ymailto="mailto:OvmsDev@lists.teslaclub.hk"
                    href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev"
                    target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
                    clear="none">
                </div>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <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>
    <br>
    <pre class="moz-signature" cols="50">-- 
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
</pre>
  </body>
</html>