deg0nz / MMM-Fronius2

MagicMirror2 module that shows data from a Fronius power converter
MIT License
0 stars 1 forks source link

Get no Data from inverter #8

Closed Dawil1987 closed 8 months ago

Dawil1987 commented 8 months ago

Hi,

i try to implement the Module to my MagicMirror. Unfortunally i get no Values from the inverter or the hole system. I changed the IP Address as described. The Problem, the Program will not start. If i start now the Program i get an Error "[ERROR] (node:1921) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node-fetch'" If i deactivate the "const fetch = require("node-fetch");" with "//" in the FroniusFetcher.js. After this another erro occur "[ERROR] (node:2037) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node-abort-controller'" I deactivate the "cconst AbortController = require("node-abort-controller").AbortController;" with "//" in the FroniusFetcher.js. After this the Programm starts without an issue. But i get no Values or Data.

Could please anybody help what i have to do? Unfortunately I do not know myself with the programming and understand the codes unfortunately also only very little

I have the MagicMirror Version 2.25.0 with Raspberry Pi OS (legacy) Full

Thanks in advance.

deg0nz commented 8 months ago

Did you execute npm install inside the module directory?

And if yes, could you please post your NodeJS version? (output of node --version)

Dawil1987 commented 8 months ago

Thanks for the reply. It was the missing npm install command. Thanks for your help. Much appreciated.