MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. fischi87
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    F
    Offline
    • Profile
    • Following 2
    • Followers 0
    • Topics 33
    • Posts 126
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Nobody knows???

      @karsten13

      thats right, its from the module.js. i read i can fix this issue with the node_helper.js but i dont know how to write the code down in the node_helper.js to get the result from my url.

      i will try ur answer later.

      i know how to write code in the node_helper.js form the request?

      thanks

      posted in Troubleshooting
      F
      fischi87
    • RE: Nobody knows???

      @karsten13

      var stromRequest = new XMLHttpRequest();
                var requestURL = 'http://192.168.178.44/cm?cmnd=var1';
                stromRequest.onreadystatechange = function () {
                  if (stromRequest.readyState === XMLHttpRequest.DONE) {
                    if(stromRequest.status === 200) {
                      var json_parse = JSON.parse(stromRequest.responseText).Var1
                      var stromverbrauch = Number(json_parse * 0.30)//.toFixed(2);
                      var verbrauch = stromverbrauch.toFixed(2);
      

      this is my request and the error:

      Bildschirmfoto 2022-02-25 um 19.47.26.png

      posted in Troubleshooting
      F
      fischi87
    • RE: Nobody knows???

      @karsten13

      i will send u my code part and the error later. thanks for ur reply!

      i hope we can fix this problem.

      posted in Troubleshooting
      F
      fischi87
    • Nobody knows???

      Hello again, I don’t think that nobody knows how to fix this problem. please help me.

      my problem is still the Access-Control-Allow-Origin error. how can I or where I have to write down the access control allow? the problem is, chromium block my request (chrome) is loaded but not chromium to display my request.

      thank guys

      posted in Troubleshooting
      F
      fischi87
    • Error in pm2 log

      Hello guys I get right now this 2 error:

      ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=139
      ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      

      what is it and what can I do to fix them?

      thanks

      posted in Troubleshooting
      F
      fischi87
    • RE: Node-helper Access-Control-Allow-Origin

      @sdetweil

      ist still dosent work, a other idea? how is it possible to write it in this node_helper.js?

      posted in Troubleshooting
      F
      fischi87
    • RE: Node-helper Access-Control-Allow-Origin

      @sdetweil

      this post ist more than 1 Jahr ago !

      posted in Troubleshooting
      F
      fischi87
    • Node-helper Access-Control-Allow-Origin

      Hello, I get always this error “CORS-Kopfzeile ‘Access-Control-Allow-Origin’ fehlt)”

      how is it possible the manage the node-helper.js to solved this error?

      the node-helper.js:

      const NodeHelper = require("node_helper");
      const https = require("https");
      const express = require("express");
      const app = express();
      const cors = require('cors');
      
      module.exports = NodeHelper.create({
        start: function () {
          console.log("MMM-Cryptocurrency loaded!");
        },
      
        socketNotificationReceived: function (notification, payload) {
          if (notification === "get_ticker") {
            this.getTickers(payload);
          }
        },
      
        getTickers: function (payload) {
          var self = this;
          https
            .get(payload.url, (res) => {
              let data = "";
              res.on("data", (chunk) => {
                data = data + chunk.toString();
              });
              res.on("end", () => {
                self.sendSocketNotification("got_result", { id: payload.id, data: JSON.parse(data) });
              });
            })
            .on("error", (err) => {
              console.log("MMM-Cryptocurrency error: ", err.message);
            });
        }
      });
      
      

      thanks guys

      posted in Troubleshooting
      F
      fischi87
    • RE: current weather dosent work

      @hango whats about the translation to de?

      posted in Troubleshooting
      F
      fischi87
    • RE: MMM-crypto-portfolio

      Hello, I install ur module and just copy and paste ur config from the readme but I get just a header with ‘my crypto portfolio’ and nothing more. is this module just update? or what I did wrong?

      thanks

      posted in Utilities
      F
      fischi87
    • 1 / 1