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

    morozgrafix

    @morozgrafix

    Moderator

    Quality Engineer @SlackHQ. ex @Flickr. I like photography, sailing, hockey and beer. Oh and I may know a guy…

    My modules: MMM-horoscope

    85
    Reputation
    4.2k
    Profile views
    136
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Website www.morozgrafix.com
    Location San Francisco, CA

    morozgrafix Unfollow Follow
    Module Developer Moderator

    Best posts made by morozgrafix

    • MMM-horoscope - daily horoscope

      Description:

      Horoscope Module for MagicMirror² v.0.1.0

      This is a module for MagicMirror² that adds daily horoscope pulled from the Yahoo Style Horoscopes. API endpoint used for this module is not officially supported and may break at any time.

      Initial request for it was by @YoungHomie and I thought that this would be a good opportunity to try creating my first module from scratch. (I’m pretty much clueless when it comes to horoscopes or anything related to astrology) Details are in the repo, feel free to file issues on github if you find bugs or have suggestions for features. It’s also easy get in touch with me through the forum.

      Screenshots:

      0_1484679661277_upload-d6cee937-2818-40c7-847c-45bacaf73ad0

      0_1484679621312_upload-00600749-1522-47a8-9e7d-d8749a2becec

      Download:

      [card:morozgrafix/MMM-horoscope]


      Version 0.1.0

      • Initial Work committed
      posted in Entertainment
      morozgrafixM
      morozgrafix
    • RE: Creating a module to display daily horoscopes

      Here is an initial draft of the styling (I’m testing in Chrome on my Mac at the moment, haven’t had time to throw it on RasPi yet). Feedback is welcome:

      0_1483338845023_Screen Shot 2017-01-01 at 10.33.44 PM.png

      0_1483339783461_Screen Shot 2017-01-01 at 10.49.13 PM.png

      posted in Development
      morozgrafixM
      morozgrafix
    • RE: MMM-horoscope - daily horoscope

      @lolobyte At this point it is only in English, as I was only able to find one reliable API to pull data from. If you know of other API or possible RSS feeds in other languages I’m happy to look into integrating it as well.

      posted in Entertainment
      morozgrafixM
      morozgrafix
    • RE: Module programming preview, jsfiddle?

      I just stick with SublimeText 3 on my MacBook and develop most of the stuff while running node serveronly and pointing Chrome at localhost:8080. Been using sublime with tons of add-on packages (including code linters) for years now and very happy with it. When things are ready I SSH to my RasPi and test on it. As @yawns said, the only drawback of this is that you can’t work with GPIO and other RasPi proprietary things while developing locally. I haven’t ran into many problems with that. There is also an scp package that can copy files to remote on save, I use that when I need to run directly on RasPi.

      posted in General Discussion
      morozgrafixM
      morozgrafix
    • RE: Settings in config.js aren't loaded after reboot of RasPi

      @LincolnClay before reinstalling did you delete MagicMirror directory from /home/pi directory? I just want to make sure that your pi user has full access to files inside of MagicMirror directory. You can check who owns MagicMirror directory by running following command in the terminal:

      ls -l /home/$USER
      

      which will give you output similar to this:

      drwxr-xr-x  2 pi       4.0K Jan 21 14:30 foo/
      drwxr-xr-x  2 root     4.0K Jan 21 14:31 foo1/
      drwxr-xr-x 14 pi       4.0K Jan  8 14:52 MagicMirror/
      

      as you can see in the example above directory foo and MagicMirror are owned by pi user and foo1 is owned by root. To change ownership from root to pi this command needs to be executed (in the example below it will change ownership of foo1 directory from root to currently logged in user):

      sudo chown -R $USER /home/$USER/foo1/
      

      basically it does translates to this: Running as root user (one who currently owns foo1 directory and has write permissions) change owner (‘chown’) recursively (-R) to currently logged in user ($USER which is pi in our case) for directory foo1. After running this command foo1 will belong to pi and running ls -l /home/$USER should produce results similar to this:

      drwxr-xr-x  2 pi       4.0K Jan 21 14:30 foo/
      drwxr-xr-x  2 pi       4.0K Jan 21 14:31 foo1/
      drwxr-xr-x 14 pi       4.0K Jan  8 14:52 MagicMirror/
      

      QUESTION: When you changed /home/pi/MagicMirror/config/config.js did you actually save that file? I’m trying to understand what you mean by “I get the standard info displayed on MM” Does it show default settings? Did it ever show info with your local weather?

      I also see some Xlib: errors or warnings in your logs and I have no idea where that coming from.

      P.S. It maybe worth opening your own thread with exact steps that you already did for easier troubleshooting and not to highjack another thread.

      posted in Troubleshooting
      morozgrafixM
      morozgrafix
    • RE: How to load a <script> src = " " </script> into my mirror?

      @nbrenn perfect!!! i can now see your full code and have better idea what you are trying to achieve.

      Your data file is not really a CSV (Comma Separated Values) file, just a text file with values on each line, so you were correct to remove that line.split(",") part. I already spotted a few things where your code will not work correctly. I will take a closer look at it later tonight and hopefully together we can get this resolved.

      posted in Development
      morozgrafixM
      morozgrafix
    • RE: Module programming preview, jsfiddle?

      @washichi Interesting idea for the module. And glancing at your code you seem to be on the right track.

      I may be not understanding what you trying Sublime Text to do. It’s just a text editor with ability to add various packages on top of it. It’s not a full blown IDE. I don’t believe that you can compile or preview the JavaScript module directly in Sublime.

      My general workflow for module creation is something like this:

      1. Create MMM-mymodule directory inside MagicMirror/modules
      2. Open MagicMirror directory in sublime
      3. Add barebones config for the module to modules array in config.js, for example:
      {
      	module: "MMM-mymodule",
      	position: "bottom_right",
      	config : {
      		
      	}
      },
      
      1. Start node serveronly and point my Chrome with dev tools open to the http://localhost:8080
      2. Create/edit MagicMirror/modules/MMM-mymodule/MMM-mymodule.js, save it. (or other files that you need for the module)
      3. Refresh the browser to pickup my changes, debug etc.
      4. Repeat steps 5-6 as I go along. If adding/editing node_helper.js repeat steps 4-6 since node needs to pickup that file.

      Some of restarts/refreshes can be automated on file save with different tools, but I’m not going to get into that right now.

      posted in General Discussion
      morozgrafixM
      morozgrafix
    • RE: How to set ipWhitelist for all device can acess to MagicMirror v2?

      @nobita are you looking to open access to MM from all of the devices on your local network? If that’s the case you can add subnet mask of your local network.

      For example if your router gives you IP address of 192.168.1.XXX (last 3 digits aren’t important and used for example only) then you would edit ipWhitelist setting in config.js as follows:

      ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.1.1/24"],
      

      192.168.1.1/24 is a subnet mask for all 256 IP addresses that your router can give out to devices. (this is the most common scenario and there is a chance that your setup may be different).

      Don’t forget to restart MM app after making this change.

      posted in Troubleshooting
      morozgrafixM
      morozgrafix
    • RE: Replacing snow flakes with hearts in the MMM-SNOW module

      @tamug1 Here you go. It’s running a little sluggish on my RasPi 2 and I don’t have RasPi 3 hooked up. Please let me know how well it performs on your system.

      [card:morozgrafix/MMM-Valentine]

      Thanks.

      posted in Troubleshooting
      morozgrafixM
      morozgrafix
    • RE: I am sure nobody know it but...perhaps you know a fade in/out switch?

      @fersev that’s called dimmer light switch. Plenty of them available on the market. Most designs are tailored for household use. Keep in mind that whatever you are going to use it with should be “dimmable” like an incandescent light bulb, some of the newer LED light bulbs are also dimmable.

      posted in Hardware
      morozgrafixM
      morozgrafix

    Latest posts made by morozgrafix

    • RE: Magic Mirror Discord Group

      @bryceblood are you talking about MMM-Slack and
      MMM-SlackAnnouncements? I’m not the creator or maintainer of those. Or did I misunderstand your question? Thanks.

      posted in General Discussion
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @code999 it’s line 397 in MMM-fotecast-io.js https://github.com/dmcinnes/MMM-forecast-io/blob/77075e1c9011336f044d35f1c964fc93789a4201/MMM-forecast-io.js#L397

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @code999 you can comment out this line forecastBar.appendChild(bar); but it will look kind of bad. Those bars are sort of a default look that you get from darksky/forecast UI.

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @lavolp3 said in MMM-forecast-io -- Localized up to the minute weather:

      Guys, going through the thread, I see that a lot of good ideas were implemented in forks but not sent as PRs. I think it would be a good idea to have some of these included into the original. dmcinnes/MMM-forecast-io, since this is the one referenced in the original MagicMirror.

      @dmcinnes what do you think?
      Do you want this rep to be bloated up or do you want it to be kept mostly as it is and leave major changes to forks?

      I would expect at least to have some of @morozgrafix very good ideas implemented as optional (sunset, precipitation probability).
      Also @rak 's ideas look very very promising but I admit might be a bit much as changes for the master.

      I just submitted a PR for displaying Sunrise and Sunset times. https://github.com/dmcinnes/MMM-forecast-io/pull/22

      I will try to find some time to improve wind forecast and get another PR submitted sometime this weekend.

      I also just submitted a PR for wind speed and direction https://github.com/dmcinnes/MMM-forecast-io/pull/23

      Precipitation probability forecast is also submitted as a PR: https://github.com/dmcinnes/MMM-forecast-io/pull/24

      I also sneaked another PR that allows easy adjustments to forecast table look and feel: https://github.com/dmcinnes/MMM-forecast-io/pull/25

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @lavolp3 One thing that I would suggest is to group your changes into relevant and smaller size chunks and submit separate PRs for those, instead of one massive PR. It’s easier for reviewers and for you in case you need to make changes based on comments. Cheers.

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @lavolp3 I haven’t pulled from master repo in a while and not sure if my changes are compatible at this point. I’m happy to clean it up, test it and submit a PR. Just let me know.

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      I’ve added some of those on my local branch a long time ago. Feel free to pick from there https://github.com/morozgrafix/MMM-forecast-io/commit/972201f64d432c3c0863a7d76364e7f8af1bb817 and https://github.com/morozgrafix/MMM-forecast-io/commit/13ff8b78c86dc0905e46c11702d7173571517e79

      My fork is fairly old and hasn’t been synced in a while, though.

      It looks like this:
      0_1512084362862_c2a6ef7c-9b0a-4027-a60f-041280daee24-image.png

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: MMM-horoscope - daily horoscope

      @Iseknutz I haven’t touched that code in about 9 months. I can certainly look at the URL and see if that can be implemented.

      posted in Entertainment
      morozgrafixM
      morozgrafix
    • RE: Magic Mirror Discord Group

      @Mykle1 invite sent to email listed in your profile. Thanks.

      posted in General Discussion
      morozgrafixM
      morozgrafix
    • RE: Replacing snow flakes with hearts in the MMM-SNOW module

      @Hein-Jan sorry it didn’t work, as I mentioned earlier I’m not familiar with ModuleScheduler.

      posted in Troubleshooting
      morozgrafixM
      morozgrafix