#!/bin/sh
cd /www/Bosch
out=$(wget https://api.spot-hinta.fi/TodayAndDayForward -O -|jsonfilter -e '@[*].*'|awk -f spot.awk)
if [ -n "$out" ]
then
    echo "$out">spot.out
# $out needs to be inside "" not to miss newlines
#    echo "ei tyhja"
# else
#    echo "tyhja"
fi



