From 5c7f77725394d47ce0b907aabf885ea207a507bd Mon Sep 17 00:00:00 2001 From: autocommitter Date: Tue, 15 Oct 2024 22:37:32 +0200 Subject: State at 2024-10-15 --- far/nodes/(30825,16,1858).lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 far/nodes/(30825,16,1858).lua (limited to 'far/nodes/(30825,16,1858).lua') diff --git a/far/nodes/(30825,16,1858).lua b/far/nodes/(30825,16,1858).lua new file mode 100644 index 0000000..aad8e33 --- /dev/null +++ b/far/nodes/(30825,16,1858).lua @@ -0,0 +1,36 @@ +-- far_luaatctrack_farcom_op_01.lua + + +if event.type == "punch" then +-- F.delete_train_info("298909") + S.stop_display = true + S.show_farpass_only = false + + F.send_update_displays() + + digiline_send("notices", "LP: " .. event.name .. "") + + if S.stop_display then + date = F.date_formatted() + time = F.time_formatted() + digiline_send("time", " FAR COM\n\n " .. date .. "\n " .. time) + F.list_trains(true) + else + local pos = POS(30848,15,1852) + interrupt_pos(pos, "display") + end + + return +end + +if event.type == "digiline" then + if event.channel == "display" then + if event.msg == "update" then + date = F.date_formatted() + time = F.time_formatted() + digiline_send("time", " FAR COM\n\n " .. date .. "\n " .. time) + F.list_trains(false) + end + end + return +end -- cgit v1.2.3