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

ChargerID and CardID not right #1

Closed PuckeyP closed 2 years ago

PuckeyP commented 2 years ago

Hi, I'm having trouble to find out which numbers should be entered in the ChargerID an CardID fields of the subflow. The Debug command gives me the following output

{
   "assets":{
      "chargePoints":[
         {
            "evses":[
               {
                  "evseId":"xxxx",
                  "number":0,
                  "occupyingToken":{
                     "timestamp":"2022-05-26T06:44:00.000Z"
                  },
                  "status":"Available"
               }
            ],
            "name":"xxxxx",
            "serial":"xxxxxx",
            "uuid":"xxxx-xxxx-xxxx-xxxx-xxxxxxxxx"
         }
      ],
      "chargeTokens":[
         {
            "name":"xxxx",
            "printedNumber":"xxxx",
            "rfid":"xxxx"
         },
         {
            "printedNumber":"xxxx",
            "rfid":"xxxx"
         },
         {
            "name":"xxxx",
            "printedNumber":"xxxx",
            "rfid":"xxxx"
         },
         {
            "printedNumber":"xxxx",
            "rfid":"xxxx"
         },
         {
            "name":"xxxx",
            "printedNumber":"xxxx",
            "rfid":"xxxx"
         }
      ]
   }
}

Which fields am I looking for. Think I tried all of them now with result: "Unexpected number in JSON at position 4" Any ideas BR PPee

dgthomson commented 2 years ago

Apologies, there is a bug. Re-download and re-import the subflow from the file ‘wout.js’ and that error should be fixed. Your numbers will both be 0.

PuckeyP commented 2 years ago

Many many kudos. It works !