Tour JSON documents that can be inserted into an instance's database.
The JSON format is described in https://github.com/OneZoom/OZtree/blob/main/controllers/tour.py
You can insert a single tour or multiple tours into a OneZoom instance with the upload.py
script:
./upload.py http://localhost:8000/ *.json
You can also use CURL directly:
curl -X PUT -H "Content-Type: application/json" --user admin \
http://localhost:8000/tour/data.json/edge_species \
-d @edge_species.json
Fetch it back again with:
curl http://localhost:8000/tour/data.json/edge_species
Or as HTML with:
curl http://localhost:8000/tour/data.html/edge_species
.md
file which at least contains a link to your image and the source of the image, e.g:[![Various frogs and toads](Various_frogs_and_toads.jpeg)](https://commons.wikimedia.org/wiki/File:Anoures.jpg)
* *source*: https://commons.wikimedia.org/wiki/File:Anoures.jpg
Commit and push to github. You can now refer to it in a tour with "frogs/Various_frogs_and_toads.jpeg"
, e.g.
Once uploaded you can trigger a tour manually in the javascript console with:
onezoom.controller.tour_start('/tour/data.html/edge_species')
Or trigger it on load (although be warned that autoplaying will not trigger before a click):
/life?tour=/tour/data.html/superpowers
See the Creating auth users & groups section of README.markdown
Summary being:
-a pass
Then use the username / password with the curl command above.