Coder Social home page Coder Social logo

buzzkc / mmm-memo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slametps/mmm-memo

0.0 1.0 0.0 577 KB

This an extension module for the MagicMirror². It adds the ability to manage different kind of memos.

License: MIT License

CSS 39.70% JavaScript 60.30%

mmm-memo's Introduction

MMM-Memo

This an extension for the MagicMirror².
This Module is used to add one to many memo notes on your Magic Mirror.
Content is manageable through HTTP get requests.

What does it look like

alt tag

Dependencies

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/schnibel/MMM-Memo.git

Using the module

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

modules: [
    {
        module: 'MMM-Memo',
        position: 'top_left',
        classes: 'default everyone',        // if using MMM-ProfileSwitcher module
        config: {
            // See 'Configuration options' for more information.
            ...
        }
    }
]

If you declare several modules in the config/config.js file, you will get several memo notes on your MagicMirror2 profile.

Configuration options

The following properties can be configured:

Option Description
memoTitle [MANDATORY]
Title of the memo note.
This title is also used to retreive memos from the persistence file.

This is NOT case sensitive
memoMaxItems [OPTIONAL]
Integer used to define the maximum number of memo to display per note.
If the number of memos is greater than the one specified here, a message (e.g. + 2 more memos) will be displayed at the bottom of the note.

Default value: 5
memoMaxMsgSize [OPTIONAL]
Integer used to define the maximum number of characters to be displayed per memo.

Default value: false (It will show all characters)
memoDisplayDuration [OPTIONAL]
Used to show since when memos have been created.

Possible values: true or false
Default value: false
memoDisplayIfEmpty [OPTIONAL]
Used to display (or not) an empty note if there is no memo inside.

Possible values: true or false
Default value: false
memoDisplayId [OPTIONAL]
Used to display (or not) a number before each memo. This number is necessary to remove a memo.

** Note that this unicode character is limited to 20 **

Possible values: true or false
Default value: true
memoDisplayHeader [OPTIONAL]
Used to display (or not) the memoTitle at the top of the note.

Possible values: true or false
Default value: true
memoColorBackground [OPTIONAL]
Used to define the color of the note.

Possible values: See Colors for more information.
Default value: Yellow
memoColorHeader [OPTIONAL]
Used to define the color of the header (if displayed).

Possible values: See Colors for more information.
Default value: Black
memoColorFont [OPTIONAL]
Used to define the color of the memo font.

Possible values: See Colors for more information.
Default value: Black
memoColorWarning [OPTIONAL]
Used to define the color of a WARNING note.

Possible values: See Colors for more information.
Default value: Red
memoRotation [OPTIONAL]
Used to rotate the note.

Possible values: -10 or -8 or -6 or -4 or -2 or 0 or 2 or 4 or 6 or 8 or 10
Default value: 0
memoWidth [OPTIONAL]
Value to specify the width of the note.

Default value: 100px
memoHeight [OPTIONAL]
Value to specify the height of the note.

Default value: 100px
memoPadding [OPTIONAL]
Value to specify the padding of the note.

Default value: 20px
format [OPTIONAL]
Displays relative date format, for absolute date format provide a string like 'DD:MM HH:mm' All Options

How to Use

I'm using this module with my Jarvis installation from DomotiqueFacile.
When I speak to Jarvis, I say for example : "add FRUITS to the SHOPPING memo list", and Jarvis automatically sends a HTTP get request to the MMM-Memo module.

The available HTTP get requests are the following at the moment:

To add Fruits to the Shopping memo note:

http://MIRROR_IP:MIRROR_PORT/AddMemo?memoTitle=SHOPPING&item=Fruits&level=INFO

To add Daddy: +33123456789 to the Phone Numbers memo note with a WARNING level:

http://MIRROR_IP:MIRROR_PORT/AddMemo?memoTitle=phone%20numbers&item=Daddy%3A%20%2B33123456789&level=WARNING

To remove the second displayed memo of the Phone Numbers memo note:

http://MIRROR_IP:MIRROR_PORT/RemoveMemo?memoTitle=phone%20numbers&item=2

To remove ALL memos of the Phone Numbers memo note:

http://MIRROR_IP:MIRROR_PORT/RemoveMemo?memoTitle=phone%20numbers&item=ALL

To temporary display the second memo of the Shopping memo note. It will be useful for cut memos:

This HTTP request is NOT YET IMPLEMENTED

http://MIRROR_IP:MIRROR_PORT/DisplayMemo?memoTitle=SHOPPING&item=2

To temporary display ALL memos of the Shopping memo note. It will be useful when a note does not display all memos:

This HTTP request is NOT YET IMPLEMENTED

http://MIRROR_IP:MIRROR_PORT/DisplayMemo?memoTitle=SHOPPING&item=ALL

Colors

Here are the available colors.

Whites / Pastels

alt tag

Grays

alt tag

Blues

alt tag

Greens

alt tag

Yellows

alt tag

Browns

alt tag

Oranges

alt tag

Pinks / Violets

alt tag

Special Thanks

mmm-memo's People

Contributors

slametps avatar

Watchers

James Cloos 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.