Changes

Jump to navigation Jump to search
Switch to Syntax-Highlight for code.
Line 158: Line 158:  
1. On the public website, install the following <code>kiosk_slides.php</code> file
 
1. On the public website, install the following <code>kiosk_slides.php</code> file
    +
<syntaxhighlight lang=php>
 
  <?php
 
  <?php
 
  header("Content-type: text/csv");
 
  header("Content-type: text/csv");
 
   
 
   
 
  readfile('<nowiki>https://docs.google.com/spreadsheets/d/e/</nowiki><google_sheet_key>/pub?gid=0&single=true&output=csv');
 
  readfile('<nowiki>https://docs.google.com/spreadsheets/d/e/</nowiki><google_sheet_key>/pub?gid=0&single=true&output=csv');
 
+
</syntaxhighlight>
 
where <code><google_sheet_key></code> is the "Publish to Web" key for the google sheet listing the slides and display times (keep this a secret if there are shared links to the presentations in this sheet).
 
where <code><google_sheet_key></code> is the "Publish to Web" key for the google sheet listing the slides and display times (keep this a secret if there are shared links to the presentations in this sheet).
   Line 169: Line 170:  
2. In the same directory as <code>kiosk_slides.php</code>, create the <code>kiosk.html</code> page. Each Pi kiosk will look at this page, which cycles through the presentations as specified in the google sheet. Note that there is nothing private (ie no secrets) in the webpage itself. Even accessing the <code>kiosk_slides.php</code> file will only display the google sheet contents with the public presenation keys (but not any shared editable links).
 
2. In the same directory as <code>kiosk_slides.php</code>, create the <code>kiosk.html</code> page. Each Pi kiosk will look at this page, which cycles through the presentations as specified in the google sheet. Note that there is nothing private (ie no secrets) in the webpage itself. Even accessing the <code>kiosk_slides.php</code> file will only display the google sheet contents with the public presenation keys (but not any shared editable links).
 
   
 
   
<nowiki>
+
<syntaxhighlight lang=html>
 
  <!DOCTYPE html>
 
  <!DOCTYPE html>
 
  <html lang="en">
 
  <html lang="en">
Line 351: Line 352:  
       </body>
 
       </body>
 
  </html>
 
  </html>
  </nowiki>
+
  </syntaxhighlight>

Navigation menu