MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. tabsl
    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

    tabsl

    @tabsl

    2
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    tabsl Unfollow Follow

    Best posts made by tabsl

    • [MMM-MySQLData] Get values from mysql database

      Description

      A MagicMirror² module to connect to a MySQL database, run a select query (one value) and display the result.

      Screenshots

      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

      posted in Utilities
      T
      tabsl

    Latest posts made by tabsl

    • [MMM-MySQLData] Get values from mysql database

      Description

      A MagicMirror² module to connect to a MySQL database, run a select query (one value) and display the result.

      Screenshots

      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

      posted in Utilities
      T
      tabsl
    • RE: Welcome Message not shown / Alert not working

      @sdetweil thank you …

      posted in Troubleshooting
      T
      tabsl
    • RE: Welcome Message not shown / Alert not working

      ahhh, sorry ;-) not welcome is working, but not my own alert in my module :-(

      4b5de695-577e-4c4a-8f00-745281f6effa-tm2201091935002720.jpg

      posted in Troubleshooting
      T
      tabsl
    • Welcome Message not shown / Alert not working

      hi …

      having the problem that alert, also welcome_message, is not shown.

      simple config:

      	modules: [
      		{
      			module: "alert",
      			welcome_message: true
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		}
      	]
      };
      

      no error in console. alert js/css loaded.

      regards

      tabsl

      posted in Troubleshooting
      T
      tabsl