Version 1.0
This commit is contained in:
parent
0fa56d5aea
commit
5cb2515779
11
rozklad
11
rozklad
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
peka_vm_get()
|
||||
{
|
||||
curl -H 'Content-Type:application/x-www-form-urlencoded; charset=UTF-8' \
|
||||
http://www.peka.poznan.pl/vm/method.vm \
|
||||
-d "method=$1" \
|
||||
-d "p0=$2" \
|
||||
-s
|
||||
}
|
||||
|
||||
peka_vm_get getTimes '{"symbol":"'$1'"}' | jq -r '.[] | [.times] | .[] | .[] | [.minutes,.line,.direction] | @csv' | awk -v FS="," 'BEGIN{print "Min\tLine\tDirection\t";print "==================================="}{printf "%s\t%s\t%s%s",$1,$2,$3,ORS}'
|
Loading…
Reference in New Issue
Block a user