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

    Posts

    Recent Best Controversial
    • RE: Change newsfeed title to image/logo?

      here it is with the New York Times…

      0_1539382581526_Screenshot (150).png

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      @cyberphox @blueadam @Sean

      I see that I didn’t notice the changes that the forums made when I copy/pasted the code.

      Apologies!

      I also missed a step: Need to add getStyles function to the newsfeed.js Pic for placement

      0_1539381776852_Screenshot (145).png

      And this is what I tried to post and the forums didn’t like it and cahnged it, This is what you need to get it to work:
      0_1539381869307_Screenshot (146).png

      I will fix this in my original post.

      Again, Apologies!

      posted in Development
      justjim1220J
      justjim1220
    • RE: Dealing with 404 url error in module.

      and this example uses jQuery…

      < script>
      $(document).ready(function(){
          $("button").click(function(){
              $.get("demo_test.asp", function(data, status){
                  alert("Data: " + data + "\nStatus: " + status);
              });
          });
      });
      < /script>
      

      you would have to download or call jquery…

      downloaded and added to your module directory…

      getScripts: function() {
          return ["jquery.min.js'];
      },
      

      to call for it…

      < script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">< /script>
      
      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: Dealing with 404 url error in module.

      this is an example of the XMLHttpRequest mentioned in the previous post…

      var xmlHttp = null;
      
      function GetCustomerInfo()
      {
          var CustomerNumber = document.getElementById( "TextBoxCustomerNumber" ).value;
          var Url = "GetCustomerInfoAsJson.aspx?number=" + CustomerNumber;
      
          xmlHttp = new XMLHttpRequest(); 
          xmlHttp.onreadystatechange = ProcessRequest;
          xmlHttp.open( "GET", Url, true );
          xmlHttp.send( null );
      }
      
      function ProcessRequest() 
      {
          if ( xmlHttp.readyState == 4 && xmlHttp.status == 200 ) 
          {
              if ( xmlHttp.responseText == "Not found" ) 
              {
                  document.getElementById( "TextBoxCustomerName"    ).value = "Not found";
                  document.getElementById( "TextBoxCustomerAddress" ).value = "";
              }
              else
              {
                  var info = eval ( "(" + xmlHttp.responseText + ")" );
      
                  // No parsing necessary with JSON!        
                  document.getElementById( "TextBoxCustomerName"    ).value = info.jsonData[ 0 ].cmname;
                  document.getElementById( "TextBoxCustomerAddress" ).value = info.jsonData[ 0 ].cmaddr1;
              }                    
          }
      }
      
      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: Dealing with 404 url error in module.

      @mykle1

      I found this, seems to be what you are looking for…

      The new window.fetch API is a cleaner replacement for XMLHttpRequest that makes use of ES6 promises. There’s a nice explanation here, but it boils down to (from the article):

      fetch(url).then(function(response) {
        return response.json();
      }).then(function(data) {
        console.log(data);
      }).catch(function() {
        console.log("Booo");
      });
      

      Browser support is now good in the latest releases (works in Chrome, Firefox, Edge (v14), Safari (v10.1), Opera, Safari iOS (v10.3), Android browser, and Chrome for Android), however IE will likely not get official support. GitHub has a polyfill available which is recommended to support older browsers still largely in use (esp versions of Safari pre March 2017 and mobile browsers from the same period).

      I guess whether this is more convenient than jQuery or XMLHttpRequest or not depends on the nature of the project.

      Here’s a link to the spec https://fetch.spec.whatwg.org/

      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      Now, to figure out how to do it for those who have more than 1 newsfeed!

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      You’ll have to find the logo for the news feed you are using (Google images)

      save it to your newsfeed folder

      change the part in the top code (USATodayLogo.jpg) to match your image

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      Change this section of the newsfeed.js file (copy, paste, overwrite)…

      0_1539381938884_Screenshot (146).png

      and add a getStyles function to call the newsfeed.css…

      0_1539381999894_Screenshot (145).png

      Create a newsfeed.css file and put the following in it…

      0_1539382082409_Screenshot (148).png

      (I think I will post pics instead of code from now on!) :smiling_face_with_sunglasses: :smirking_face: :confused_face:

      Enjoy!

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      I know, the scroll part wasn’t in the request, But, I couldn’t help myself… :smiling_face_with_sunglasses:

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      @cyberphox

      Yeppers!

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      OK, I think I got it!

      0_1539306175638_Screenshot (140).png

      0_1539306182044_Screenshot (141).png

      0_1539306192589_Screenshot (142).png

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      @mykle1

      IKR!?

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      @mykle1

      I’t takes me a minute to do this stuff!

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      @mykle1

      I will, when I get it done!!! :winking_face:

      posted in Development
      justjim1220J
      justjim1220
    • RE: Change newsfeed title to image/logo?

      @blueadam

      I can help you. set that up.
      I sent you a chat message.

      posted in Development
      justjim1220J
      justjim1220
    • RE: Config help

      @drunken_tiger

      No worries, There are a lot of very helpful people in this forums, feel free to ask for it anytime. We are always happy to help! :smiling_face_with_sunglasses:

      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: Config help

      @drunken_tiger

      post your config, remove any personal info…

      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: $11 Alarm Clock using MM and Hello-Lucy

      @mykle1

      the ToughBook is old… the touchpad doesn’t work, and I have no idea what is wrong with the mic…
      I have to talk really loud for it to hear me. I tried a USB mic, and it’s the same. So, I’m guessing it has to do with the sound hardware of the laptop. I don’t have any problem with the USB on any of my other devices.

      posted in Show your Mirror
      justjim1220J
      justjim1220
    • RE: MMM-DVB

      @renedd said in MMM-DVB:

      Es geschehen Wunder. Nach einem erneuten Reboot funktioniert jetzt alles. Vielen Dank,

      Kein Problem, jederzeit, immer froh zu helfen, wenn ich kann

      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: MMM-CalendarEXT ... Need a custom layout...

      @sean

      kind of…

      The major issue I’m having is thae colors of the weekend not being the same as the rest of the calendar…

      But, other than that, it looks great!

      posted in Requests
      justjim1220J
      justjim1220
    • 1
    • 2
    • 17
    • 18
    • 19
    • 20
    • 21
    • 32
    • 33
    • 19 / 33