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

codac

@codac

6
Reputation
431
Profile views
61
Posts
0
Followers
0
Following
Joined Dec 3, 2017, 9:08 AM
Last Online Jan 3, 2025, 1:53 PM

codac Unfollow Follow

Best posts made by codac

  • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    @karsten13 your are right… somehow the docker didn’t keep the installation after first try.
    After installing it a second time and restarting the docker afterwards, the container kept the installation of node-fetch. Its working now.

    Thank you guys for your massive support. Big time!
    @karsten13, @sdetweil, @KristjanESPERANTO

    posted in Troubleshooting
    C
    codac
    Jan 2, 2024, 8:53 PM
  • RE: Alignmend of modules

    @karsten13 correct they are all top_right. Your suggestion worked:

    .MMM-DWD-WarnWeather .status {
        font-family: "SFPro";
        text-align: right;
    }
    

    Your hint with playing with css in my browser helped to figure out that currentweather and weatherforecast behave like this because of a max-width of 325 that I already had set in the custom.css, as where the calendar has 475px.

    posted in Troubleshooting
    C
    codac
    Mar 18, 2021, 11:28 AM
  • RE: Alignmend of modules

    @majorc The question with the MMM-DWD-WarnWeather module I can answer. Was a bit tricky to find out, but what works for me is to set the follwing into the custom.css:

    .MMM-DWD-WarnWeather .warning {
        float: right;
    }
    
    posted in Troubleshooting
    C
    codac
    Mar 19, 2021, 12:41 PM
  • RE: Title of two modules in one line

    @wishmaster270 said in Title of two modules in one line:

    .MMM-DWD-WarnWeather .wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 320px;
    gap: 5px;
    }

    .MMM-DWD-WarnWeather .warning {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 0px;
    }

    .MMM-DWD-WarnWeather .status {
    margin-top: 0px;
    }

    .MMM-DWD-WarnWeather .description {
    padding-left: 0px;
    margin-left: 0px;
    }

    .MMM-DWD-WarnWeather .small-icon{
    float: unset;
    zoom: unset;
    -moz-transform: unset;
    -moz-transform-origin: unset;
    width: 46px;
    height: 46px;
    position: relative;
    }

    Hi Tom, this totally worked out and fixed the issue.
    Do you have one more hint about shifting the text/icon more to the right?
    dwd_warn_weather.PNG

    posted in Troubleshooting
    C
    codac
    Dec 13, 2022, 8:18 AM
  • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    @sdetweil
    This error only comes up when trying to restart MM inside the docker.
    When restarting the docker, this error wont show up.

    posted in Troubleshooting
    C
    codac
    Jan 2, 2024, 7:36 PM

