Skip to content

Richard87/zaptec-billing-next

Repository files navigation

Zaptec Billing

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

License:

  • 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.

TODO:

  • 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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Fetch price data from tibber:

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"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published