Skip to content

code4fukui/tidelevel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18,766 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tidelevel

日本語のREADMEはこちらです: README.ja.md

This repository automatically downloads, archives, and visualizes tide level data from the Japan Meteorological Agency (JMA). The data is updated hourly via a GitHub Action.

How It Works

  • Automatic Data Fetching: A GitHub Actions workflow (see .github/workflows/scheduled-update.yml) runs the download.js Deno script on an hourly schedule. This script fetches the latest tide data for all registered stations.
  • Data Storage: The raw JSON data from JMA is archived in the data/ directory, organized by year/month and station code. The file structure is data/YYYYMM/STATION_ID/tide_obs_YYYYMMDD_STATION_ID.json.
  • Visualization: The index.html page uses ApexCharts.js to create an interactive line chart of the downloaded data.

Data

Usage (For Developers)

This project uses Deno as its JavaScript runtime.

Manual Data Download

To fetch the latest data for today and yesterday, run the main download script:

deno run -A download.js

Download for a Specific Day or Station

You can use download-cmd.js to fetch data for a specific day or a single station.

Download data for all stations on a specific day (YYYYMMDD):

deno run -A download-cmd.js 20240101

Download data for a specific station on a specific day:

deno run -A download-cmd.js 20240101 145602

Attribution

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors