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

    lilpkstud

    @lilpkstud

    Module Developer
    5
    Reputation
    222
    Profile views
    13
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online

    lilpkstud Unfollow Follow
    Module Developer

    Best posts made by lilpkstud

    • RE: Majority of my emoji not showing on RPB3+

      @broberg @retroflex

      FIXED!!!

      For anyone that has the same issue I was able to fix it by doing the following steps:

      1. Follow this article’s step to download and create font-config
        https://www.omgubuntu.co.uk/2016/08/enable-color-emoji-linux-google-chrome-noto

      2. Unzip folder from Raspberry Pi’s Download Folder

      3. Open Terminal and type the following:
        cp *.ttf ~/.fonts/
        fc-cache -v -f

      4. Reboot Raspberry Pi

      5. Verify that you can see emoji (https://eosrei.github.io/emojione-color-font/full-demo.html)

      posted in Troubleshooting
      L
      lilpkstud

    Latest posts made by lilpkstud

    • RE: Creating Module with API Key/Secret

      @sdetwell @strawberry-3-141 thanks guys got it to work!

      I used JSON.Stringify() to look at the data when I was console.loggining so that was the reason why my object were turning into strings

      posted in Development
      L
      lilpkstud
    • RE: Creating Module with API Key/Secret

      @lavolp3

      This line of code will show a { on my mirror so I’m assuming everything is turned into a string?

      I used JSON.stringify() in my node_helper file

                  wrapperDataRequest.innerHTML = this.data[0];
      
      
      posted in Development
      L
      lilpkstud
    • RE: Creating Module with API Key/Secret

      @lavolp3 I deleted this.data.name because I was getting undefined and I still am

      posted in Development
      L
      lilpkstud
    • RE: Creating Module with API Key/Secret

      Having trouble displaying the information that I received from Yelp API

       getDom: function() {
              var self = this;
              var wrapper = document.createElement("div");
              //If this.dataRequest is not empty
              if(this.data && this.data.length > 0){
                  console.log("MMM-Test: This.data is set" + this.data);
              
                  //Name of Business
                  var wrapperDataRequest = document.createElement("h1");
                  wrapperDataRequest.innerHTML = this.data;
                  wrapperDataRequest.className = 'yelpBusinessName';
      
                  wrapper.appendChild(imgDataRequest);
                  wrapper.appendChild(wrapperDataRequest);
              } else {
                  console.log("MMM-Test: this.data couldn't be found");
                  wrapper.innerHTML = "This didn't work";
              }
              
              return wrapper;
      	},
      
      MMM-Test: This.data is set{"id":"E8RJkjfdcwgtyoPMjQ_Olg","alias":"four-barrel-coffee-san-francisco","name":"Four Barrel Coffee","image_url":"https://s3-media1.fl.yelpcdn.com/bphoto/-_Ks4eF8aZcm3GZgUf5Urg/o.jpg","is_closed":false,"url":"https://www.yelp.com/biz/four-barrel-coffee-san-francisco?adjust_creative=joufChkTQP-Ru-G_5cRrMA&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=joufChkTQP-Ru-G_5cRrMA","review_count":2069,"categories":[{"alias":"coffee","title":"Coffee & Tea"}],"rating":4,"coordinates":{"latitude":37.7670169511878,"longitude":-122.42184275},"transactions":[],"price":"$","location":{"address1":"375 Valencia St","address2":"","address3":"","city":"San Francisco","zip_code":"94103","country":"US","state":"CA","display_address":["375 Valencia St","San Francisco, CA 94103"]},"phone":"+14158964289","display_phone":"(415) 896-4289","distance":1452.8696502343696}
      

      How can I display name?

      I tried this.data[0].name or this.data.name but no luck

      posted in Development
      L
      lilpkstud
    • RE: Creating Module with API Key/Secret

      @lavolp3 Thanks for the example I will look into it more

      However, is there a way to put my request token inside of the request header?

      posted in Development
      L
      lilpkstud
    • Creating Module with API Key/Secret

      I read the “Head first developing MM module for extreme beginners” but I am still confused how I can configure it.

      I want to create a MM-Yelp

      I created my app on Yelp Fusion and I have an api_key and secret. Where do I store this api_key? My main.js or into my node_helper.js?

      Sorry, I am a total beginner with JS

      posted in Development
      L
      lilpkstud
    • RE: Marvel Comics

      I would be interested in creating this module with you!

      posted in Requests
      L
      lilpkstud
    • RE: Majority of my emoji not showing on RPB3+

      These were the articles that helped me the most

      https://www.omgubuntu.co.uk/2016/08/enable-color-emoji-linux-google-chrome-noto

      https://raspberrytips.com/install-fonts-raspberry-pi/

      https://eosrei.github.io/emojione-color-font/full-demo.html

      posted in Troubleshooting
      L
      lilpkstud
    • RE: Majority of my emoji not showing on RPB3+

      @broberg @retroflex

      FIXED!!!

      For anyone that has the same issue I was able to fix it by doing the following steps:

      1. Follow this article’s step to download and create font-config
        https://www.omgubuntu.co.uk/2016/08/enable-color-emoji-linux-google-chrome-noto

      2. Unzip folder from Raspberry Pi’s Download Folder

      3. Open Terminal and type the following:
        cp *.ttf ~/.fonts/
        fc-cache -v -f

      4. Reboot Raspberry Pi

      5. Verify that you can see emoji (https://eosrei.github.io/emojione-color-font/full-demo.html)

      posted in Troubleshooting
      L
      lilpkstud
    • RE: Majority of my emoji not showing on RPB3+

      @broberg Thanks for the fast replies!

      I will look into the smart mirror this weekend

      posted in Troubleshooting
      L
      lilpkstud