Coder Social home page Coder Social logo

mmm-sleepiqcontrol's Introduction

MMM-SleepIQControl

This is a module for the MagicMirror².

A MagicMirror module for controlling sleep number beds on a touch screen.

Installation

Setup the MagicMirror module

~MagicMirror/modules

git clone https://github.com/buzzkc/MMM-SleepIQControl.git

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
              module: "MMM-SleepIQControl",
              position: "middle_center,
              config: {
                    username: "yourSleepNumberUserName",
                    password: "yourSleepNumberPassword",
                    primarySleeper: "left", // "left" or "right"
              }
        },
    ]
}

Configuration options

Option Description
username Required Your username to login to sleepIQ
password Required Your password to login to sleepIQ
title Optional Title for the module
updateInterval Optional Update frequency, default: 300000 <Int> (5 minutes)
primarySleeper Optional Primary Sleeper to display, 'left' or 'right', default: 'left'

Known Issues

If using this with other modules that hide, the hide function of MagicMirror uses opacity to hide modules. This leaves the pointer events on hidden modules sometimes overlaying the MMM-SleepIQControl touch buttons. My current custom.css is below, but adding the "pointer-event: none;" to each of the other modules seems to work around the issue. I'm investigating if the hideModule() can be overridden to use "display:none;" instead.

body {
    margin: 0px;
    height: 100%;
    width: 100%;
    cursor: default;
}

.region.fullscreen {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	pointer-events: none;
  z-index: 0;
}

.MMM-MyCommute {
	width: 80%;
	margin-left: 10%;
}

.clock {
  pointer-events: none;
}

.MMM-MyCommute {
  pointer-events: none;
}

.currentweather {
  pointer-events: none;
}

Future enhancements

  • Add SleepNumber adjustment (duh)
  • Add Sleeper selector
  • Add Foot warmer options
  • Add Massage options
  • Add Light options

Thanks To

mmm-sleepiqcontrol's People

Contributors

buzzkc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.