Originally I had been doing a script and cron job with telegraf to do the authentication. Then I ran across a post by @mbg who had created a small go application to do the querying to the powerwall. This simplifies the telegraf config and prevents issues where it loses the auth token until the crontjob fires again, something I had trouble with.
Powerwall authentication
USERNAME=
PASSWORD=
POWERWALL=powerwall