Latest posts made by codac

  • RE: Modules are loading with new docker image

    @sdetweil @HeikoGr
    That was it, changing the parameter for the weather Plugin + updating the api Key to a payment method.
    Now weather and MMM-WeatherChart are running again.

    MMM-SoccerLiveScore not, as they seem to search for a new API.

    posted in Troubleshooting
    C
    codac
    Oct 13, 2024, 1:08 PM
  • RE: Modules are loading with new docker image

    @HeikoGr What is the difference between the free user endpoints ‘/weather’ , ‘/onecall’ , ‘/forecast’?

    posted in Troubleshooting
    C
    codac
    Oct 9, 2024, 8:03 AM
  • RE: Modules are loading with new docker image

    @HeikoGr
    I’ll add the bits for the modules. But I’m pretty sure its not the config, as it is running for years now.
    The Loading came up, after IÄve updated the docker image.

    {
    			module: "weather",
    			position: "top_right",
    			config: {
    				weatherProvider: "openweathermap",
    				type: "current",
    				location: "Location,CountryCode",
    				locationID: "1234567", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
    				apiKey: "<apiKey>"
    			}
    		},
    		{
                "module": "MMM-WeatherChart",
                "position": "top_right",
                "config": {
                    "apiKey": "<apiKey>",
                    "dataNum": 24,
                    "dataType": "daily",
    				"dailyLabel": "days_of_week",
                    "height": "400px",
                    "width": "400px",
                    "lat": 50.1234567,
                    "lon": 8.1234567,
                    "units": "metric",
    				"hourFormat": "24h",
    				"showIcon": true,
    				"datalabelsDisplay": true,
                    "showRain": true,
    				"showZeroRain": false,
    				"showZeroSnow": false,
                    "includeSnow": true,
                    "showSnow": true,
                }
            },
    {
    		    module: 'MMM-SoccerLiveScore',
    		    position: 'top_left',
    		    config: {
    			        leagues: [35],
    			        showNames: true,
    			        showLogos: true,
    					displayTime: 60 * 1000,
    					showStandings: false,
    					showTables: true,
    					showScorers: false,
    					scrollVertical: false,
    					language: 'de', // supported values are en, de, it
    			}
    		},
    
    posted in Troubleshooting
    C
    codac
    Oct 9, 2024, 6:58 AM
  • RE: Modules are loading with new docker image

    @HeikoGr
    2.29.0

    posted in Troubleshooting
    C
    codac
    Oct 8, 2024, 7:37 PM
  • Modules are loading with new docker image

    Hi guys,
    I’m using @karsten13 Docker image of MagicMirror. since the last two updates of the docker image, many of the modules show “Loading”.
    I have updated all modules and did run npm install in their folders.
    The only error I receive in the log of the magicmirror docker is:

    2024/10/07 15:45:41	stderr	(Use `node --trace-deprecation ...` to show where the warning was created) 
    2024/10/07 15:45:41	stderr	[2024-10-07 15:45:41.323] [ERROR] (node:71) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    

    Affected modules are:
    MMM-SoccerLiveScore
    weather
    MMM-WeatherChart

    Any ideas about how to fix this?

    posted in Troubleshooting
    C
    codac
    Oct 8, 2024, 5:32 PM
  • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    @karsten13 your are right… somehow the docker didn’t keep the installation after first try.
    After installing it a second time and restarting the docker afterwards, the container kept the installation of node-fetch. Its working now.

    Thank you guys for your massive support. Big time!
    @karsten13, @sdetweil, @KristjanESPERANTO

    posted in Troubleshooting
    C
    codac
    Jan 2, 2024, 8:53 PM
  • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    @karsten13 said in Cannot find module 'node-fetch' error with MMM-SoccerLiveScore:

    NODE_ENV=test npm install node-fetch@2

    I could see that this time node-fetch got installed (different than before running npm install node-fetch@2 only).
    But after restarting the docker container, the same error remained.

    posted in Troubleshooting
    C
    codac
    Jan 2, 2024, 8:40 PM
  • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    @karsten13
    @codac said in Cannot find module 'node-fetch' error with MMM-SoccerLiveScore:

    @sdetweil

    root@04492d039b9f:/opt/magic_mirror/modules# cd MMM-SoccerLiveScore              
    root@04492d039b9f:/opt/magic_mirror/modules/MMM-SoccerLiveScore# npm install node
    -fetch@2                                                                         
                                                                                     
    up to date, audited 1 package in 1s                                              
                                                                                     
    found 0 vulnerabilities                                                         
    

    How would I restart MM of the container?
    pm2 is not set up.

    DISPLAY=:0 npm restart
    

    …results in

    > magicmirror@2.26.0 restart                                                     
    > npm stop --if-present && npm start                                             
                                                                                     
                                                                                     
    > magicmirror@2.26.0 start                                                       
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js           
                                                                                     
    sh: 1: ./node_modules/.bin/electron: not found   
    
    posted in Troubleshooting
    C
    codac
    Jan 2, 2024, 8:37 PM
  • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    @sdetweil the node-fetch error

    posted in Troubleshooting
    C
    codac
    Jan 2, 2024, 7:47 PM
  • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    @karsten13 well restarting / stopping / starting is no problem. But the error just remains and doesnt go away…

    posted in Troubleshooting
    C
    codac
    Jan 2, 2024, 7:41 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy