<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Andreas!</p>
    <p><span id="result_box" class="" lang="en"><span>Tell me</span> <span>-</span>
        <span>why do you</span> <span>need a</span> <span>flask?</span><br>
        <span>Flask -</span> <span>web framework</span><span>, and you
          have</span> <span class="">a function</span><span>,</span> <span
          class="">framed by</span> <span class="">"@app.route"</span>
        <span>is caused not</span> <span class="">through the web</span><span>,
          and from</span> <span class="">the same program</span><span>.</span><br>
        <span>Try to</span> <span>remove the</span> <span class="">"@
          app.route"</span> <span>to</span> <span class="">function</span><span>.</span><br>
        <span>Also</span><span>,</span> <span>you</span> <span
          class="">will not be initialized</span> <span>"g.db".</span>
        <span class="">Think about</span> <span class="">why.</span></span></p>
    <br>
    <div class="moz-cite-prefix">20.11.2016 21:23, Andreas Dorfner
      пишет:<br>
    </div>
    <blockquote
      cite="mid:eb515245-0490-c69a-74d4-8574537b3980@stud.hs-regensburg.de"
      type="cite">Hello everyone,
      <br>
      <br>
      I'm new to python and flask web development.
      <br>
      I have to realize a data logger using flask. By using another
      framework called 'pymodbus', I get some data from
      <br>
      an energy meter and save that data to a variable called 'crv_data'
      (see file attached). This part is working so far!
      <br>
      <br>
      The second part of the project contains the storage of 'crv_data'
      to a SQLite-Database. For that, I'm using flask.
      <br>
      For creating a table with five columns, a file 'schema.sql' (also
      attached) is included.
      <br>
      <br>
      If the file 'logger.py' is running, a database is produced with
      the desired layout and some data in 'crv_data' is available.
      <br>
      But there is no data included in the database.
      <br>
      <br>
      I think there is an error in function 'add_entry()' (starting in
      line 72 of logger.py file), because if I call the function
      <br>
      in the infinite loop (line 103), the program stops running.
      <br>
      Maybe I have to say that I using Beaglebone Black with running
      Debian on it.
      <br>
      <br>
      Does anybody have an idea, why the program doesn't work?
      <br>
      Many thanks,
      <br>
      Andreas
      <br>
      <br>
      <br>
      ---
      <br>
      Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
      <br>
      <a class="moz-txt-link-freetext" href="https://www.avast.com/antivirus">https://www.avast.com/antivirus</a>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Flask mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Flask@python.org">Flask@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/flask">https://mail.python.org/mailman/listinfo/flask</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dmitry Podkovyrkin
email: <a class="moz-txt-link-abbreviated" href="mailto:d@ddipp.net">d@ddipp.net</a>
</pre>
  </body>
</html>