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

    Arckoos

    @Arckoos

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Arckoos Unfollow Follow

    Latest posts made by Arckoos

    • RE: MMM_radioDe

      here ma code in MMM_RadioDe.js

      Module.register(“MMM-RadioDe”,{
      // Default module config.
      defaults: {
      api_key: false,
      station: ‘rtu’,
      autoplay: “true”,
      player_color: “61ce42”, //does not have any influence
      height:“92”, // in pixel
      width:“360”, // in pixel
      // volume:“70%” not yet implemented
      },
      display: true,

      // Subclass start method.
      start: function() {
          Log.info("Starting module: " + this.name);
          //Log.info("Setting System Volume to " + this.config.volume);
          //exec("amixer -q sset Master " + this.config.volume, null);
      },
      
      
      getDom: function() {
        var wrapper = document.createElement("div");
        if (this.display) {
      
          var script = document.createElement("div");
          script.innerHTML = "<div class=\"ng-app-embedded\"><div style=\"display:none;\" class=\"\" data-playertype=\"web_embedded\" data-playstation=\"rtu\" data-autoplay=\"true\" data-playercolor=\"" + this.config.player_color + "\" data-apikey=\"df04ff67dd3339a6fc19c9b8be164d5b5245ae93" + this.config.api_key + "\" data-iframe=\"true\"></div><iframe src=\"http://radio.de/inc/microsite/index.html?playerWidth="+ this.config.width +"px&amp;playerHeight="+ this.config.height + "px&amp;playerType=web_embedded&amp;partnerLogo=null&amp;partnerUrl=null&amp;partnerBacklink=null&amp;partnerName=null&amp;popoutTitle=null&amp;stations=null&amp;listText=null&amp;listSubtext=null&amp;playerColor=" + this.config.player_color + "&amp;showFooter=null&amp;token=null&amp;playStation=" + this.config.station + "&amp;apikey=" + this.config.api_key + "&amp;popupWidth=null&amp;popupHeight=null&amp;autoplay=" + this.config.autoplay + "&amp;iframe=true\" id=\"radioDeIframe0\" name=\"radioDeIframe0\" frameborder=\"0\" style=\"width: "+ this.config.width +"px; height: "+ this.config.height + "px;\" height=\""+this.config.height+"\" width=\""+this.config.height+"\"></iframe></div>";
      
          wrapper.appendChild(script);
          }
      
        return wrapper;
        },
      
        suspend: function(){
          this.display = false;
          this.updateDom(300);
        },
      
        resume: function(){
          this.display = true;
          this.updateDom(300);
        },
      

      });

      posted in Requests
      A
      Arckoos
    • MMM_radioDe

      Hi
      I installed the MMM_RadioDe module …
      Everything works but the only problem is that the radio does not start automatically.
      Here is my code in the config file:
      {
      module: ‘MMM-RadioDe’,
      position: “center”,

      config: {
      station: “rtu”,
      api_key: ‘df04ff67dd3339a6fc19c9b8be164d5b5245ae93’,

      }
      },
      How can I activate the automatic launch?

      posted in Requests
      A
      Arckoos