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

    Topics

    • P

      Title on items in default news feed module don't work for BBC - Bug or design?

      Watching Ignoring Scheduled Pinned Locked Moved Bug Hunt
      1
      0 Votes
      1 Posts
      847 Views
      P
      It’s always bugged me that instead of the actual title of a news item being displayed by the default newsfeed module, every item is preceded by the text in the ‘title’ field of the feed’s config in the newsfeed module’s section of the config.js file. To try and explain that, the feeds section of my config.js file is: config: { feeds: [ { title: "BBC UK", url: "http://feeds.bbci.co.uk/news/uk/rss.xml" }, { title: "BBC World", url: "http://feeds.bbci.co.uk/news/world/rss.xml", }, ], showSourceTitle: true, showPublishDate: false, showDescription: true } And the ‘Title’ shown on the mirror for every news item that comes from “http://feeds.bbci.co.uk/news/uk/rss.xml” is “BBC UK”, instead of the actual title of the item. I looked in the newsfeed.js file and there’s a line that says: if (this.config.showSourceTitle && this.newsItems[this.activeItem].sourceTitle !== '') sourceAndTimestamp.innerHTML = this.newsItems[this.activeItem].sourceTitle I then loaded the feed in Chrome & had a look at the xml source. In there the name of the title ‘field’ is “title”. I went to that line in the newsfeed.js file, changed .sourceTitle to title, rebooted the mirror and, yes! Each item in the feed has its proper title. So, my question is - Is this an issue specific to the BBC newsfeeds, or is it a more general ‘bug’ in the newsfeed module please?
    • P

      Facial Recognition - Where do elements go go?

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      11
      0 Votes
      11 Posts
      10k Views
      X
      @plumcraft said in Facial Recognition - Where do elements go go?: Hello, I’m trying to use facial trainer but i got this error ( when executing python capture.py) reference : https://github.com/paviro/MMM-Facial-Recognition-Tools/tree/master/facetrainer What do you want to do? [1] Capture training images from webcam [2] Convert ‘*.jpg’ pictures from other cameras to training images –> 1 Enter the name of the person you want to capture or convert images for. –> plumcraft Images will be placed in ./training_data/plumcraft Starting process… Capturing positive training images. Press enter to capture an image. Press Ctrl-C to quit. Capturing image… OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp, line 3737 Traceback (most recent call last): File “capture.py”, line 35, in capture.capture() File “/home/pi/MMM-Facial-Recognition-Tools/facetrainer/lib/capture.py”, line 57, in capture image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY) cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp:3737: error: (-215) scn == 3 || scn == 4 in function cvtColor I’m using a raspberry pi 3 with pi camera. Looking forward to use this module. Thanks I have the same error. Can everybody help me? I also use Raspberry Pi 3 with pi Camera. Thanks a lot!
    • 1 / 1