• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Battery level script and next testing

    scheduled pinned locked moved General Discussion
    5 posts 3 posters 2.7k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • DaTTczD offline
      DaTTcz
      global: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 one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @DaTTcz
        global:last-edited-by,

        @DaTTcz

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

        one-reply-to-this-post last-reply-time reply quote 0
        • jkandasaJ offline
          jkandasa
          global: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.

          one-reply-to-this-post last-reply-time reply quote 0
          • V offline
            Velo17
            global: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 one-reply-to-this-post last-reply-time reply quote 0
            • DaTTczD offline
              DaTTcz @Velo17
              global: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.

              one-reply-to-this-post last-reply-time reply quote 1
              • first-post
                last-post

              0

              online

              644

              users

              532

              topics

              3.4k

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