10. Challenge
•
Plaques and written brochures provide
limited bandwidth and clumsy user
experience for explaining the buildings
and their significance
•
Wealth of rich media not currently being
shared; videos of historic dancing, singing,
acting
14. Layar setup
Step 1: Create a user account at Layar.com
Step 2: Upgrade to a publishing account at
layar.com/publishing
15.
16. http://code.google.com/p/porpoise/
PorPOISe is a server for Layar clients. It converts your data sets of POIs
(Points of Interest) into responses to the Layar client. Things like JSON
formatting and distance calculation are all done for you.
PorPOISe XML files and SQL databases as data stores.
Supported Layar features include:
1D (point), 2D (image) and 3D (model) objects
Custom actions
Custom filters (requires some PHP skills)
User authentication and personal layers (requires some more
PHP and web development skills)
17. Installing Porpoise
Step 1: download Porpoise from
http://code.google.com/p/porpoise/
Step 2: copy to your web server (I named
the porpoise root directory ‘layar’)
18. Setup the admin password
To generate an encrypted password, hit URL:
web/dashboard/crypt.php/admin=mypassword
Yields:
$_access["admin"] = '$1$.hLMpYz9$wsy198o7kZ3rfMdB0VXnA/';
Drop this into web/dashboard/users.inc.php
19. Setup config file
Open config/config.xml:
Setup the user:
<developer-id>espozi</developer-id>
<developer-key>Layar doesn't use a developer key anymore</developer-key>
Create an empty Layer:
DDiMIT XML layer configuration
<layer>
<name>ddimitdemo</name>
<connector>XMLPOIConnector</connector>
<source>ddimitdemo.xml</source>
</layer>
20. Add an empty layer XML
ddimitdemo.xml
<?xml version="1.0" encoding="UTF-8"?>
<layer>
<pois>
</pois>
</layer>
26. Test the Layer
•
Using the web
http://www.layar.com/publishing/testpage/page/ddimitdemo/
•
Using your phone:
–
Download the Layar browser to your
iPhone/Android
–
Login as your user
–
Click “Layers” -> “Test”