Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. MyNodes.NET
  4. Time condition

Time condition

Scheduled Pinned Locked Moved MyNodes.NET
5 Posts 3 Posters 1.7k Views 3 Watching
  • 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.
  • callahC Offline
    callahC Offline
    callah
    wrote on last edited by
    #1

    Hello there,

    This is my first post, I am just getting started with using MyNodes which I picked mostly because of my .Net background.

    So, this is what I would like to do. When door is closed I would like to turn on the light but only at certain time of day (between 20:00 and 0:00) and if some other light is switched on. Is it possible to do that?

    Thanks

    parachutesjP 1 Reply Last reply
    0
    • callahC callah

      Hello there,

      This is my first post, I am just getting started with using MyNodes which I picked mostly because of my .Net background.

      So, this is what I would like to do. When door is closed I would like to turn on the light but only at certain time of day (between 20:00 and 0:00) and if some other light is switched on. Is it possible to do that?

      Thanks

      parachutesjP Offline
      parachutesjP Offline
      parachutesj
      wrote on last edited by
      #2

      @callah
      I think it is easier to manage this from your controller as an arduino does not come with a real time clock and would need to get regular time updates.

      callahC 1 Reply Last reply
      0
      • parachutesjP parachutesj

        @callah
        I think it is easier to manage this from your controller as an arduino does not come with a real time clock and would need to get regular time updates.

        callahC Offline
        callahC Offline
        callah
        wrote on last edited by
        #3

        @parachutesj I am very well aware of that. But what I'm asking here is how to do this from MyNodes.net? Sorry for not making that clear. If that can't be done is there any other controller that would support this?

        1 Reply Last reply
        1
        • dpressleD Offline
          dpressleD Offline
          dpressle
          wrote on last edited by
          #4

          You need to build it using few nodes, something like this:
          0_1464845649905_upload-eb90b026-1915-4d14-89b3-988a706e131b

          Explain:
          the "Clock" node is giving the current hour, the "Constant" nodes are the range of hours, the "Check in Range" node will output a 1 only when the hour is in the range.
          Then you have a AND with the "Door" switch and after you have AND with the "Light" switch.
          Result - light will be on only if time is in range and door is on and light is on.

          This is how i would do it i dont know if there is any easier way other then writing your own custom node, you said you are a .NET programmer so it shouldn't be hard.
          Writing few custom nodes my self i can tell its very straight forward.

          callahC 1 Reply Last reply
          1
          • dpressleD dpressle

            You need to build it using few nodes, something like this:
            0_1464845649905_upload-eb90b026-1915-4d14-89b3-988a706e131b

            Explain:
            the "Clock" node is giving the current hour, the "Constant" nodes are the range of hours, the "Check in Range" node will output a 1 only when the hour is in the range.
            Then you have a AND with the "Door" switch and after you have AND with the "Light" switch.
            Result - light will be on only if time is in range and door is on and light is on.

            This is how i would do it i dont know if there is any easier way other then writing your own custom node, you said you are a .NET programmer so it shouldn't be hard.
            Writing few custom nodes my self i can tell its very straight forward.

            callahC Offline
            callahC Offline
            callah
            wrote on last edited by
            #5

            @dpressle Thank you very much for taking time to explain all this. I was under the impression that Hour is only triggered when hour changes. But I might have missed something. When I come back from vacation I will try it.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            18

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular