dgthomson / nodered-shellrecharge

A subflow for Nodered to control Shell Recharge car charging equipment.
GNU General Public License v3.0
20 stars 7 forks source link

info outputs error #6

Closed Marc1200 closed 1 year ago

Marc1200 commented 1 year ago

Hello, Info command outputs this: image

i have entered the authentication correctly, the energy command does work correctly.

edautz commented 1 year ago

Maybe the same problem, but since last week info doesn’t work anymore.

Nodered debug output:

TypeError: Cannot read properties of undefined (reading 'energy')

dgthomson commented 1 year ago

OK so the error is coming from a part of the flow involved in retrieving energy consumption data. The process is all undocumented and the inspiration originally came from Github code written by Siumba. This now needs more detailed authentication to access.

This flow is a hack and effectively fakes an interaction between Node-RED and the Shell Recharge website to work. Until Shell gives access to their API to individuals this issue can't be fixed.

{ 'action' : 'info' } will work to get chargePoints/chargeTokens but not energy data.

{ 'action' : 'energy' } has never been reliable.

Marc1200 commented 1 year ago

Okay, Info and energy are not so important for me. But the most important part of the integration for me is to start, stop the charging station but with that i got this error: 9d1c491f862db027018d4c3c19f87a4319f76995

I created a new issue of this problem