---
scripts/mepo_menu_stoptimes.sh | 6 ++++++
1 file changed, 6 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..f1d8c45
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+DISPLAYNAME=" Mobroute: show stoptimes on cursor"
+
+mobroute -cmd stoptimes -lat $MEPO_CURSOR_LAT -lon $MEPO_CURSOR_LON -gtfsregex '.+vancouver.+' > /tmp/mob
+
+sxmo_terminal.sh -f "monospace:size=5" sh -c "less -SR /tmp/mob"
--
2.40.1
On Thu, May 25, 2023, at 1:11 AM, Anjandev Momi wrote:
> ---
> scripts/mepo_menu_stoptimes.sh | 6 ++++++
> 1 file changed, 6 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..f1d8c45
> --- /dev/null
> +++ b/scripts/mepo_menu_stoptimes.sh
> @@ -0,0 +1,6 @@
> +#!/usr/bin/env sh
> +DISPLAYNAME=" Mobroute: show stoptimes on cursor"
> +
> +mobroute -cmd stoptimes -lat $MEPO_CURSOR_LAT -lon $MEPO_CURSOR_LON
> -gtfsregex '.+vancouver.+' > /tmp/mob
> +
> +sxmo_terminal.sh -f "monospace:size=5" sh -c "less -SR /tmp/mob"
> --
> 2.40.1
We should use overridable ENV vars with defualts for both the terminal
used & gtfsregex.
Also why use a tempfile rather then just piping directly in sh -c?
Otherwise looks good