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

    Topics

    • T

      [MMM-MySQLData] Get values from mysql database

      Watching Ignoring Scheduled Pinned Locked Moved Utilities
      1
      1
      2 Votes
      1 Posts
      267 Views
      T
      Description A MagicMirror² module to connect to a MySQL database, run a select query (one value) and display the result. Screenshots [image: 1704832375840-558532ad-9a8b-4bc0-9e89-3f431279051e-image.png] Download https://github.com/tabsl/MMM-MySQLData Config example var config = { modules: [ { module: "MMM-MySQLData", position: "top_center", config: { id: Math.floor(Math.random() * 100), host: "YOUR_HOST", username: "YOUR_USERNAME", password: "YOUR_PASSWORD", database: "YOUR_DATABASE_NAME", port: 3306, values: [ { "id": "power_current", "interval": 60000, "title": "Current power consumption", "praefix": "", "suffix": " w", "query": "SELECT round(data) AS value FROM power_consumption WHERE type = 'current' ORDER BY date DESC LIMIT 1", "styles": { "ok": "< 100", "warn": "> 1000", "alert": ">= 10000" } }, { "id": "power_total", "interval": 720000, "title": "Total power consumption", "praefix": "", "suffix": " kW", "query": "SELECT round(data/1000) AS value FROM power_consumption WHERE type = 'total' ORDER BY date DESC LIMIT 1", } ] } } ] } Changelog https://raw.githubusercontent.com/tabsl/MMM-MySQLData/main/CHANGELOG.md
    • T

      Welcome Message not shown / Alert not working

      Watching Ignoring Scheduled Pinned Locked Moved Solved Troubleshooting
      6
      0 Votes
      6 Posts
      596 Views
      S
      @tabsl did that fix it?
    • 1 / 1