~mil/mepo-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH mobroute] add script to show stop times on cursor

Details
Message ID
<20230525051106.1046-1-anjan@momi.ca>
DKIM signature
missing
Download raw message
Patch: +6 -0
---
 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
Details
Message ID
<5788fc78-2e3f-40fb-96a9-9bb0e1edf459@app.fastmail.com>
In-Reply-To
<20230525051106.1046-1-anjan@momi.ca> (view parent)
DKIM signature
missing
Download raw message
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
Reply to thread Export thread (mbox)