Skip to content

mitkz/TrainSchedule-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrainSchedule-Finder

A GARMIN watch widget to know the departure times of the nearest train station.

This program does not get data from the internet, it uses the data, which defined as Array in source/TrainScheduleData.mc.

Setup

  1. Copy source/TrainScheduleData.mc.example to source/TrainScheduleData.mc
  2. Replace with your actual train schedule data

Train Schedule Data Format

Data structure is the 2 dimension list such as [[hhmm(int), traintype(int)],...].
By default, you can set two train type 0 and 1. 0 is for the train that stops at all stations and displayed with black color. 1 is for the train that stops at the main stations and displayed with green color.

Example:
[[0845,0],[0851,1],...,[2359,0]]

Please get time schedule from your favorite train company and convert it to the above format. Edit the weekday_table and holiday_table variables in source/TrainScheduleData.mc to set your train schedule.

FAQ

Q: Why don't you get data from the internet?
A: Watch and phone are frequently disconected. I think it isn't reasonable to get data from the internet everytime. (Train schedule is not changed frequently.)

About

A GARMIN watch widget to know the departure times of the nearest train station.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors