Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Dynamic slides using OpenOffice Impress <ul><ul><li>Lexatel Technologies, S.L. </li></ul></ul>
Dynamic presentations using OpenOffice Impress SQL queries and high-level API Carles Pina i Estany carles.pinaestany@ lexa...
<ul><li>What is a dynamic slide? </li></ul><ul><ul><ul><li>OpenOffice Impress Template </li></ul></ul></ul><ul><ul><ul><li...
<ul><li>Practical Applications </li></ul><ul><li>Information Desks </li></ul><ul><li>Point of Sale </li></ul><ul><li>Airpo...
<ul><li>Quick win: </li></ul><ul><li>After this presentation you will be able to: </li></ul><ul><ul><li>Grab the code  (ht...
Automatically refreshed
<ul><li>Architecture </li></ul>tcp Data Slides Python tcp MySQL Python Open Office <ul><li>Config: </li></ul><ul><li>SQL <...
<ul><li>Features </li></ul><ul><ul><li>Allows complete separation between interface design and system administration, data...
<ul><li>Problems </li></ul><ul><ul><li>OpenOffice v2.2 crashed often (New version 2.3 released 17-Sep is much more stable)...
<ul><li>Download </li></ul><ul><ul><li>Download code from http://www.lexatel.com/slides </li></ul></ul><ul><ul><li>Setup t...
<ul><li>3 types of code: </li></ul><ul><ul><li>-SQL queries </li></ul></ul><ul><ul><ul><li>sql[“name_object”]=”””select pa...
Nächste SlideShare
Wird geladen in …5
×

Dynamic Slides using OpenOffice.org Impress and Python

4.822 Aufrufe

Veröffentlicht am

How to fetch some data from Mysql using Python and update in real time the slides in OpenOffice.org Impress using Python-Uno

Veröffentlicht in: Technologie

Dynamic Slides using OpenOffice.org Impress and Python

  1. 1. Dynamic slides using OpenOffice Impress <ul><ul><li>Lexatel Technologies, S.L. </li></ul></ul>
  2. 2. Dynamic presentations using OpenOffice Impress SQL queries and high-level API Carles Pina i Estany carles.pinaestany@ lexatel.com
  3. 3. <ul><li>What is a dynamic slide? </li></ul><ul><ul><ul><li>OpenOffice Impress Template </li></ul></ul></ul><ul><ul><ul><li>Data behind it updated every several seconds, automatically </li></ul></ul></ul><ul><ul><ul><li>Data from external source: </li></ul></ul></ul><ul><ul><ul><ul><li>Mysql (implemented) </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Any Python code (implemented) </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Webservices </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Serial port </li></ul></ul></ul></ul>Data Source Program
  4. 4. <ul><li>Practical Applications </li></ul><ul><li>Information Desks </li></ul><ul><li>Point of Sale </li></ul><ul><li>Airport </li></ul><ul><li>Train Station </li></ul><ul><li>Any waiting room </li></ul><ul><li>Real Time Monitoring </li></ul>Any place where up-to-date information is critical.
  5. 5. <ul><li>Quick win: </li></ul><ul><li>After this presentation you will be able to: </li></ul><ul><ul><li>Grab the code (http://www.lexatel.com/slides) </li></ul></ul><ul><ul><li>Make an OpenOffice Impress template </li></ul></ul><ul><ul><li>Write the config.py file using: </li></ul></ul><ul><ul><ul><li>Mysql username and password </li></ul></ul></ul><ul><ul><ul><li>Mysql host </li></ul></ul></ul><ul><ul><ul><li>Write some queries </li></ul></ul></ul><ul><ul><li>Execute it! </li></ul></ul>
  6. 6. Automatically refreshed
  7. 7. <ul><li>Architecture </li></ul>tcp Data Slides Python tcp MySQL Python Open Office <ul><li>Config: </li></ul><ul><li>SQL </li></ul><ul><li>Other param. </li></ul>Your own application
  8. 8. <ul><li>Features </li></ul><ul><ul><li>Allows complete separation between interface design and system administration, databases, etc. Graphics designers can have fun! </li></ul></ul><ul><ul><li>100% remote administration. </li></ul></ul><ul><ul><li>You can use several screens (Dual Head, replicate the same image, etc.) </li></ul></ul><ul><ul><ul><li>CPU load: on average: 0% </li></ul></ul></ul><ul><ul><ul><li>Multiplatform! </li></ul></ul></ul>Screen 1 Screen 2
  9. 9. <ul><li>Problems </li></ul><ul><ul><li>OpenOffice v2.2 crashed often (New version 2.3 released 17-Sep is much more stable). We implemented watchdog to restart OO if needed. </li></ul></ul><ul><ul><li>Python and Mysql do not communicate well over a network (low-level design problem). Using sql-relay (or similar utilities) could avoid the problem. </li></ul></ul>
  10. 10. <ul><li>Download </li></ul><ul><ul><li>Download code from http://www.lexatel.com/slides </li></ul></ul><ul><ul><li>Setup the follow variables in config.py: </li></ul></ul><ul><ul><ul><li>dbhost, dbname, dbuser, dbpassword </li></ul></ul></ul><ul><ul><li>Assign odpfile1 and odpfile2 to some .odp file (if one fails, try another one) </li></ul></ul>
  11. 11. <ul><li>3 types of code: </li></ul><ul><ul><li>-SQL queries </li></ul></ul><ul><ul><ul><li>sql[“name_object”]=”””select param_value from table order by date limit 1””” </li></ul></ul></ul><ul><ul><li>-Code using high level API </li></ul></ul><ul><ul><ul><li>sql”code”]=””” </li></ul></ul></ul><ul><ul><ul><li>a=function(b,c,d) </li></ul></ul></ul><ul><ul><ul><li>config.ret=a </li></ul></ul></ul><ul><ul><ul><li>“”” </li></ul></ul></ul><ul><ul><li>-Code_step: same than Code but will move the graphic </li></ul></ul>

×