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

    RedNax

    @RedNax

    Module Developer
    36
    Reputation
    4.8k
    Profile views
    142
    Posts
    1
    Followers
    0
    Following
    Joined
    Last Online
    Website github.com/RedNax67

    RedNax Unfollow Follow
    Module Developer

    Best posts made by RedNax

    • RE: Cowboysdude's Mirror

      I’m using my own script aswell, however that just turns off/on the display. I think the module actually suspends the mirror… Saving power on the pi

      posted in Show your Mirror
      RedNaxR
      RedNax
    • Weatherunderground - currently - hourly - daily - configurable

      MMM-Wunderground is Yet Anothet Modified Weatherforecast module using Weather Underground.

      Can optionally display hourly forecasts. These forecasts display the temperature in the max xolumn and the feels-like in the min column.
      Daily forecasts are as you’d expect.

      Uses weather-icons-wind.css which means updating the weathericons package in the vendor directory in MM and adding it to vendor.js.
      Alternatively you could have them in your MMM-Wunderground directory.

      [card:RedNax67/MMM-WunderGround]

      0_1463819209388_wunderground.png 0_1488276425770_upload-0aced24b-f4e9-4d44-9ed6-a90be1067c5c

      posted in Utilities
      RedNaxR
      RedNax
    • RE: Weatherunderground - currently - hourly - daily - configurable

      @bminer1 Pull the new version ;)

      posted in Utilities
      RedNaxR
      RedNax
    • RE: DailyXKCD

      Hi!

      Since new comics only come out on monday, wednesday and friday i made a slight modification (ugly hack) to your node_helper.js…

      On non comic days, after getting the current comic, the node_helper will examines the num value and generate a random number between 1 and said value. It will then get the random comic and return it in the payload.

      	socketNotificationReceived: function(notification, payload) {
      		var self = this;
      		console.log("Notification: " + notification + " Payload: " + payload);
      		
      		if(notification === "GET_COMIC"){
      			
      			var comicJsonUri = payload.config.dailyJsonUrl;
      			var comic;
      			var rndcomic;
      			var rndUrl;
      			var body;
      			var d = new Date();
      			var n = d.getDay(); 
      			
      			request(comicJsonUri, function (error, response, body) {
      				if (!error && response.statusCode == 200) {
      					console.log(body);
      					if ( this.n == 1 || this.n == 3 || this.n == 5 ) {
      							self.sendSocketNotification("COMIC", JSON.parse(body));
      					} else {
      						this.comic = JSON.parse(body); 
      						this.rndcomic = Math.floor((Math.random() * this.comic.num) + 1); 
      						this.rndUrl = "http://xkcd.com/" + this.rndcomic + "/info.0.json";
      						request(this.rndUrl, function (error, response, body) {
      							if (!error && response.statusCode == 200) {
      								console.log(body);
      								self.sendSocketNotification("COMIC", JSON.parse(body));
      							}
      						});
      					}
      				}
      			});
      		}
      	},
      
      posted in Entertainment
      RedNaxR
      RedNax
    • RE: Weatherunderground - currently - hourly - daily - configurable

      New version now shows the current moon phase and there’s a new layout option :)

      in config set layout:“vertical” for the traditional layout:

      0_1472473973909_wunderground-vertical.png

      or layout: “horizontal” for:

      0_1472473998658_wunderground-horizontal.png

      posted in Utilities
      RedNaxR
      RedNax
    • RE: Weatherunderground - currently - hourly - daily - configurable

      @ostfilinchen Now i have, and thanks to @anatius for this!

      posted in Utilities
      RedNaxR
      RedNax
    • RE: Weatherunderground - currently - hourly - daily - configurable

      Just pushed a new version which fixes all this. Give it a try!

      posted in Utilities
      RedNaxR
      RedNax
    • RE: Cowboysdude's Mirror

      @cowboysdude said in Cowboysdude's Mirror:

      I’ll update my picture as soon as it’s done… I ordered a real glass mirror but 2" longer so I can hide the PIR and Camera behind it… the new frame will be made out of mahogany… so once the mirror comes in I’ll build the new frame… next week I’m hoping…

      Not entirely sure if the PIR will work (well) behind glass… http://forum.arduino.cc/index.php?topic=123750.0
      As for the camera, it’ll be getting a lot less light to work with aswell…

      That said, lookingforward to the result… :)

      posted in Show your Mirror
      RedNaxR
      RedNax
    • RE: Weather based on another provider..

      @cowboysdude :D Glad it’s working, enjoy!

      posted in Requests
      RedNaxR
      RedNax
    • RE: Help with tables?

      Well you did help me solve it, but not using divs.

      Turned out i had to put the icon in an inside the and not directly in the

            <td><i class="fa fa-fire"> </td>
      

      instead of

            <td class="fa fa-fire"></td>
      

      0_1464160002764_opemtherm2.png

      posted in Development
      RedNaxR
      RedNax

    Latest posts made by RedNax

    • RE: MMM-MyCommute

      Hi everyone,

      Just to remind you that this still works…

      https://github.com/RedNax67/MMM-TrafficCal

      https://forum.magicmirror.builders/topic/831/mmm-trafficcal-dynamically-display-commutes-based-on-calendar-entries?_=1590694194999

      posted in Transport
      RedNaxR
      RedNax
    • RE: PIR Sensor with Client Only option

      It’s not a module but a python script which runs on the client…

      posted in Troubleshooting
      RedNaxR
      RedNax
    • RE: PIR Sensor with Client Only option

      Hi,

      Why not use this: https://github.com/cowboysdude/Pir-Sensor? Works great for me.

      posted in Troubleshooting
      RedNaxR
      RedNax
    • RE: MMM-DarkSkyForecast - Yet ANOTHER weather module

      @j-e-f-f :) This looks familiar… well done!

      posted in Utilities
      RedNaxR
      RedNax
    • RE: MMM-Wunderground - 2 locations gives duplicate data from the first location

      @jamielola Hi!

      You’ll also have to change the notifications (GET_WUNDERGROUND (request) and WUNDERGROUND (the reply sent by node_helper). Those notifications go systemwide so when 2 modules send the same one, the first one wins… The trick is to make them unique to the instance.

      posted in Troubleshooting
      RedNaxR
      RedNax
    • RE: multiple module instances overwrites itself values

      @BenRoe

      Having the same problem with my module… A theoretical solution could be to make node_helper multi instance aware by appending some identifier to the notification unique to the instance: ie GET_WEATHER_001… The helper triggers on GET_WEATHER and builds an array with the different notifications and payloads. It then periodically runs through the array getting the appropriate requests and sending out notifications like WEATHER_001 with the specific payload.

      Haven’t built it yet though…

      posted in Development
      RedNaxR
      RedNax
    • RE: Cannot display 2 sets of weather using MMM-WunderGround

      Hi,

      Please have a look at this post: https://forum.magicmirror.builders/topic/998/mmm-wunderground-2-locations-gives-duplicate-data-from-the-first-location

      posted in Troubleshooting
      RedNaxR
      RedNax
    • RE: MMM-WunderGround - not appearing in Mirror

      @sithlordhood

      Hi!

      Did your log show errors similar to:

      0|mm       | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
      

      In your post above there are weird (double) quotes that proved problematic when trying your config. This one works fine on my setup:

      			module: "MMM-WunderGround",
      			position: "top_right",
      			header: "",
      			config: {
      				apikey: "xxxxxxxxxxxxxxxx",
      				pws: "pws:IPORTSMO30",
      				currentweather: 0,
      				coloricon: true,
      				hourly: "1",
      				fcdaycount: "10",
      				hourlyinterval: "2",
      				hourlycount: "1",
      				animationSpeed: 5000,
      				alerttime: 10000,
      				alerttruncatestring: "english:",
      				roundTmpDecs: 0,
      				UseCardinals: 1,
      				windunits: "mph",
      				sysstat: "0"
      			}
      		},
      

      0_1492406918500_upload-2d1d5f1e-9cd5-4c0b-ae4c-f04246478a17
      Good luck!

      posted in Troubleshooting
      RedNaxR
      RedNax
    • RE: Update WunderGround 13/3-16

      OOps… sorry…fixed :blush:

      posted in Utilities
      RedNaxR
      RedNax
    • RE: MMM-Wunderground - 2 locations gives duplicate data from the first location

      Hi,

      This is because of offloading scheduling to the node_helper.js. Have a look here: https://github.com/RedNax67/MMM-WunderGround/issues/20

      posted in Troubleshooting
      RedNaxR
      RedNax