@Mitchfarino StackExchange had a pretty good start.
Based upon the fact that the text value includes the HTML tag
@Mitchfarino StackExchange had a pretty good start.
Based upon the fact that the text value includes the HTML tag
@Thlb0 Those are some very comprehensive installation instructions. Well done.
For quick reference, the guide to using pm2 to automatically start the mirror process can be found here.
I remember having trouble getting the UI displayed on my Raspberry PI 2, but I can’t remember what I did specifically to get it up and running. Assuming you are using a keyboard & mouse connected directly to the Pi, try this:
startx. You should eventually see a desktop, with a mouse cursor, menu, etc.cd ~/MagicMirror followed by npm start.That should at least give you your interface. If you are using SSH to issue commands to your mirror remotely, try the following:
cd ~/MagicMirrorDISPLAY=:0 npm startIt has been a while since I was playing around with my RPi 2. I think these will help.
@deadherring said in Rss for news feeds?:
and one from CNN, I configured on the pi itself, modifying the config file with a mouse and keyboard on the pi. The rest that I shared that weren’t working, modified the config file on my mac via text edit and then ftp’d the file up to the pi. I suspect that the mac might be saving the file in a way the pi does not like, or, as was suggested, inputting the " s in a way the pi does not like. At least, that’s my theory right now, I need to test when I get home.
I think you may be on to something here. Looking back at your complete list of feeds, this is what showed up from your copy & paste:
},
title: “Jerusalem Postâ€
url: “http://www.jpost.com/Rss/RssFeedsFrontPage.aspxâ€
},
Now I don’t know about your Mac, but from here that looks like some unicode characters where there should be UTF-8. The quotes around Jerusalem Post and the URL value are jacked up. I think you’re better off SSH into the Pi and using nano to edit the config.js file.
Greetings!
My mirror project is destined to be a gift for a friend and as part of the configuration for it, my wife and her friends are writing a metric buttload (100+) of compliments. I’m going to have to load those compliments into the compliment module. Which is fine, but I am concerned that if I screw up even one of those compliments, the config.js file will not be a valid file and the MagicMirror interface will not display properly.
My solution, thanks in no small part to @strawberry-3-141 expert assistance, is to put the compliment arrays into a separate JSON file and load that file as an optional parameter fileName. I have the code ready and it has passed my alpha testing. The fileName parameter is optional and this is an extension of the existing core modules.
I’d like to add this feature to the core MagicMirror project. Is this a valuable feature? How do I go about contributing a minor change to the core?
@geeflaxx Don’t forget that you can specify more than one feed per instance of the module. So you could run one instance of the module that displays two feeds in middle_center and another instance of the module in bottom_center that shows the other two feeds.
Like so:
{
module: 'newsfeed',
position: 'middle_center',
config: {
feeds: [
{
title: "Feed #1",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml",
},
{
title: "Feed #2",
url: "http://whatever.com/news/rss",
},
]
}
},
{
module: 'newsfeed',
position: 'bottom_center',
config: {
feeds: [
{
title: "Feed #3",
url: "http://www.kittennews.com/news/feed/",
},
{
title: "Feed #4",
url: "http://feeds.midgetpr0n.com/events/fresh/rss",
},
]
}
}
@done Wait, does it work for you? Because it’s not working for me and this is the last thing I need before my mirror is done.
@PaulB You can flash the card, but once it’s in the Pi, you can’t SSH to it?
Are you receiving a login prompt at all, or is the connection failing? Have you tried SSH to the IP address of the Pi? ssh pi@192.168.0.3 (or whatever).
Does anyone remember if SSH is enabled on Raspbian by default? Or must you log in to the Pi itself and configure it?
At a guess, it looks like you put the header for your module in the module name specification. The module: [name] lines must match the name of the module. These names also correspond with folders in the ~/MagicMirror/modules path. The modules that are installed with the MagicMirror code (which I believe you are trying to use) will be in ~/MagicMirror/modules/default/[module name]
So try this instead:
{
module: 'currentweather',
position: 'top_right',
config: {
location: 'Bayreuth, Germany',
locationID: '5128581',
appid: '158010f0c45e255e6439eb1885b3482b'
}
},
{
module: 'weatherforecast',
position: 'top_right',
header: 'Wettervorhersage',
config: {
location: 'Bayreuth, Germany',
locationID: '5128581',
appid: '158010f0c45e255e6439eb1885b3482b'
}
},