For clarity, the edits have to be in the custom.css file, not in the MMM-Lunartic.css file?
Read the statement by Michael Teeuw here.
Posts
-
RE: Separating text from image
-
Separating text from image
Hi,
I’m using MMM-Lunartic and it’s great. The only minor issue is that the text goes through the image of the moon, making it difficult to read. I’d like to move the text down (and maybe increase the size too) but have zero understanding of CSS editing. I’ve looked through the .CSS files in the module but cannot find any options that define text position or size.
Apologies if this is a really silly question! -
RE: MMM-SunRiseSet
@ForeverBrewing Ignore this; I have worked it out. The code that you previously prided needs to be placed OUTSIDE of the “body {}”
-
RE: MMM-SunRiseSet
@Mykle1 So any way of getting rid of the images completely? I’ve tried updating the custom CSS as you have suggested on the issue raised on GitHub but I don’t know how to format it correctly for it to take effect. Thanks in advance!
-
RE: MMM-Lunartic not working
@Mykle1 Thank you for the fix! and for the module, its awesome
-
RE: MagicMirror Newsfeed continually "loading"...
Will do, thanks for your help :)
-
RE: MagicMirror Newsfeed continually "loading"...
Well I guess installing a fresh copy wont be too much hassle! Its not like I cant work out how to get the google assistant to work anyway, so I’ll probably just keep it completely vanilla. Even I cant balls that up too much…
-
RE: MagicMirror Newsfeed continually "loading"...
@sdetweil said in MagicMirror Newsfeed continually "loading"...:
ls ~/MagicMirror/config -laF
ls ~/MagicMirror/modules/default -laFpi@raspberrypi:~/MagicMirror $ ls ~/MagicMirror/config -laF total 20 drwxr-xr-x 2 pi pi 4096 Nov 13 18:17 ./ drwxr-xr-x 17 pi pi 4096 Nov 12 20:25 ../ -rw-r--r-- 1 pi pi 3437 Nov 13 17:35 config.js -rw-r--r-- 1 pi pi 2769 Nov 10 14:36 config.js.sample -rw-r--r-- 1 pi pi 20 Nov 10 14:36 .gitignore pi@raspberrypi:~/MagicMirror $ ls ~/MagicMirror/modules/default -laF total 52 drwxr-xr-x 12 pi pi 4096 Nov 12 21:29 ./ drwxr-xr-x 6 pi pi 4096 Nov 10 18:20 ../ drwxr-xr-x 3 pi pi 4096 Nov 10 14:36 alert/ drwxr-xr-x 3 pi pi 4096 Nov 10 14:36 calendar/ drwxr-xr-x 3 pi pi 4096 Nov 10 14:36 clock/ drwxr-xr-x 2 pi pi 4096 Nov 10 16:35 compliments/ drwxr-xr-x 2 pi pi 4096 Nov 10 14:36 currentweather/ -rw-r--r-- 1 pi pi 520 Nov 10 14:36 defaultmodules.js drwxr-xr-x 2 pi pi 4096 Nov 10 14:36 helloworld/ drwxr-xr-x 2 pi pi 4096 Nov 12 21:32 newsfeed/ drwxr-xr-x 2 pi pi 4096 Nov 10 14:36 updatenotification/ drwxr-xr-x 3 pi pi 4096 Nov 10 14:36 weather/ drwxr-xr-x 2 pi pi 4096 Nov 10 14:36 weatherforecast/Thank you so much for your time with this btw :)
-
RE: MagicMirror Newsfeed continually "loading"...
@sdetweil
Nope, I’m missing the last two lines:pi@raspberrypi:~/MagicMirror $ pm2 stop 0 npm start [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2 [PM2] PM2 Successfully daemonized [PM2] Applying action stopProcessId on app [0](ids: 0) [PM2][ERROR] Process 0 not found pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.9.0 start /home/pi/MagicMirror > sh run-start.sh Starting MagicMirror: v2.9.0 Loading config ... Loading module helpers ... Initializing new module helper ... Module helper loaded: updatenotification No helper found for module: helloworld. All module helpers loaded. Starting server on port 8080 ... Server started ... Connecting socket for: updatenotification Sockets connected & modules started ... Launching application.Also looks like the helper module doesn’t get loaded…?
-
RE: MagicMirror Newsfeed continually "loading"...
@sdetweil Yeah, I guessed it was irrelevant to the newsfeed shenanigans
-
RE: MagicMirror Newsfeed continually "loading"...
@sdetweil
Once I stop filtering for “news” I do see one error, but it relates the the weather module:newsfeed - unknown notification, ignoring: CLOCK_SECOND
api.openweathermap.o…43aac34d08eb3e2f3:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
weatherforecast.js:266 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.
newsfeed.js:370 newsfeed - received notification: CLOCK_SECONDI don’t know if this is relevant in any way?
-
RE: MagicMirror Newsfeed continually "loading"...
@sdetweil
Hey Sam. I have looked through the dev window and cant find any errors, but it is clearly unhappy about something.Below is a sample of what i get as soon as I start the MM:
Load script: modules/default/newsfeed//newsfeed.js
module.js:476 Module registered: newsfeed
loader.js:150 Bootstrapping module: newsfeed
loader.js:155 Scripts loaded for: newsfeed
loader.js:157 Styles loaded for: newsfeed
loader.js:159 Translations loaded for: newsfeed
newsfeed.js:61 Starting module: newsfeed
newsfeed.js:370 newsfeed - received notification: ALL_MODULES_STARTED
newsfeed.js:429 newsfeed - unknown notification, ignoring: ALL_MODULES_STARTED
newsfeed.js:370 newsfeed - received notification: MODULE_DOM_CREATED
newsfeed.js:429 newsfeed - unknown notification, ignoring: MODULE_DOM_CREATED
newsfeed.js:370 newsfeed - received notification: DOM_OBJECTS_CREATED
newsfeed.js:429 newsfeed - unknown notification, ignoring: DOM_OBJECTS_CREATED
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CURRENTWEATHER_DATA
newsfeed.js:429 newsfeed - unknown notification, ignoring: CURRENTWEATHER_DATA
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_MINUTE
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_MINUTE
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370etc etc.
I have tried to click the link and see where in the code the error is, but I am WAAAAY out of my league. The fact is I have literally no idea what i’m looking at and am 100% relying on everybody else’s knowledge to manage anything vaguely resembling anything clever.
Hope this helps?
Brew
-
RE: MagicMirror Newsfeed continually "loading"...
@sdetweil
I have tried re-editing your paste into my config.js. There were a couple of minor formatting changes, but ultimately the problem persists.Thanks for having a look though!
-
MagicMirror Newsfeed continually "loading"...
Apologies for creating another topic about this. I have done loads of research and have read all of the old topics, but cannot get past this.
I’m totally new to this sort of this and thought that this looked nice and easy having viewed a few guides and watched a few videos. I was wrong.
Long story short, I have a fairly fresh install of MM and cannot get the newsfeed to work at all. I’ve left it default and it doesnt populate; I’ve tried to change it to the BBC UK feed (my preferred feed btw) but again it just says “Loading…” along the bottom bar.
I’ve tried so many different variations of the code in the config (but end up breaking it everytime and having to revert it to a saved config file), as well as changing (and reverting to default) all of the other .js files within the newsfeed folder.I have pasted my current config.js below, any help would be greatly appreciated. Also, please note, I’m a massive noob and very simple.
Once I crack this it’ll be onto the next big problem regarding the assistant… but that a fight for another day. The most important thing right now is a functional MM with a newsfeed!
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "en", timeFormat: 24, units: "metric", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "Chessington", locationID: "2653229", //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city appid: "DELIBERATELY BLANK" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "Chessington", locationID: "2653229", //ID from http://www.openweathermap.org/help/city_list.txt appid: "DELIBERATELY BLANK" } }, { 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, } }, { module: "MMM-Hotword", config: { record: { recordProgram : "arecord", device : "plughw:1" }, autostart:true, onDetected: { notification: (payload) => { return "ASSISTANT_ACTIVATE" }, payload: (payload) => { return { profile: payload.hotword } } }, }, }, { module: "MMM-AssistantMk2", position: "top_right", config: { deviceLocation: { coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com) latitude: 37.5650168, // -90.0 - +90.0 longitude: 126.8491231, // -180.0 - +180.0 }, }, record: { recordProgram : "arecord", device : "plughw:1", }, notifications: { ASSISTANT_ACTIVATED: "HOTWORD_PAUSE", ASSISTANT_DEACTIVATED: "HOTWORD_RESUME", }, useWelcomeMessage: "brief today", profiles: { "default" : { lang: "en-US" } }, } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/Thanks in advance!
Brew