nicolindemann / bergfuerst-moneymoney

Fetches balances from BERGFÜRST Website and returns them as securities
MIT License
1 stars 2 forks source link

Checking Balance with money money is broken (again) #3

Open iSchorsch opened 4 years ago

iSchorsch commented 4 years ago

That is the error message i get:

"bergfuerst.lua:103: attempt to perform arithmetic on local 'totalInterestAmount' (a nil value)"

It would be awesome, if this could be fixed!?

THANK YOU FOR YOUR EFFORT!

fkerber commented 3 years ago

Changing line 64 to local totalInterestAmount = tonumber((html:xpath("//*[@id='top']/div[2]/div/div[1]/div[2]/div/div[3]/p[2]/strong"):get(1):text():sub(1, -5):gsub(",", "."))) (all in one line) did fix the issue on my side.

iSchorsch commented 3 years ago

replaced line 64 with your line of code. Unfortunately same error message:

bergfuerst.lua:103: attempt to perform arithmetic on local 'totalInterestAmount' (a nil value)

nicolindemann commented 3 years ago

Please check here (https://github.com/nicolindemann/bergfuerst-moneymoney/blob/develop/src/bergfuerst.lua) my fix. On my side everything seems to work now again. It would be nice if a second person could double check this.

iSchorsch commented 3 years ago

Thanks for the fix. Unfortunately I still get an error message and no data is pulled. Also tried to re-initiate the plug in. Still error:

Web Banking account: Bergfürst (Main) Lade Wertpapierbestand für Bergfürst ... Sending: GET https://de.bergfuerst.com/meine-investments

      bergfuerst.lua:103: attempt to perform arithmetic on local 'totalInterestAmount' (a nil value)
nicolindemann commented 3 years ago

Does MoneyMoney mention the correct version number of the plugin?

1> Web Banking Engine: Using user-supplied extension Bergfuerst.lua version 1.20.

iSchorsch commented 3 years ago

Thank you for getting back to me. I just doublechecked and reinstalled your plug in 1.2. I does show version 1.2. now. It would not let me updated the berffuerst balance in MoneyMoney so I stared from scratch with my Bergfürst account in money money, aka acted as if I would add that account for the first time. It went through the authorisation flawlessly but didn't pull the write amounts of my investments (zero) just one worked: Please see screenshot. If this would not be sensitive data, I would just give you my login credentials to troubleshoot. What surprises me is the fact, that it works on your end, but not on mine!?

Bildschirmfoto 2021-02-28 um 19 02 38 Bildschirmfoto 2021-02-28 um 19 02 19
nicolindemann commented 3 years ago

I will try to come up with some kind of debug output in the console for troubleshooting. I only ask for a little more patience.

anju1337 commented 3 years ago

Hi Nico,

will there be a signed version again?

Thanks 4 your effort!

iSchorsch commented 1 year ago

Hi Nico, is this PlugIn-Project discontinued? I would still love to check my Bergfürst Account with Money Money. When it worked, it was beautiful

nicolindemann commented 1 year ago

Not really discontinued, but very neglected. I'll try to look over it again in the next few days.