Version 1.0

This commit is contained in:
Marcin Wozniak 2019-04-13 22:45:28 +02:00
parent 0fa56d5aea
commit 5cb2515779

11
rozklad
View File

@ -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}'