• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Battery level script and next testing

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 2.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DaTTczD Offline
      DaTTcz
      last edited by

      After some time I test again...

      1. Battery level script - Your manual works. Using the timer, choose a time when the script started and it works. Can I transfer variables from script to email? Script gives me this result:
        {
        "myImports": {},
        "mcResult": true,
        "batteryLevel": "94"
        }

      2. Where is a list of variables that can be used in e-mail? I only know this, from mc-default-rule-email-template. is there more?
        ${notification.ruleCondition}
        ${notification.actualValue}
        ${notification.triggeredAt}
        ${notification.ruleName}

      3.Email does not support coding, for example, instead of Czech characters "ř" I must use the entity "&rcaron" ...etc

      I am sorry for my bad English. I speak Czech.

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @DaTTcz
        last edited by

        @DaTTcz

        Looks like there is no support to send email from the script. i will add this feature via this request.

        1 Reply Last reply Reply Quote 0
        • jkandasaJ Offline
          jkandasa
          last edited by

          @DaTTcz I am sorry, I understand your query bit wrongly. Here is the actual answer to your query,

          You can see a list of supported variables here.

          I do not know about Czech support on email. Let me check it and confirm.

          1 Reply Last reply Reply Quote 0
          • V Offline
            Velo17
            last edited by

            Where can I find this script? I guess I'm looking for the same solution to how to send an email when the battery level of a node drops below a certain value...

            Maybe this kind of battery level monitoring could be added into the available set of operations...

            DaTTczD 1 Reply Last reply Reply Quote 0
            • DaTTczD Offline
              DaTTcz @Velo17
              last edited by

              @Velo17
              This script is here - http://forum.mycontroller.org/topic/77/battery-level-in-rules-or-chart-script-rule-to-check-battery-level/2

              I am sorry for my bad English. I speak Czech.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post

              0

              Online

              587

              Users

              529

              Topics

              3.4k

              Posts
              Copyright © 2015-2025 MyController.org | Contributors | Localization