mlbonniec / MMM-Coinbase

A module for Michael Teeuw's MagicMirror project that displays your crypto-currencies Coinbase balance.

Home Page:https://magicmirror.builders/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amount stuck on 0

Fennsy opened this issue · comments

Hello,
I noticed that the amount of the bitcoin is stock on 0 (init of the variable bal in the node_helper) whereas I entered my API keys

Is this normal?
(Sorry for my English I'm French)

Hello, the variable is indeed set to 0 when API keys are not set. Your problem is that even with API keys, the Bitcoin value remains at 0?
Did you enter the right API keys? And did you authorize the API to access the reading of your Bitcoin wallet?
(I am French too so no problem)

Yes, I've entered the apiKey and apiSecret in config.js (with the right permissions in Coinbase) but I think it do not check my apiKey, I will continue to look for where the problem may come from because it stuck on 0.

Thank's for your answer and great job for your module !

It is indeed strange, I will also look on my side. Let me know if you find anything!
Thank you very much for your support!

I will try an update of raspbian and magicmirror because I am in 2.6.0 and I come back to you

After the update, it's the same but the error log display :

ReferenceError: account is not defined
at /home/pi/MagicMirror/modules/MMM-Coinbase/node_helper.js:15:21
at handleError (/home/pi/MagicMirror/modules/MMM-Coinbase/node_modules/coinbase/lib/errorHandler.js:62:5)
at onGet (/home/pi/MagicMirror/modules/MMM-Coinbase/node_modules/coinbase/lib/ClientBase.js:254:10)
at handleHttpError (/home/pi/MagicMirror/modules/MMM-Coinbase/node_modules/coinbase/lib/errorHandler.js:52:5)
at Request.onGet [as _callback] (/home/pi/MagicMirror/modules/MMM-Coinbase/node_modules/coinbase/lib/ClientBase.js:160:10)
at Request.self.callback (/home/pi/MagicMirror/modules/MMM-Coinbase/node_modules/request/request.js:186:22)
at Request.emit (events.js:182:13)
at Request. (/home/pi/MagicMirror/modules/MMM-Coinbase/node_modules/request/request.js:1163:10)
at Request.emit (events.js:182:13)
at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-Coinbase/node_modules/request/request.js:1085:12)

But I have entered my apiKeys in config.js correctly :/
Hope that help you

I've find the problem ! missing "s" in account"s" in line 15 of the node_helper.js, before "[0]", I've do the modification and it work for me !

Hi!
Sorry about that mistake... it was finally all silly! So I updated the module! Thank you for finding him! And don't hesitate to ask me again if you need anything!