summaryrefslogtreecommitdiff
path: root/far/nodes/(30834,16,1863).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:36 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:36 +0200
commitef6736062f784c36b85f20f8678d274070a6d44f (patch)
tree4248de95e185b5aecfe80a0a1b3b2d3b8c3d7594 /far/nodes/(30834,16,1863).lua
parent9738bbd6287518633463173a2d936ca22d5591ea (diff)
downloadluaatc_envs-ef6736062f784c36b85f20f8678d274070a6d44f.tar.gz
luaatc_envs-ef6736062f784c36b85f20f8678d274070a6d44f.tar.bz2
luaatc_envs-ef6736062f784c36b85f20f8678d274070a6d44f.zip
State at 2023-07-23
Diffstat (limited to 'far/nodes/(30834,16,1863).lua')
-rw-r--r--far/nodes/(30834,16,1863).lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/far/nodes/(30834,16,1863).lua b/far/nodes/(30834,16,1863).lua
new file mode 100644
index 0000000..ef8bd02
--- /dev/null
+++ b/far/nodes/(30834,16,1863).lua
@@ -0,0 +1,33 @@
+-- far_luaatctrack_farcom_op_01.lua
+
+
+if event.type == "punch" then
+-- F.delete_train_info("298909")
+ S.stop_display = false
+
+ F.send_update_displays()
+
+ 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(false)
+ 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