Skip to content

code4fukui/wbgt-japan

Repository files navigation

wbgt-japan

WBGT予測データ

参照データ

実況値取得ライブラリ

  • getWBGT.js 地点番号を渡すと最新実況値が反る
import { getWBGT } from "https://code4fukui.github.io/wbgt-japan/getWBGT.js";
console.log(await getWBGT(57066));

自動更新設定

毎時40分に実行

mkdir .github
mkdir .github/workflows
cat << EOF > .github/workflows/scheduled-fetch.yml
name: Scheduled 

on:
  schedule:
    # 毎時40分に実行
    - cron: '40 * * * *'

jobs:
  build:
    name: build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: denoland/setup-deno@v1
        with:
          deno-version: v1.x
      - name: fetch
        run: deno run -A download.js
      - name: commit and push
        run: |
          git config --global user.email "workflow@example.com"
          git config --global user.name "workflow user"
          git add .
          git commit -m 'update data' && git push ${REPO} HEAD:${{github.event.pull_request.head.ref}} || true
          git push
EOF

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published