Git Product home page Git Product logo

mmm-tommekalender's Introduction

MMM-Tommekalender

MMM-Tommekalender is a MagicMirror² module that fetches and displays waste collection dates from HIKS. (https://www.hiks.no/privat/tommekalender/)

Screenshot

Installation

  1. Clone the Repository
  • Navigate to your MagicMirror's modules directory and clone the module:
cd ~/MagicMirror/modules
git clone https://github.com/kurtern84/MMM-Tommekalender.git

  1. Install Dependencies
  • Navigate into the module folder and install the necessary dependencies:
cd MMM-Tommekalender
npm install
  1. Add the Module to config.js
  • Open your config/config.js file and add the following configuration:
{
    module: "MMM-Tommekalender",
    position: "top_right", // Choose your preferred position
    config: {
        adresse: "Åsvegen 12, Østre Toten", // Your address
        updateInterval: 86400000, // Update interval in milliseconds (default is 24 hours)
        showNextOnly: true, // Show only the next collection date
        icons: {
            "Matavfall": "fas fa-apple-alt",
            "Restavfall": "fas fa-trash",
            "Glass/Metallemballasje": "fas fa-wine-bottle",
            "Plast": "fas fa-recycle",
            "Papir": "fas fa-newspaper"
        }
    }
}
  1. Add FontAwesome to custom.css
  • To use FontAwesome icons, add the following line to your css/custom.css file:
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
  1. Start MagicMirror
  • Restart your MagicMirror to load the new module:
npm start

Configuration Options

Option Description Default
adresse Your address for the waste collection calendar. "Åsvegen 12, Østre Toten"
updateInterval How often the module updates in milliseconds. "86400000" (24 hours)
showNextOnly Show only the next collection date.. "true"
icons Icons for different types of waste. "{...}" (See above)

Support

For issues, please create a GitHub issue in the repository.

mmm-tommekalender's People

Contributors

kurtern84 avatar

Watchers

 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.