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

    Posts

    Recent Best Controversial
    • RE: MMM-soccer v2

      @matze86 said in MMM-soccer v2:

      I think the api also does Not give the Information about the time of Match?

      It does.
      Usually APIs work with timestamps or date strings including date and time.
      My module is set to only show the time at the day of match. It does not show date AND time due to limited space.

      if (match.status == "SCHEDULED" || match.status == "POSTPONED") {
                          match.state = (moment(match.utcDate).diff(moment(), 'days') > 7) ? moment(match.utcDate).format("D.MM.") : (moment(match.utcDate).startOf('day') > moment()) ? moment(match.utcDate).format("dd") : moment(match.utcDate).format("LT");
                      
      
      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @hugopvl it didn’t work because of the small mistake I mentioned before. Your config entry was not recognized because your object was league: not leagues:
      @strawberry-3-141 might include in the README that additional leagues can be included via the config entry you made before. Or include all of them from the start.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @sdetweil @hugopvl
      yes the only error in above config seemed to be that @hugopvl has written

        league: {“PORTUGAL”: “PPL”},
      

      instead of

        leagues: {PORTUGAL: “PPL”},
      
      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 said in MMM-soccer v2:

      @lavolp3

      Great! I‘ll Update the Module soon

      Maybe with a different colour for the Position?

      So I checked the API output. Unfortunately we don’t have a reference for the recent table position.

      
      "table": [{
      	"position": 1,
      	"team": {
      		"id": 5,
      		"name": "FC Bayern München",
      		"crestUrl": "https://crests.football-data.org/5.svg"
      	},
      	"playedGames": 26,
      	"form": "W,W,W,W,L",
      	"won": 19,
      	"draw": 4,
      	"lost": 3,
      	"points": 61,
      	"goalsFor": 78,
      	"goalsAgainst": 35,
      	"goalDifference": 43
        },
        ...
      

      We would have to call the API again for the last matchday’s table, which consumes API calls.
      I’m not sure if I want that.
      I still very much like the idea however.

      Also, you can see there’s no reference to relegation or qualification ranks

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 said in MMM-soccer v2:

      Is it possible to add More columns to the table like this? Or to add up/down arrows? Or to add further Information like CL-Position/EL-Position and so on?

      I added played games as a column just today . Up and down arrows are a good idea but I need to check if the API gives the most recent table. I don’t think so.
      Good idea!
      They positions (relegation, qualifications) is most probably not possible.
      I’ll check.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: Async Functions, Sockets, Arrays, and Figuring this out

      @jcsindelar if I understand correctly you want to call stockdata from a dynamic and changing range of stocks.
      In some modules the array is provided by the config with every call to node_helper, in some modules just at the start.

      Another option would be to include a notification in the stock ticker module and use that to change the array.
      I’m currently working on a successor to MMM-AVStock that also has a ticker.
      If you’re interested we could implement your request into the code.
      Meaning: your module sends a notification “CHANGE_STOCKS” and my module receives it and acts accordingly.

      notificationReceived: function(noti, payload) {
        if (noti === "CHANGE_STOCKS") {
          this.config.symbols = payload
          this.sendSocketNotification("GET_STOCKDATA", payload)
        }
      }
      

      However, consider that the actual config will obviously not be safed in case of restart. But I guess your module will do the rest.

      posted in Troubleshooting
      lavolp3L
      lavolp3
    • RE: New Bathroom-Mirror

      @kwaeksler Great mirror! Looks really good.
      Can you tell me

      • what glass you used?
      • which program for drawing?
      • which wood parts for the frame?
      posted in Show your Mirror
      lavolp3L
      lavolp3
    • RE: MMM-Space

      @doctorwhen it’s a good solution (for beginners) but one that can be done with one line of css instead of installing a module.

      posted in Utilities
      lavolp3L
      lavolp3
    • RE: Message: no signal

      @george NONONO :-) . first try out a bit more.
      I think MMM-NewPIR has integrated several possibilities of turning off the monitor or hdmi.
      Play with these, you might be successful.
      I think my monitor (also a syncmaster) can behave both ways however you swithc it off.

      posted in Troubleshooting
      lavolp3L
      lavolp3
    • RE: How to use this module? Please help!

      @rubens Well the config options seem self-explanatory. You need to create an accessToken inside home assistant however.

      THere are some other MMM Home Assistant modulesout there, e.g. MMM-HomeAssistant-sensors by @snille.
      Or https://github.com/aserramonner/MMM-HASS by aserramonner.
      You could have a look at these as well.

      It is very possible that the module only gives a status since most MM modules are not programmed to be interactive but only to provide information.

      posted in Requests
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86
      Hm. The module has a range of future and recent games.
      Then it searches for the index of the first game after the current date.
      THen takes that value as index, so index should be the next game, index-1 the last and index+1 the one after the next.

      Does your workaround actually work?
      Then I’m thinking wrong.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 Change line 249 in MMM-soccer.js from

      for (var i = index - 1; i < filteredMatches.length; i++) {
                          nextMatches.push(filteredMatches[i]);
                      }
      

      to

      
      for (var i = index; i < filteredMatches.length; i++) {
                          nextMatches.push(filteredMatches[i]);
                      }
      

      (Remove the “- 1”)

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @lavolp3 should be fixed now. Only one css line
      Again, please do a git pull

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 yeah another issue i have just now realized. Give me a bit of time.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 OK i pushed a fix.
      Please do a git pull and let me know if it works better now.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-rain-forecast

      @wenike Thanks for the feedback. I am currently not using it since climacell really gave me very unreliable numbers here in Germany. Happy to hear how it is for anyone else over in the US or elsewhere.

      posted in Utilities
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 ok I’ll check that error.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 CAn you open the magicmirror page in your browser and check the developer’s tools (f12 --> console) for any errors?
      You might also activate debug mode in your config (debug: true) to get more output from the module.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-soccer v2

      @matze86 The setup works for me and shows me the next 5 matches of Bayern München.

      It actually also shows the last match so I might have to check that.

      posted in Sport
      lavolp3L
      lavolp3
    • RE: MMM-rain-forecast

      @jermaine171993 @Wenike
      I have finished the module, would you mind trying that out?
      https://github.com/lavolp3/MMM-RainCast

      As said, it uses the climacell api and I’m currently not satisfied with the output.
      Openweathermap has a minutely output for 1 hour, that might be another option.

      posted in Utilities
      lavolp3L
      lavolp3
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 44
    • 45
    • 5 / 45