Skip to content

Commit

Permalink
tried to fix the github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter van der Plas committed Mar 7, 2023
1 parent 4194e0d commit ba7472d
Show file tree
Hide file tree
Showing 13 changed files with 689 additions and 466 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/updateData.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,11 @@ jobs:
- name: npm install
run: npm install

- name: npm run collect
run: npm run collect

- name: npm run lintData
run: npm run lintData

- name: push changes to remote
- name: collect and lint
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git pull
git add -A
npm run collect
npm run lintData
if [ -z "$(git status --porcelain)" ]; then
echo "No changes"
else
git commit -m "updated the data"
git push
fi
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: updated the data
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"nocheck",
"Nominatim",
"popperjs",
"sonarjs"
"sonarjs",
"youtubedl"
]
}
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@

[![Netlify Status](https://api.netlify.com/api/v1/badges/723c662b-f86b-4d02-be3f-540b94d79b22/deploy-status)](https://app.netlify.com/sites/cartocams/deploys)

This repo contains the webapp available at [https://cartocams.com/](https://cartocams.com/)
## Introduction

This project is a map of webcams around the world. It is based on the OpenStreetMap data. The map is available at [https://cartocams.com/](https://cartocams.com/).

It queries OpenStreetMap via the [Overpass API](https://wiki.openstreetmap.org/wiki/Overpass_API) filters the data and extends the data with an address from the [Nominatim API](https://wiki.openstreetmap.org/wiki/Nominatim). The map is then rendered using the [Leaflet](https://leafletjs.com/) library.

## Installation

run `npm install` to install all the dependencies.

## Usage

run `npm run collect` to collect the data from OpenStreetMap and save it to the `data` folder.

run `npm run app` to start the development server.

## Data sources

Expand All @@ -30,3 +44,4 @@ This project also uses the "Icons8 flat integrated webcam" icon from the Icons8
- Make icons smaller on higher zoom levels
- Make Creative Commons license visible on the sites
- Look at all the package licenses
- use the cluster plugin
Loading

0 comments on commit ba7472d

Please sign in to comment.