diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:42 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:42 +0200 |
commit | 0106229f144fb103bf539b58e5431477963a1f90 (patch) | |
tree | 44acdcc44313ddf6ee9bfa167093db2c726fff17 | |
parent | be6ddb90a95eb6c2adabb58785b57ac1da93c0f4 (diff) | |
download | il_timetable-0106229f144fb103bf539b58e5431477963a1f90.tar.gz il_timetable-0106229f144fb103bf539b58e5431477963a1f90.tar.bz2 il_timetable-0106229f144fb103bf539b58e5431477963a1f90.zip |
State at 2021-04-11
-rw-r--r-- | init_code.lua | 6 | ||||
-rw-r--r-- | nodes/(1020,11,1021).lua | 8 | ||||
-rw-r--r-- | nodes/(662,14,1014).lua | 2 | ||||
-rw-r--r-- | nodes/(981,15,1041).lua | 9 |
4 files changed, 21 insertions, 4 deletions
diff --git a/init_code.lua b/init_code.lua index 2cda3a3..c9acd9e 100644 --- a/init_code.lua +++ b/init_code.lua @@ -435,7 +435,7 @@ local function is_past_station(tstn, stnorder) end return true end -local function add_train(deptime, line, train) +local function add_train(deptime, line, train, tid) local tent = {dep = deptime, text = rwt.to_string(deptime,true).." "..F.ttp[line].stn_display .." +"..train.last_delay} @@ -456,7 +456,7 @@ for _,line in ipairs(p.lines) do if train.timetable == line then if train.location == p.station and not train.actual_dep then -- the train is currently standing at this station - add_train(train.planned_dep, line, train) + add_train(train.planned_dep, line, train, id) elseif not is_past_station(train.location, sttp.station_order) then -- train is still approaching, calculate arrival time local trav_dep = rwt.add(train.initial_dep, (sttp.travel_times[p.station] or 0) + STOP_TIME) @@ -467,7 +467,7 @@ for _,line in ipairs(p.lines) do act_dep = plan_dep end end - add_train(act_dep, line, train) + add_train(act_dep, line, train, id) end end end diff --git a/nodes/(1020,11,1021).lua b/nodes/(1020,11,1021).lua new file mode 100644 index 0000000..dc3083a --- /dev/null +++ b/nodes/(1020,11,1021).lua @@ -0,0 +1,8 @@ +F.ttp_station_display({ + lines = {"S12_S"}, + departure = {}, + station = "Ehlodex", + title = "Ehlodex", + interval = 30, + display1 = "d", +})
\ No newline at end of file diff --git a/nodes/(662,14,1014).lua b/nodes/(662,14,1014).lua index 4a62729..0ed504e 100644 --- a/nodes/(662,14,1014).lua +++ b/nodes/(662,14,1014).lua @@ -1,5 +1,5 @@ F.ttp_stop({ stn = "Gardon Street", - doorside = "L", + doorside = "R", only_lines={S12=true}, })
\ No newline at end of file diff --git a/nodes/(981,15,1041).lua b/nodes/(981,15,1041).lua new file mode 100644 index 0000000..ac1112f --- /dev/null +++ b/nodes/(981,15,1041).lua @@ -0,0 +1,9 @@ +F.ttp_station_display({ + lines = {"S12_S", "E1_S"}, + departure = {}, + station = "Ehlodex", + title = "Ehlodex", + interval = 30, + display1 = "d1", + display2 = "d2", +})
\ No newline at end of file |