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: MMM-NewsFeedTicker

      some found sports news that work for those interested…

      http://www.espn.com/espn/news/story?page=rssinfo for all sports
      http://www.espn.com/espn/rss/nfl/news for NFL
      0_1540949623343_Screenshot (159).png

      https://www.foxsports.com/rss-feeds for list of all sports
      https://api.foxsports.com/v1/rss?partnerKey=zBaFxRyGKCfxBagJG9b8pqLyndmvo7UU&tag=nfl for NFL
      0_1540949798112_Screenshot (162).png

      https://www.cbssports.com/xml/rss for all sports
      https://www.cbssports.com/rss/headlines/nfl/ for NFL
      0_1540949880419_Screenshot (160).png

      https://www.rotowire.com/rss/ for all sports
      https://www.rotowire.com/rss/news.htm?sport=nfl for NFL
      0_1540949975405_Screenshot (161).png

      I also wanted to add that if you place the newsfeeds in the config, it also works better to place them in the js file as well. Not sure why, but I noticed that it does.
      So, wanted to pass that on.

      I am still working on getting a custom logo to show if one does not get pulled from the rss site.

      posted in Utilities
      justjim1220J
      justjim1220
    • RE: MMM-NewsFeedTicker

      @cr4z33

      Apologies, I am working on the issue of using a custom logo if one doesn’t get pulled from the site.
      Please stand by… :smiling_face_with_sunglasses:

      posted in Utilities
      justjim1220J
      justjim1220
    • RE: MMM-HolidayLights

      @rolandb

      In your config file, make sure you don’t have .css after the one you chose.

      IE: use Christmas and not Christmas.css

      posted in Entertainment
      justjim1220J
      justjim1220
    • RE: NPM security warnings on fresh install

      @mykle1

      I did a fresh install of Ubuntu 18.04 to dual boot with Windows 7 then added MM and didn’t get any warnings and this was about a week after MM 2.5.0 came out.

      When I did the fresh install of MM on a Windows PC, I got the warnings, Always have, but I have always done the ‘npm audit fix’ and they were fixed. Or, at least most of them, some required manual fix.

      I have always had those warnings, even get them quite often when installing modules with certain types of dependencies.

      but, with Ubuntu, I never had the warnings.

      posted in Bug Hunt
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @sean

      Yes, that is the command to get the temps from the PC using powershell or command prompt…

      BUT, where to use the command in node_helper.js?

      OR, where to use the command in the module.js file?

      posted in Development
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @sean

      Not sure I follow …

      what would be my ‘shell command’?

      posted in Development
      justjim1220J
      justjim1220
    • RE: MMM-NewsFeedTicker

      @cr4z33

      what news site is it?

      posted in Utilities
      justjim1220J
      justjim1220
    • RE: Sound loop not seamless. Request advice.

      @mykle1

      I understand that, It was a lot of work for me

      Was thinking though, I think I only used 2 copies.

      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @strawberry-3-141

      What are the chances of being able to do what I had been attempting with this?
      https://github.com/moxystudio/node-cross-spawn

      And would it be possible to add to a current node_helper being used for linux, or would a separate node_helper or script need made?

      posted in Development
      justjim1220J
      justjim1220
    • RE: Sound loop not seamless. Request advice.

      @mykle1

      I remember having a similar issue with HTMl a long time ago, what I ended up doing was making 3 copys of the wav file and looping through them where one ended at a certain time and the other would start at the same time. But I had to time the gap, and set the time to start the next wav file at that point of the current wav file. I don’t remember the exact coding, been a while now, but after getting it to loop through the 3 copys, starting the next wav at the end of the current wav minus the gap time.

      IE: if the wav files are 1.75s, and if the gap was 0.25s, then the next wav would start at 1.5s of the current wav.

      If that makes any sense, apologies if it doesn’t.

      posted in Troubleshooting
      justjim1220J
      justjim1220
    • RE: MMM-NewsFeedTicker

      @electros

      you should be able to place it in any of the regions,
      it works best in the top_bar, middle_center, and bottom_bar for the 100% width

      posted in Utilities
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @strawberry-3-141

      I had a syntax error in the declaration of Temps.

      I’m totally thinking this isn’t going to work.

      I will probably need to find a different way,
      figured if I could pull it from the SIMBIOS using a simple script, that maybe it could be pulled using a module for MM.

      there are some open source apps for Windows that work to get the data, I will just have to study them and see what I can come up with.

      Thanks for trying to help.

      posted in Development
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @strawberry-3-141

      I defined Temps. then got this in console…

      MMM-PC-Stats.js:104 Uncaught (in promise) TypeError: Cannot read property '
      ootwmi:MSAcpi_ThermalZoneTemperature' of undefined
          at Class.getDom (MMM-PC-Stats.js:104)
          at main.js:110
          at new Promise (<anonymous>)
          at updateDom (main.js:109)
          at Object.updateDom (main.js:514)
          at Class.updateDom (module.js:358)
          at Class.socketNotificationReceived (MMM-PC-Stats.js:213)
          at module.js:246
          at r.<anonymous> (socketclient.js:25)
          at r.emit (index.js:133)
      
      posted in Development
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @strawberry-3-141

      it throws this error…

      Uncaught (in promise) ReferenceError: Temps is not defined
          at Class.getDom (MMM-PC-Stats.js:103)
          at main.js:110
          at new Promise (<anonymous>)
          at updateDom (main.js:109)
          at Object.updateDom (main.js:514)
          at Class.updateDom (module.js:358)
          at Class.socketNotificationReceived (MMM-PC-Stats.js:218)
          at module.js:246
          at r.<anonymous> (socketclient.js:25)
          at r.emit (index.js:133)
      
      posted in Development
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @strawberry-3-141

      this script ran in powershell …

      function Get-Temperature {
          $t = Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"
          $returntemp = @()
      
          foreach ($temp in $t.CurrentTemperature)
          {
              $currentTempKelvin = $temp / 10
              $currentTempCelsius = $currentTempKelvin - 273.15
              $currentTempFahrenheit = (9/5) * $currentTempCelsius + 32
              $returntemp += $currentTempCelsius.ToString() + " C : " + $currentTempFahrenheit.ToString() + " F : " + $currentTempKelvin + "K"  
          }
          return $returntemp
      }
      

      gives the following output for a single core …

      PS C:\WINDOWS\system32> get-temperature
      44.05 C : 111.29 F : 317.2K
      

      I’m really only interested in a C and F result, no need for K that I can think of.

      posted in Development
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      @strawberry-3-141

      PS C:\WINDOWS\system32> powershell.exe Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"
      
      
      __GENUS              : 2
      __CLASS              : MSAcpi_ThermalZoneTemperature
      __SUPERCLASS         : MSAcpi
      __DYNASTY            : MSAcpi
      __RELPATH            : MSAcpi_ThermalZoneTemperature.InstanceName="ACPI\\ThermalZone\\THRM_0"
      __PROPERTY_COUNT     : 12
      __DERIVATION         : {MSAcpi}
      __SERVER             : DESKTOP-BEUARKC
      __NAMESPACE          : root\wmi
      __PATH               : \\DESKTOP-BEUARKC\root\wmi:MSAcpi_ThermalZoneTemperature.InstanceName="ACPI\\ThermalZone\\THRM_0
                             "
      Active               : True
      ActiveTripPoint      : {0, 0, 0, 0...}
      ActiveTripPointCount : 0
      CriticalTripPoint    : 3762
      CurrentTemperature   : 3172
      InstanceName         : ACPI\ThermalZone\THRM_0
      PassiveTripPoint     : 3882
      Reserved             : 0
      SamplingPeriod       : 100
      ThermalConstant1     : 2
      ThermalConstant2     : 10
      ThermalStamp         : 25
      PSComputerName       : DESKTOP-BEUARKC
      
      posted in Development
      justjim1220J
      justjim1220
    • RE: help converting code for module...

      latest attempt with this code…

      var checkSensorTemps = Temps["\root\wmi:MSAcpi_ThermalZoneTemperature"]["ACPI\ThermalZone"]["THRM_0"];
      if (typeof checkSensorTemps !== "undefined") {
      
      	// Core Temps
      	var core0Temp = document.createElement("div");
      	core0Temp.classList.add("large", "bright", "core0Temp");
      	core0Temp.innerHTML = Stats.cpu.threads[i].name + " &nbsp  @  &nbsp " 
      		+ ((Temps["\root\wmi:MSAcpi_ThermalZoneTemperature"]["ACPI\ThermalZone"]["THRM_0"].value / 10) -273.15) + " &deg;C "
      		+ ((((Temps["\root\wmi:MSAcpi_ThermalZoneTemperature"]["ACPI\ThermalZone"]["THRM_0"].value / 10) -273.15) * 9/5) + 32) + " &deg;F "
      		+ (Temps["\root\wmi:MSAcpi_ThermalZoneTemperature"]["ACPI\ThermalZone"]["THRM_0"].value  / 10) + "&deg;K";
      	wrapper.appendChild(core0Temp);
      }
      

      HELP! LMAO! :face_with_stuck-out_tongue_winking_eye:

      posted in Development
      justjim1220J
      justjim1220
    • RE: MMM-NewsFeedTicker

      @electros

      OK, you need to add the following to your custom.css file:

      .navigation-menu {
          display: flex;
          align-items: stretch;
          position: absolute;
      }
      

      With the code I posted and this addition to the custom.css file, I was able to get this…
      0_1540595500237_Screenshot (412).png
      0_1540595512137_Screenshot (413).png 0_1540595520896_Screenshot (414).png

      If you added any NewsFeedTicker code to your custom.css file, you need to remove it.

      If you want the background color back to maroon, change the background: none; to background-color: maroon;

      posted in Utilities
      justjim1220J
      justjim1220
    • RE: MMM-NewsFeedTicker

      @electros

      do you still have the entries you put into the custom.css?

      posted in Utilities
      justjim1220J
      justjim1220
    • RE: MMM-NewsFeedTicker

      @electros

      what is the name of the module for the buttons?

      posted in Utilities
      justjim1220J
      justjim1220
    • 1
    • 2
    • 10
    • 11
    • 12
    • 13
    • 14
    • 32
    • 33
    • 12 / 33