• @doubleT Did send me his Repo for the GasBuddy module. He didn’t want it published as he did not get permission to pull from their API. I can not get it to work unfortunately. I sent a message to doubleT, but he hasn’t been active in a while. @Mykle1 Maybe I can send you the repo and take a look at it? I can’t seem to figure out what I’m doing wrong!

  • @Mykle1 Maybe you can help me decipher this error:

    /home/pi/.pm2/logs/mm-error-0.log last 10 lines:
    0|mm       | SyntaxError: Unexpected end of JSON input
    0|mm       |     at /home/pi/MagicMirror/modules/GasStation/node_helper.js:44:22
    0|mm       |     at ChildProcess.exithandler (child_process.js:225:5)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at maybeClose (internal/child_process.js:877:16)
    0|mm       |     at Socket. (internal/child_process.js:334:11)
    0|mm       |     at emitOne (events.js:96:13)
    0|mm       |     at Socket.emit (events.js:188:7)
    0|mm       |     at Pipe._handle.close [as _onclose] (net.js:493:12)
    [STREAMING] Now streaming realtime logs for [mm] process

    Should I be looking at line 44 char 22 for something ?

  • Project Sponsor Module Developer

    @dherl0623 said in GasBuddy:

    Unexpected end of JSON input

    The problem seems to be with line 44 of the node_helper, not necessarily character 22 itself. I think you should concentrate on the explanation of the error.

  • Project Sponsor Module Developer

    @dherl0623 you should log the response of gasbuddy, sounds like you are not getting a valid json response from the api

  • @strawberry-3-141 Going to the site which is the response that GasBuddy gives outputs the following

    Can I share the download link to the module? I haven’t gotten a response back from @doubleT and as far as I know no one has gotten permission from GasBuddy to use their API in this way.

  • Moderator

    If you want to, send it to me. I can take a look today or tomorrow.