• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. goranrad
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 6
    • Groups 0

    goranrad

    @goranrad

    1
    Reputation
    399
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    goranrad Unfollow Follow

    Best posts made by goranrad

    • RE: Examples of advanced control rules

      Hi, what I want is when the humidity (humidity sensor value) is under a level to have my humidifier (relay) to switch on for 10 sec then switch of for 30 sec until the humidity have reached its threshold.

      Think I have to use two UDItag for humidity sensor and relay state.
      Then use one variable with two keys. on time and off time.

      Humidity control in a greenhouse is difficult that's why i want to use variables to easily be able to adjust on and off intervals.

      Kindest regards
      Goran

      posted in Troubleshooting
      G
      goranrad

    Latest posts made by goranrad

    • RE: Examples of advanced control rules

      Hi J,
      I did the update and the python script worked like a charm.
      If you have time pleas post the JavaScript version.

      Thank you!

      posted in Troubleshooting
      G
      goranrad
    • RE: Examples of advanced control rules

      Hi, I have python installed and have created UDI tags,
      0_1495031706178_python.png

      and the UDIs are there
      0_1495031740468_udi.png

      Reason I use Python is because its the language I'm most comfortable with. But i'll do as you say if you pleas can convert the code to JavaScript to get me started.

      Much appreciated.
      /goran

      posted in Troubleshooting
      G
      goranrad
    • RE: Examples of advanced control rules

      Hi again,

      Sorry to disturb but I get the following error when i try to manually run the script.

      {
      "errorMessage": "AttributeError: 'org.mycontroller.standalone.db.tables.UidTag' object has no attribute 'getResource' in <script> at line number 3"
      }

      Sure I don't have to import mcAPI to python or something?

      I have created the UDItags

      Regards
      Goran

      posted in Troubleshooting
      G
      goranrad
    • RE: Examples of advanced control rules

      Thank you !

      posted in Troubleshooting
      G
      goranrad
    • RE: Examples of advanced control rules

      Hi, what I want is when the humidity (humidity sensor value) is under a level to have my humidifier (relay) to switch on for 10 sec then switch of for 30 sec until the humidity have reached its threshold.

      Think I have to use two UDItag for humidity sensor and relay state.
      Then use one variable with two keys. on time and off time.

      Humidity control in a greenhouse is difficult that's why i want to use variables to easily be able to adjust on and off intervals.

      Kindest regards
      Goran

      posted in Troubleshooting
      G
      goranrad
    • RE: Examples of advanced control rules

      I'm struggling with humidity in my greenhouse as well. Please help me with a python compare script example that reads a sensor value and a sensor state, then evaluates them and returns true or false. To be used as a compare script for a rule.

      Regards
      Goran

      posted in Troubleshooting
      G
      goranrad