summaryrefslogtreecommitdiff
path: root/ers_mtn/nodes
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:41 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:41 +0200
commitf18d035e68c1cfb54a26fbd0058a4b88331a1e23 (patch)
tree8f9a2d07125d41fbeb96129333cdffb86830d2cb /ers_mtn/nodes
parent2e97492f1b8d577c2cdc0505c7f4e34d82fea8bf (diff)
downloadluaatc_envs-f18d035e68c1cfb54a26fbd0058a4b88331a1e23.tar.gz
luaatc_envs-f18d035e68c1cfb54a26fbd0058a4b88331a1e23.tar.bz2
luaatc_envs-f18d035e68c1cfb54a26fbd0058a4b88331a1e23.zip
State at 2023-07-27
Diffstat (limited to 'ers_mtn/nodes')
-rw-r--r--ers_mtn/nodes/(1780,10,1235).lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/ers_mtn/nodes/(1780,10,1235).lua b/ers_mtn/nodes/(1780,10,1235).lua
new file mode 100644
index 0000000..6712883
--- /dev/null
+++ b/ers_mtn/nodes/(1780,10,1235).lua
@@ -0,0 +1,32 @@
+-- far_luaatctrack_farcom_op_01.lua
+
+if event.type == "punch" then
+-- F.delete_train_info("298909")
+ S.stop_display = true
+
+ 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(true)
+ else
+ local pos = POS( 1790,3,1241 )
+ 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