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

    Posts

    Recent Best Controversial
    • RE: module calendar showing full day events one day to long

      @lavolp3 said in module calendar showing full day events one day to long:

      @striiker
      I need to disagree here.
      MagicMirror does not need kludge hacks!
      It needs development!

      I am 100% sure your 5-hours-restart-hack can be solved without the workaround.

      I absolutely agree that it needs development. Unfortunately that’s outside of my realm of expertise (and others who have these types of issues). In the absence of someone actively developing a solution to a defect which should be widely known (I have had this crash happen on multiple fresh, new base installs) we are left with using what we can to work around the issues.

      The only responses I had to my query around the crashing was from others who had this happen and one person who suggested the cron restart. There was another post by someone else with the same issue as well.

      Beggars can’t be choosers and I’m not complaining about this. I am hopeful that these issues will get addressed some day but in the mean time, here we are.

      posted in Troubleshooting
      S
      StrIIker
    • RE: module calendar showing full day events one day to long

      @AnduriI I agree that this is a kludge to get the calendar working. I had tried out MMM-MyCalendar which didn’t appear to have this issue (all day events like holidays and birthdays displayed the correct date). It’s a great module BUT, I decided not to use it because I can’t change the colors of the calendars and I could not use a custom icon for different calendars. For example, on my calendar, I have three calendars (US Holidays - white, Birthday calendar - purple with cake icon, and appointments - green). It helps to highlight the different events showing up in the list. I didn’t reach out to the module developer to request this yet. Give it a look, it might be what you are looking for.

      Unfortunately Magic Mirror has issues which need a kludge hack to resolve (I need to cron a restart of the Magic Mirror application every 5 hours otherwise it goes black (not a screen saver or power saving thing). This has been present for since at least the previous build. Still, I love the Magic Mirror platform and the community is amazing! I am grateful every time I come here and see people helping each other out…

      posted in Troubleshooting
      S
      StrIIker
    • RE: module calendar showing full day events one day to long

      Per @Nilnik 's comment, have a look at that thread. I was having the same issue as well (that’s the thread I had started). Ultimately, it came down to adding the showEnd: false, to the config for the calendar.

      timeFormat: 'absolute',
      showEnd: false,
      
      posted in Troubleshooting
      S
      StrIIker
    • RE: Black screen after some time

      @hakupapa

      I have been having this issue as well. I discussed this in another thread

      I have always had this issue as I am new to running a Magic Mirror. It looks like there may have been a memory leak introduced in version 2.4.0 which persisted to version 2.5.0 . My only solution has been to implement a cron job to reload magic mirror every 5 hours (suggested by @MadScientist ). I’ve considered downgrading to a pre-2.4.0 build (haven’t checked to see if it’s even available). For now I’ll deal with it via the reloads.

      posted in Troubleshooting
      S
      StrIIker
    • RE: Change newsfeed title to image/logo?

      @justjim1220 said in Change newsfeed title to image/logo?:

      @striiker

      Add this to custom.css, Make the changes you want in it…

      .MMM-NewsFeedTicker {
          height: 100px;
          background-color: maroon;
          opacity: 1.0;
      }
      
      .MMM-NewsFeedTicker .headline {
          padding-top: 15px;
          font-size: 100%;
      }
      
      .MMM-NewsFeedTicker .image {
        height: 100px;
        background-color: #FFF;
      }
      

      Let me know if you have any problems with this.

      I am glad that you like it! :smiling_face_with_sunglasses:

      Concerning adjusting the opacity of the colored bar, how to I set it to 50%? I tried 0.5 and it didn’t seem to make any difference. Thanks again!

      posted in Development
      S
      StrIIker
    • RE: Change newsfeed title to image/logo?

      @justjim1220 said in Change newsfeed title to image/logo?:

      @striiker

      Another apology…

      When I was working with this module I had the font set to xlarge or large in the MMM-NewsFeedTicker.js file.

      It makes it easier for these old eyes to see changes,

      So, in the following section of the js file…

       var headline = document.createElement("span");
                      headline.setAttribute("style", "padding-bottom:25px");
                      headline.className = "bold xlarge bright";
                      headline.innerHTML = "<font color= #ffaa00>" + moment(new Date(this.newsItems[this.activeItem].pubdate)).fromNow() + ": &nbsp;" + "</font>" + this.newsItems[this.activeItem].title + "&nbsp; || &nbsp;" + this.newsItems[this.activeItem].description;
                      tickerBody.appendChild(headline);
      

      Change the ‘xlarge’ to small

      This has resolved the issue I had. I tried small and it was a little too small so I set that value to medium and it’s perfect for me. Thank you for pointing this out and providing the solution! Now this will stream my news.

      posted in Development
      S
      StrIIker
    • RE: Change newsfeed title to image/logo?

      @justjim1220 said in Change newsfeed title to image/logo?:

      @StrIIker
      @cyberphox

      My Apologies for the issues you are having, but, I am looking over the code to make these fixes and I am not seeing any of the problems you are describing…

      Any way you could show me the specific places these errors are occurring?

      I ran it through an error checker and it’s not finding any errors…

      Th example config on your git page is missing a trailing ‘}’ This is why people have had issues adding to their config.js

      posted in Development
      S
      StrIIker
    • RE: Change newsfeed title to image/logo?

      @justjim1220 said in Change newsfeed title to image/logo?:

      @striiker

      Add this to custom.css, Make the changes you want in it…

      .MMM-NewsFeedTicker {
          height: 100px;
          background-color: maroon;
          opacity: 1.0;
      }
      
      .MMM-NewsFeedTicker .headline {
          padding-top: 15px;
          font-size: 100%;
      }
      
      .MMM-NewsFeedTicker .image {
        height: 100px;
        background-color: #FFF;
      }
      

      Let me know if you have any problems with this.

      I am glad that you like it! :smiling_face_with_sunglasses:

      I added the lines to the custom.css and adjusted as follows. I still see the scrolling text as full size / cut off (screenshot of section included…

      .MMM-NewsFeedTicker {
          height: 50px;
          background-color: maroon;
          opacity: 0.5;
      }
      
      .MMM-NewsFeedTicker .headline {
          padding-top: 15px;
          font-size: 50%;
      }
      
      .MMM-NewsFeedTicker .image {
        height: 50px;
        background-color: #FFF;
      }
      

      0_1540509375376_Screen Shot 2018-10-25 at 7.14.32 PM.png

      posted in Development
      S
      StrIIker
    • RE: Change newsfeed title to image/logo?

      @cyberphox

      Yeah, I have spent a lot of time trying to figure out where I was missing something… Generally it was a missing comma at the end of a config line which had additional content following it or misplacing the { or }.
      Also, the modules are loaded in order as they appear in the config so if you want a couple of things in the top left (denoted by the location parameter “position”: “top_left”, the first module will be the top left and the second module read would be just below that.

      posted in Development
      S
      StrIIker
    • RE: Change newsfeed title to image/logo?

      @cyberphox said in Change newsfeed title to image/logo?:

      Ok so to remove the old one and install this, let’s review the steps! :)
      Anyone…??

      Sure! I assume this is what you want…

      Refer to: https://github.com/justjim1220/MMM-NewsFeedTicker for the full install details etc.

      Install new news ticker:
      Log into your Raspberry Pi as pi and:

      cd ~/MagicMirror/modules
      git clone https://github.com/justjim1220/MMM-NewsFeedTicker.git
      

      This installs the requisite module into the correct directory.

      Remove old news and enable new news
      The nice thing with this is that enabling or disabling modules is done simply by adding or deleting entries in the config.js file. The only catch is that it’s touchy with proper syntax so make sure you aren’t missing something simple (like a trailing comma or a misplaced ‘}’ or ‘{’. I suggest backing up your current config.js so that you can revert to it if needed. This is generally a good policy when modifying any config files. To check your config for errors, reference the following article:
      https://forum.magicmirror.builders/topic/5399/how-to-check-your-config-for-errors-for-absolute-beginners/2
      So, onto making that backup copy…

      cd ~/MagicMirror/config
      cp config.js config.bak01
      

      Increment the trailing number if you want to retain multiple backup copies. If you make a mistake and want to start over, copy the backup to overwrite the current version of config.js…

      cp config.bak01 config.js
      

      Now edit the config file…

      nano config.js
      

      To disable the default news reader, delete the following: (you may have additional feeds if you added anything).

      {
      			"module": "newsfeed",
      			"position": "bottom_bar",
      			"config": {
      				"feeds": [
      					{
      						"title": "New York Times",
      						"url": "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      					},
      				],
      				"showSourceTitle": true,
      				"showPublishDate": true
      			}
      		},
      

      Now to add the new feed, add the following somewhere in the config (maybe where the old new feed was?) You can customize this by adding or removing news sources based upon what interests you.

      {
      	disabled: false,
      	module: "MMM-NewsFeedTicker",
      	position: "bottom_bar",
      	//classes: "day_scheduler",
      	config: {
      	    feeds: [
      		{
      			title: "New York Times",
      			url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml",
      			encoding: "UTF-8", //ISO-8859-1
      			className: "myClass",
      			defaultLogo : ""
      		},
      		{
      			title: "USA Today",
      			url: "http://rssfeeds.usatoday.com/UsatodaycomNation-TopStories",
      			encoding: "UTF-8", //ISO-8859-1
      			className: "myClass",
      			defaultLogo : ""
      		},
      		{
      			title: "BBC World News",
      			url: "http://feeds.bbci.co.uk/news/world/rss.xml#",
      			encoding: "UTF-8", //ISO-8859-1
      			className: "myClass",
      			defaultLogo : ""
      		}
          	    ]
      	},
      

      Now you can reload the MagicMirror via Ctrl-R (I find that the system automatically reloads the module once it detects a changed config.js). You should see the new news feed at the bottom.

      posted in Development
      S
      StrIIker
    • 1 / 1