~mil/mepo-devel

mobroute: add script to show stop times on cursor v2 APPLIED

Anjandev Momi: 1
 add script to show stop times on cursor

 1 files changed, 9 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/mepo-devel/patches/41442/mbox | git am -3
Learn more about email & git

[PATCH mobroute v2] add script to show stop times on cursor Export this patch

---
 scripts/mepo_menu_stoptimes.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100755 scripts/mepo_menu_stoptimes.sh

diff --git a/scripts/mepo_menu_stoptimes.sh b/scripts/mepo_menu_stoptimes.sh
new file mode 100755
index 0000000..488b721
--- /dev/null
+++ b/scripts/mepo_menu_stoptimes.sh
@@ -0,0 +1,9 @@
#!/usr/bin/env sh
DISPLAYNAME=" Mobroute: show stoptimes on cursor"

[ -z "$MOBDBGTFSREGEX" ] && MOBDBGTFSREGEX="nyc_subway$"
[ -z "$TERM" ] && TERM="foot"

mobroute -cmd stoptimes -lat "$MEPO_CURSOR_LAT" -lon "$MEPO_CURSOR_LON" -gtfsregex "$MOBDBGTFSREGEX" > /tmp/mob

"$TERM" sh -c "less -SR /tmp/mob"
-- 
2.40.1