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

    Snoevit

    @Snoevit

    2
    Reputation
    831
    Profile views
    12
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Snoevit Unfollow Follow

    Best posts made by Snoevit

    • RE: Translate errors in "NEWS"

      Hey! I got the same issue, i solved it by using this:

      {
      	module: 'newsfeed',
      	position: 'bottom_center',
      	config: {
      		feeds: [
      			   {
      			   title: "Expressen",
      			   url: "http://expressen.se/rss/nyheter",
      			   encoding: "ISO-8859-1",
      			   },
      		        ],
      			showSourceTitle: true,
      			showPublishDate: true,
      			showDescription: true,
      			reloadInterval: 200000,
      			updateInterval: 15000,
      			animationSpeed: 3500
                        }
      }, 
      

      When i was trying with Aftonbladet, DN and my local paper, they all worked without encoding, so there must be something in Expressens feed.

      posted in Troubleshooting
      S
      Snoevit

    Latest posts made by Snoevit

    • RE: Translate errors in "NEWS"

      Hey! I got the same issue, i solved it by using this:

      {
      	module: 'newsfeed',
      	position: 'bottom_center',
      	config: {
      		feeds: [
      			   {
      			   title: "Expressen",
      			   url: "http://expressen.se/rss/nyheter",
      			   encoding: "ISO-8859-1",
      			   },
      		        ],
      			showSourceTitle: true,
      			showPublishDate: true,
      			showDescription: true,
      			reloadInterval: 200000,
      			updateInterval: 15000,
      			animationSpeed: 3500
                        }
      }, 
      

      When i was trying with Aftonbladet, DN and my local paper, they all worked without encoding, so there must be something in Expressens feed.

      posted in Troubleshooting
      S
      Snoevit
    • RE: Weatherunderground - currently - hourly - daily - configurable

      @RedNax
      Thx for your reply! I forgot to update my post to tell you that i found how to remove the ‘rain-part’ :P But thanx for the note on the windspeedconversion!
      Oh, a also figured out my problems with the icons. i replaced the files in the vendors folder, exept for weather-icons.css. I thought those two files were the same, until i saw them side-by-side :)

      posted in Troubleshooting
      S
      Snoevit
    • RE: Weatherunderground - currently - hourly - daily - configurable

      0_1467978804110_väder.png

      Couple of things…

      Wind icons.
      Ive tried copy weather-icons-wind.css to the vendor folder and change vendor.js with no luck.
      I also tried to change getStyles: in the MMM-WunderGround.js file to use the ...-wind.cssfile located in the module folder.

      Since its just the wind icons do i need to do anything special to use them?

      How can i remove Sunrise/Sunset and mm (rain amount)
      Im also wondering how to change the unit km/tim (km/h Swedish translate) to m/s?

      As soon as i try to change anything to remove anything involved “Sunset” or “mm” everything breaks. I cant even remove /astronomy from getParams:. (Wich i believe is the wrong way to do it, But its better to try your way ahead then to hide in the corner.)

      I want it to look more like this ->
      0_1467979549329_väder2.png

      I had no problems changing the default weather modules this way, but since im a newbie i cant figure this one out. :P

      posted in Troubleshooting
      S
      Snoevit
    • RE: Mirror Not Visable

      This happens to me to.
      Using rPi 2 with latest Jessie, trying to make an fresh install of MM2 after i went total berserk and changed to much in config files and tried 3 party modules.
      First try i followed instructions on Git, but it didnt help. Then i tried @KirAsh4 's Setup guide, got to npm start step, and was seeing an error message. Thought i was to hasty and missed something, so i did it again. I read and re-read all the steps before re-installing calmly and safe :) Then at npm start same thing happend.

      from npm-debug.log:

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
      2 info using npm@3.9.5
      3 info using node@v6.2.2
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.0.0~prestart: magicmirror@2.0.0
      6 silly lifecycle magicmirror@2.0.0~prestart: no script for prestart, continuing
      7 info lifecycle magicmirror@2.0.0~start: magicmirror@2.0.0
      8 verbose lifecycle magicmirror@2.0.0~start: unsafe-perm in lifecycle true
      9 verbose lifecycle magicmirror@2.0.0~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
      10 verbose lifecycle magicmirror@2.0.0~start: CWD: /home/pi/MagicMirror
      11 silly lifecycle magicmirror@2.0.0~start: Args: [ '-c', 'electron js/electron.js' ]
      12 silly lifecycle magicmirror@2.0.0~start: Returned: code: 1  signal: null
      13 info lifecycle magicmirror@2.0.0~start: Failed to exec start script
      14 verbose stack Error: magicmirror@2.0.0 start: `electron js/electron.js`
      14 verbose stack Exit status 1
      14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:245:16)
      14 verbose stack     at emitTwo (events.js:106:13)
      14 verbose stack     at EventEmitter.emit (events.js:191:7)
      14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
      14 verbose stack     at emitTwo (events.js:106:13)
      14 verbose stack     at ChildProcess.emit (events.js:191:7)
      14 verbose stack     at maybeClose (internal/child_process.js:852:16)
      14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
      15 verbose pkgid magicmirror@2.0.0
      16 verbose cwd /home/pi/MagicMirror
      17 error Linux 4.4.14-v7+
      18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
      19 error node v6.2.2
      20 error npm  v3.9.5
      21 error code ELIFECYCLE
      22 error magicmirror@2.0.0 start: `electron js/electron.js`
      22 error Exit status 1
      23 error Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.
      23 error Make sure you have the latest version of node.js and npm installed.
      23 error If you do, this is most likely a problem with the magicmirror package,
      23 error not with npm itself.
      23 error Tell the author that this fails on your system:
      23 error     electron js/electron.js
      23 error You can get information on how to open an issue for this project with:
      23 error     npm bugs magicmirror
      23 error Or if that isn't available, you can get their info via:
      23 error     npm owner ls magicmirror
      23 error There is likely additional logging output above.
      24 verbose exit [ 1, true ]
      
      

      EDIT:
      Totally forgot that i was SSH:ing :/
      DISPLAY=:0 nohup npm start & Worked like a charm!

      Would be nice to edit the Setup guide with that ;)

      posted in Troubleshooting
      S
      Snoevit
    • RE: Ability to change color by physical button?

      Thank you Strawberry with everything.
      I think i have to give this idea up tho. I have now been sitting for two days trying. But i just cant wrap my head around it. :/
      Nothing makes sense for me with JavaScript. Not a single row of code have i been able to write.
      Changing ‘fontColor’ is about my level of knowledge :P

      posted in Requests
      S
      Snoevit
    • RE: Ability to change color by physical button?

      I dont have any code. All this time i have been trying to understand what i am trying to do. If we look at The code from PIR-sensor, i dont know wich line are doing what. I have no clue on how and where to start. I cant see to understand The “building” of a module. All The “this. File” and what not dont make Any sense to me.
      I need a How-to guide for toddlers :P

      posted in Requests
      S
      Snoevit
    • RE: Ability to change color by physical button?

      The python-button part is something i tried before, its the other language i have great difficulties with. (The one that MagicMirror is coded in.) since i dont understand The language, i cant read it and change/re-write what is needed for my idea to work. Ive been trying for 4h now.

      posted in Requests
      S
      Snoevit
    • RE: Ability to change color by physical button?

      Yeah… I have no idea what the heck i am doing^^,
      This is way over my league.
      Is there any good beginner guides for me? :p
      I have been looking thru the PIR-Sensor module (and other) whilst reading the “Module Dev. Docu.” trying to understand.

      posted in Requests
      S
      Snoevit
    • RE: Ability to change color by physical button?

      Thank you Strawberry!
      I will give it a go :)

      posted in Requests
      S
      Snoevit
    • Ability to change color by physical button?

      Sorry if i put this post in the wrong category.

      I have just started to fine-polish the last pieces in the config on my MagicMirror when my better half comes screaming " I want an whiteboard!"
      Then the idea came to me that instead of making a mirror, i just use a ordinary glas and use it as an whiteboard. But i dont want it to have a white background all the time…

      So my question is, is it doable by an physical button/switch to “invert” the colors on the hole layot ?

      So that the handwritted “Whiteboard-text” is almost hidden when in “MagicMirror-Mode” (Original layot) and with the press of a button or switch the hole layout is inverting, making the background white and text black.

      I have NO prior knowledge of programming, but i am not afraid to try. But i might need a push in the right direction first :P

      My first idea involved a script like this:

      ´Push button´
      Making it activate a script that replaces ´/css/main.css´ with ´/css/main2.css´ and thereafter sends a ´refresh´command.
      Sort of…
      ( This is my programing abilities ;) )

      Am i reaching for the stars here or is it something that is doable? Maybe there is another solution?

      posted in Requests
      S
      Snoevit