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

    antsve

    @antsve

    0
    Reputation
    6
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    antsve Unfollow Follow

    Latest posts made by antsve

    • RE: MMM-Strava

      here’s my config:

      {
          module: "MMM-Strava",
              position: "bottom_right",
              header: "Anton",
              config: {
                  client_id: "23___",
                  client_secret: "a9ea3d50442______________72f4ca93a792",
                  activities: ["run", "ride"],
                  mode: "chart",
                  chartType: "bar",
                  period: 'ytd',
                  updateInterval: 5000000,
              },
      },
      {
          module: "MMM-Strava",
              position: "bottom_right",
              header: "Sofia",
              config: {
                  client_id: "23___",
                  client_secret: "a9ea3d50442______________72f4ca93a792",
                  activities: ["run", "ride"],
                  mode: "chart",
                  chartType: "bar",
                  period: 'ytd',
                  updateInterval: 5000000,
              },
      },
      
      posted in Health
      A
      antsve
    • RE: MMM-Strava

      @ianperrin Have been trying to set up multiple instances of the module but which ever user is authenticated last will be the one whos stats are shown in all (both) the instances. Tried autheniticating, resstarting container and authenticating other module but with no sucess. Do you know where I’m going wrong or could you aid me in some direction?

      ps. both modules use the same client_id and client_secret, but that shuld not matter right?

      GREAT module by the way !

      posted in Health
      A
      antsve
    • RE: MMM-MQTTBridge mqttNotiCommands not triggering

      Yey and behold, it works. Like magic, no config change. Kind of frustrating but lets put this post behind us.

      posted in Utilities
      A
      antsve
    • MMM-MQTTBridge mqttNotiCommands not triggering

      I’ve been pulling my hair the last few days sinces i cant for the life of me figure out where i went wrong and would appricitate some help.

      What i’m trying to acchive is that when PIR-sensor in Home-Assistant (HA) detects presence it send MQTT to home-assistant/MagicMirror2 with payload “USER_PRESENCE_TRUE” wich then should trigger mqttNotiCommands to send MM MQTT–> NOTI USER_PRESENCE: 1.

      The MQTT is recceived and printed in log but then nothing happens.

      2020-11-19 06:05:16.563] [LOG]    [MQTT bridge] MQTT message received. Topic: home-assistant/MagicMirror2, message: USER_PRESENCE_TRUE
      

      As I said I cant for the LIFE of me figure out where the typo or error is and would appriciate your help!

      my config:

      module: 'MMM-MQTTbridge',
      	disabled: false,
      	config: {
      		mqttServer: "mqtt://10.0.1.15:1883",
      		mqttConfig:
      		{
      			listenMqtt: true,
      			interval: 300000,
      		},
      		notiConfig:
      		{
      			listenNoti: true,
      			ignoreNotiId: ["CLOCK_MINUTE", "NEWS_FEED"],
      			ignoreNotiSender: ["system", "NEWS_FEED"],
      		},
      		// set "NOTIFICATIONS -> MQTT" dictionary at /dict/notiDictionary.js
      		// set "MQTT -> NOTIFICATIONS" dictionary at /dict/mqttDictionary.js
      	},
      

      mqttDicitionary.js

      var mqttHook = [
          {
            mqttTopic: "home-assistant/MagicMirror2",
            mqttPayload: [
              {
                payloadValue: "USER_PRESENCE_TRUE",
                mqttNotiCmd: ["USER_PRESENCE_TRUE"]
              },
              {
                payloadValue: "USER_PRESENCE_FALSE",
                mqttNotiCmd: ["USER_PRESENCE_FALSE"]
              },
            ],
          },
         ];
             
      var mqttNotiCommands = [
          {
            commandId: "USER_PRESENCE_TRUE",
            notiID: "USER_PRESENCE",
            notiPayload: '1'
          },
          {
            commandId: "USER_PRESENCE_FALSE",
            notiID: "USER_PRESENCE",
            notiPayload: '0'
          },
        ];
      
        module.exports = { mqttHook,  mqttNotiCommands};
      
      posted in Utilities
      A
      antsve