A Zaptec App to check spot electricity prices for calculating bill.
Log in with your zaptec credentials, and select charger or ID you wish to look at.
Visit the production build at https://zaptec-billing.netlify.app
- the file
pages/dashboard/prices.json
is PROPRIETARY and not allowed to use, please find your own spot electricity prices, and format accordingly if you use this project. - everything else is MIT licensend.
- Select Charger and or User
- Select date-range and fetch charging sessions (store selection in local storage)
-
Select Pool spot prices region - Fetch charging sessions from Zaptec API
- Calculate prices
- Script to refresh prices from Nordpool
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
POST https://api.tibber.com/v1-beta/gql
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json
{"query":"{\n viewer {\n homes {\n currentSubscription{\n priceInfo{\n range(resolution:HOURLY, last: 1000) {\n pageInfo {\n endCursor\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n count\n precision\n resolution\n }\n nodes {\n startsAt\n currency\n total\n }\n }\n }\n }\n }\n }\n}\n"}