Skip to content

vmx/sentinel-to-atproto

Repository files navigation

Sentinel to ATproto

This is a Cloudflare worker that scrapes a STAC catalogue containing the Copernicus Sentinel-2 L2A data. It then publishes metadata records on ATProto.

Initial setup

npx wrangler kv namespace create STATE

Environment variables

You can put the environment variables into a .env file.

CLOUDFLARE_ACCOUNT_ID=8a53d9807182ed15692b1a3f4c12af96
CLOUDFLARE_API_TOKEN="mFmOTYwZjBjMTQ2OGUxY_TQ0YTk2NWYxYzljYTVj"
[email protected]
BLUEKSY_PASSWORD=Averysecurepassword

Development

To run the worker locally:

npm run dev

You can then trigger it via

curl -X GET http://localhost:8787/doit

When changing the wrangler.jsonc configuration, re-run the types generator:

npm run cf-typegen

Deployment

Deploy it to Cloudflare:

 npm run deploy

License

This project is licensed under either of

at your option.

About

Cloudflare worker to store Sentinel-2 metadata records on ATProto

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors