Skip to content

Building home energy management dashboard using Nextjs, Enode, Awattar

Notifications You must be signed in to change notification settings

vienpt/eneo-dashboard

Repository files navigation

Overview

Eneo is a white-label home energy management system (HEMS) for SME energy suppliers and solar installers.

The product seeks to make energy markets more accessible to both prosumers and consumers through intelligent energy services, including smart control over consumption, storage and production of energy, as well as energy arbitrage.

eneo-overview

Project setup

Structure

.
├── app/
│   ├── auth/
│   │   ├── login
│   │   └── signup
│   ├── dashboard/
│   │   ├── awattar price chart
│   │   ├── awattar energy cost chart
│   │   ├── enode solar chart
│   │   ├── enode ev chart
│   │   ├── enode battery chart
│   │   └── combine-chart/
│   │       └── line bar chart
│   └── api/
│       ├── awattar
│       └── enode
├── components/
│   └── ui and common components
├── config/
│   └── page settings config
├── context/
│   └── use context
├── helpers/
│   └── utility check window and screen size
├── hooks/
│   └── react hooks
├── lib/
│   ├── constant
│   ├── fonts
│   ├── theme: flowbite custom theme
│   └── utils
├── type/
│   └── interface
├── utils/
│   ├── enode/
│   │   └── oauth-sandbox
│   └── supabase/
│       ├── client
│       ├── middleware
│       └── server    
└── middleware

Dependencies

Getting started

Next.js requires Node.js.

Install the dependencies:

npm i

Now you can run the development server:

npm run dev

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

Environment

.env.local

REACT_EDITOR=webstorm

# SUPABASE
NEXT_PUBLIC_SUPABASE_URL=https://zrsxsvsllzalhdnppvoo.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpyc3hzdnNsbHphbGhkbnBwdm9vIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTIxMzUyMzQsImV4cCI6MjAyNzcxMTIzNH0.P2ALCgZe7-rR6eYjcDMUm0IFc7U5TloAyy56kRYRCjk

# ENODE
### CODELEAP
NEXT_PUBLIC_ENODE_CLIENT_ID=3887f3ad-ad95-4186-83fc-462b50fb55a1
NEXT_PUBLIC_ENODE_CLIENT_SECRET=7a745c7c89ff116f6c3d2398c631d46d0daad415
NEXT_PUBLIC_ENODE_API_USERS_URL=https://enode-api.sandbox.enode.io/users/2

### OAUTH
NEXT_PUBLIC_ENODE_OAUTH_TOKEN_URL=https://oauth.sandbox.enode.io/oauth2/token

### Apis
NEXT_PUBLIC_ENODE_API_URL=https://enode-api.sandbox.enode.io

# AWATTAR
### Apis
NEXT_PUBLIC_AWATTAR_API_URL=https://api.awattar.de/v1/marketdata

Requirements

About flowbite

Flowbite is an open source collection of UI components built with the utility classes from Tailwind CSS that you can use as a starting point when coding user interfaces and websites.

About next

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

About supabase

About enode

About awattar

Deploy

Vercel

About

Building home energy management dashboard using Nextjs, Enode, Awattar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published