Sickboy78 / MMM-Homematic

HomeMatic Module for MagicMirror
GNU General Public License v3.0
12 stars 3 forks source link

Module is Loading #15

Closed lexnared closed 4 months ago

lexnared commented 4 months ago

After installing the module i received two error messages The mirror starts and all modules run, except for the MMM-HOMEMATIC. The module is displayed with the TEXT header: 'SMART HOME' from config.js. Below it says permanently "Loading ..." unfortunately i cannot find any entries in the pm2 log

XML Version: 1.2.0 MagicMirror: v2.27.0

OS: platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 6.1.21-v7+

MagicMirror | ### VERSIONS: electron: 29.3.2; used node: 20.9.0; installed node: 20.8.0; npm: 10.1.0; pm2: 5.3.1

admin@raspberrypi:~/MagicMirror/modules/MMM-Homematic $ npm install

up to date, audited 141 packages in 6s

24 packages are looking for funding
  run `npm fund` for details

2 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
admin@raspberrypi:~/MagicMirror/modules/MMM-Homematic $ npm audit
# npm audit report

request  *
Severity: moderate
Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
Depends on vulnerable versions of tough-cookie
No fix available
node_modules/request

tough-cookie  <4.1.3
Severity: moderate
tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3
No fix available
node_modules/tough-cookie

2 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.
admin@raspberrypi:~/MagicMirror/modules/MMM-Homematic $ npm fund
MMM-Homematic@1.2.0
├─┬ https://opencollective.com/eslint
│ │ └── eslint@8.57.0, @eslint/eslintrc@2.1.4, eslint-scope@7.2.2, eslint-visitor-keys@3.4.3, espree@9.6.1
│ ├── https://github.com/sponsors/nzakas
│ │   └── @humanwhocodes/module-importer@1.0.1
│ ├─┬ https://github.com/chalk/chalk?sponsor=1
│ │ │ └── chalk@4.1.2
│ │ └── https://github.com/chalk/ansi-styles?sponsor=1
│ │     └── ansi-styles@4.3.0
│ ├── https://github.com/sponsors/feross
│ │   └── run-parallel@1.2.0, queue-microtask@1.2.3, safe-buffer@5.2.1
│ └── https://github.com/sponsors/isaacs
│     └── rimraf@3.0.2, glob@7.2.3
└── https://github.com/sponsors/epoberezkin
    └── ajv@6.12.6
config.js
{
            module: 'MMM-Homematic',
            position: 'top_center',
            header: 'SMART HOME',
            config: {
                ccuHost: '192.168.1.4', // hostname of your ccu (e.g. for CCU3 default is "ccu3-webui")
                tempUnit: "°C",         // unit of your temperatur values
                datapoints: [           // the datapoints of your HomeMatic devices/sensors
                    {
                        id: "13320",
                        name: "Kueche",
                        type: "ACTUAL_TEMPERATURE",
                    },
                    {
                        id: "13317",
                        name: "Wohzimmer",
                        type: "HUMIDITY",
                    },
                    {
                        id: "13288",
                        name: "Bad",
                        type: "ACTUAL_TEMPERATURE",
                    },
                            ]
                    }
            }

it would be a pleasure if you can help me

Sickboy78 commented 4 months ago

The two messages are just warnings, you can ignore them. Can you execute a curl command on your raspi, to see if the xml api is reachable and copy the output? curl -Ik http://192.168.1.4/addons/xmlapi/

lexnared commented 4 months ago

Sorry I had selected the wrong ID Works now :-)

Is there an option to display the view as under your link? style Table

With the current version of MM the modul Homematic-Thermostats no longer works

Sickboy78 commented 4 months ago

Not exactly, but you can experiment with style table_rows or single_line to achieve similar outputs.