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

Posts

Recent Best Controversial
  • RE: MMM-Hive

    @randomnoise I’m still waiting for my 2-way acrylic to arrive, so to be honest I haven’t run the module for any real length of time. Most I’ve really done is run it for a few hours. While the pi is still in bits waiting to be fitted into a frame, I will run MM and the module on my Windows desktop over night and see what’s occurring. Funnily enough, I have just started MM up and got the following error which I’ve not seen before

    Whoops! There was an uncaught exception...
    TypeError: Cannot read property 'name' of undefined
        at D:\MagicMirror\modules\default\updatenotification\node_helper.js:35:43
        at D:\MagicMirror\node_modules\simple-git\src\git.js:721:18
        at Git. (D:\MagicMirror\node_modules\simple-git\src\git.js:761:18)
    

    What are the config settings you are using for the module? What’s the updateInterval set as?

    Thanks…

    posted in Utilities
    M
    mongo116
    Aug 1, 2017, 4:45 PM
  • RE: Show temperatures from zipabox controller

    Looks like someone had already started writing a module for Zipato
    https://github.com/poketcalulator/MMM-Zipato

    posted in Requests
    M
    mongo116
    Aug 1, 2017, 5:10 AM
  • RE: Show temperatures from zipabox controller

    @andyb said in Show temperatures from zipabox controller:

    zipabox z-wave controller

    Hi, you could take the MMM-Hive module I created and modify it to your needs, It looks as though the api documentation is available here. I’ve only had a quick look, but it uses JSON so shouldn’t be too hard to change.

    posted in Requests
    M
    mongo116
    Jul 31, 2017, 9:27 PM
  • RE: MMM-Hive

    @randomnoise Doh! That’s the curse of copy / paste! Thanks for pointing this out - fixed the settings in the readme.

    posted in Utilities
    M
    mongo116
    Jul 29, 2017, 12:32 PM
  • RE: MMM-Hive

    @randomnoise Cheers :) That’s great it’s working - you can never be too sure, when I’ve only got my own Hive to test on.
    Let me know whether you find any issues with it though. And I wouldn’t worry about having any knowledge, I certainly didn’t!

    posted in Utilities
    M
    mongo116
    Jul 29, 2017, 12:26 PM
  • RE: Hive current room temperature

    I’ve only gone and bloody done it!!

    https://forum.magicmirror.builders/topic/4576/mmm-hive

    [card:flick116/MMM-Hive]

    Please be gentle with the critique!

    posted in Requests
    M
    mongo116
    Jul 29, 2017, 9:09 AM
  • MMM-Hive

    Description:

    This module will display the inside and outside temperature from your British Gas Hive heating. It is fairly configurable, with some of the text and the inside icon able to be changed. The thermometer is dynamic based on the current outside temperature, and the inside icon will go red when the heating is on. The Target Temperature row will also change if the target temperature of the Hive system is 1°C or lower (I couldn’t find a specific flag for frost protect enabled, so this was the best way I could find to achieve this).

    I’ve never written code before, and this took far longer than it probably should have, but the internet is a great place and there are some great resources and assistance out there, so a massive thanks to anyone that has helped me (directly or indirectly).

    Screenshots:

    Default:
    0_1501318540374_hive1.png

    Outside temp exceeding highestTemp value, and heating on
    1_1501318540375_hive2.png

    Target temperature 1°C or lower
    4_1501318540375_hive5.png

    Text and icon changed in config.js to alternate values
    3_1501318540375_hive4.png

    Download:

    [card:flick116/MMM-Hive]

    Version 1

    • Initial Release
    posted in Utilities
    M
    mongo116
    Jul 29, 2017, 9:06 AM
  • RE: [Solved] Data layout - icon and text in same cell with spacing

    I’ve been ‘googling’ since posting and have found the solution (may not be the best solution, but it is now working).

    I’ll put it here as it may help someone, or someone else may have a better suggestion:

    targetTemperatureCell.insertBefore(frostCell, targetTemperatureCell.firstChild);
    
    posted in Troubleshooting
    M
    mongo116
    Jul 29, 2017, 7:47 AM
  • [Solved] Data layout - icon and text in same cell with spacing

    Hi,

    I’m nearly finished with my MMM-Hive module, but just have one issue that I cannot get my head around.

    With the current code, the layout looks like this:
    0_1501308995994_frost_protect1.png

    Notice the snowflake icon is right next to the Frost Protect Enabled text.

    I would like it to look like this (proper icon spacing next to the text and also in line with the icon above) :
    0_1501309041342_frost_protect2.png

    This is the relevant code:

    		var targetTemperatureRow = document.createElement("tr");
    		if (this.config.showNext == true) {
    		var targetTemperatureCell = document.createElement("td");
    		targetTemperatureCell.colSpan = 5;	
    			if (this.insideTarget >= 1) {
    					targetTemperatureCell.innerHTML = "Frost Protect Enabled";
    					targetTemperatureCell.className = "light dimmed xsmall";
    					var frostCell = document.createElement("span");
    					frostCell.setAttribute("aria-hidden","true");
    					frostCell.className = "fa fa-snowflake-o";
    					frostCell.style.cssText="color:white;";
    					targetTemperatureCell.appendChild(frostCell);
    					targetTemperatureRow.appendChild(targetTemperatureCell);
    					}
    			else {	
    				targetTemperatureCell.innerHTML = this.config.targetTempText + " " + this.insideTarget + this.config.temperatureSuffix;
    				targetTemperatureCell.className = "light xsmall";
    				targetTemperatureRow.appendChild(targetTemperatureCell);
    				}}
    
    		table.appendChild(temperatureRow);
    		table.appendChild(targetTemperatureRow);
    

    I was looking at using flexbox, but I’m loathe to spend another x amount of hours and just want to get this module finished now :)

    If anyone has any ideas on the above, it will be greatly appreciated, and might prevent me from pulling any more hair out!

    Thanks

    posted in Troubleshooting
    M
    mongo116
    Jul 29, 2017, 6:23 AM
  • RE: Hive current room temperature

    No code uploaded yet, but I have started on the readme!
    MMM-Hive

    posted in Requests
    M
    mongo116
    Jul 28, 2017, 9:52 AM
  • 1 / 1
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy