Skip to content

append car traffic data data every hour #6337

append car traffic data data every hour

append car traffic data data every hour #6337

Workflow file for this run

name: append car traffic data data every hour
on:
push:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v4
- name: append new car traffic data
run: |-
curl \
-H "Authorization: Bearer ${{ secrets.DATASOURCE_TOKEN }}" \
-X POST "https://api.tinybird.co/v0/datasources?mode=append&name=traffic_cars_csv" -d url='https://valencia.opendatasoft.com/api/explore/v2.1/catalog/datasets/punts-mesura-trafic-espires-electromagnetiques-puntos-medida-trafico-espiras-ele/exports/csv?timezone=UTC&use_labels=false&delimiter=%2C'