Comments (5)
I built #23 to help with this.
$ dogsheep-photos create-subset photos.db public.db \
"select sha256 from apple_photos where albums like '%Public%'"
And publish with Vercel:
$ datasette publish now public.db --project dogsheep-photos \
--about=dogsheep/dogsheep-photos \
--about_url="https://github.com/dogsheep/dogsheep-photos" \
--install=datasette-json-html \
--install=datasette-cluster-map
from dogsheep-photos.
Renaming this demo to dogsheep-photos.dogsheep.net
from dogsheep-photos.
Updated deploy command:
datasette publish now public.db --project dogsheep-photos \
--about=dogsheep/dogsheep-photos \
--about_url="https://github.com/dogsheep/dogsheep-photos" \
--install=datasette-json-html \
--install=datasette-cluster-map \
--title "Dogsheep Photos demo"
from dogsheep-photos.
https://dogsheep-photos.dogsheep.net/
from dogsheep-photos.
I have a deploy-demo.sh
script now:
#!/bin/bash
if [ -f public.db ]; then
rm public.db
fi
pipenv run dogsheep-photos create-subset photos.db public.db \
"select sha256 from apple_photos where albums like '%Public%'"
pipenv run sqlite-utils create-view public.db photos_on_a_map \
"select
date,
latitude,
longitude,
apple_photos.sha256,
uploads.ext,
json_object(
'title',
'Taken on ' || date,
'image',
'https://photos.simonwillison.net/i/' || uploads.sha256 || '.' || uploads.ext || '?w=400',
'link',
'https://photos.simonwillison.net/i/' || uploads.sha256 || '.' || uploads.ext || '?w=1200'
) as popup
from
apple_photos
join uploads on apple_photos.sha256 = uploads.sha256
where
latitude is not null
order by
date desc" \
--replace
pipenv run datasette publish now public.db --project dogsheep-photos \
--about=dogsheep/dogsheep-photos \
--about_url="https://github.com/dogsheep/dogsheep-photos" \
--install=datasette-json-html \
--install=datasette-pretty-json \
--install=datasette-cluster-map>=0.10 \
--title "Dogsheep Photos demo"
from dogsheep-photos.
Related Issues (20)
- Annotate photos using the Google Cloud Vision API HOT 5
- Expose scores from ZCOMPUTEDASSETATTRIBUTES HOT 7
- Import machine-learning detected labels (dog, llama etc) from Apple Photos HOT 13
- Only install osxphotos if running on macOS HOT 3
- Switch CI solution to GitHub Actions with a macOS runner HOT 1
- apple-photos command should work even if upload has not run HOT 1
- Ability to serve thumbnailed Apple Photo from its place on disk HOT 10
- bpylist.archiver.CircularReference: archive has a cycle with uid(13) HOT 11
- Try out ExifReader HOT 4
- create-subset command for creating a publishable subset of a photos database HOT 1
- Configurable URL for images HOT 1
- Rename project to dogsheep-photos HOT 8
- photos_with_apple_metadata view should include labels
- Invalid SQL no such table: main.uploads HOT 1
- KeyError: 'Contents' on running upload HOT 3
- photo-to-sqlite: command not found HOT 4
- bucket name
- Support to annotate photos on other than macOS OSes HOT 1
- ImportError: cannot import name 'formatargspec' from 'inspect'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dogsheep-photos.