#!/bin/sh
# Gather detailed by-hour Eddi stats for the stated day.
# This will all be more sane if the eddi doesn't do DST, ie stays on UTC.
# Picks up credentials from ~/.netrc so may not be suitable for batch.

# Usage:
#     $0 yyyy-mm-dd

. script/myenergi/.config

exec curl -u "$hubsn":"$APIkey" --silent --digest --netrc -H 'accept: application/json' -H 'content-type: application/json' --compressed "https://s18.myenergi.net/cgi-jdayhour-E$eddisn-$1"


##########
# May be used / adapted / etc without any promise of fitness for purpose
# under the terms of the Apache License Version 2.0, January 2004
#     http://www.apache.org/licenses/LICENSE-2.0
##########

