- Clone this project.
- Fill in your email & password of The New Motion in the prefilled .env file in the root directory.
- Run the NodeJS app.
- Your app will run on port
:3000
The NewMotionAPI exposes a couple of endpoints:
- Getting the configured car(s):
/cars/getCars
- Getting the configured charge card(s):
/cards/getChargeCards
- Getting the configured home charge point(s):
/charging/getChargepoints
- Getting the total usage since installation date of the home charger:
/charging/getTotalUsage
- Getting the last charge sessions of the past month since "today":
/charging/getLastChargeSessions
- Get user info:
/users/getUser