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

Battery level script and next testing

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 2.5k 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.
  • D Offline
    DaTTcz
    last edited by 1 Jan 2017, 20:26

    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.

    J 1 Reply Last reply 2 Jan 2017, 10:56 Reply Quote 0
    • J Offline
      jkandasa @DaTTcz
      last edited by 2 Jan 2017, 10:56

      @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
      • J Offline
        jkandasa
        last edited by 2 Jan 2017, 13:34

        @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 4 Jan 2017, 16:55

          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...

          D 1 Reply Last reply 5 Jan 2017, 05:10 Reply Quote 0
          • D Offline
            DaTTcz @Velo17
            last edited by 5 Jan 2017, 05:10

            @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
            2 out of 5
            • First post
              2/5
              Last post

            0

            Online

            620

            Users

            531

            Topics

            3.4k

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