Greenhouse controller



  • What if I can not use any controllers out there, is there any sample code on controller site, like how do controller communicate to sensor wirelessly, is there example code to retrieve/send data/command from/to sensor/actuator?



  • Well, the api documentation should give a good hint howto communicate with the MySensors network.
    I think most of the controllers/controller-plugins are based on the this documentations.

    You should look at the available controllers if there isn't a controller that fits your need.
    Maybe, if you outline your needs, someone can you point in the right direction. 🙂



  • Where is the documentation?



  • @azlan
    http://www.mysensors.org/download/serial_api_15
    http://www.mysensors.org/download/sensor_api_15

    Especially the serial api gives a good hint how a controller should handle messages.



  • @Oitzu I have another question. If I decide to use gateway as controller, How do I pull data to use in my controller code in gateway instead of forwarding to Raspberry PI. Can you help me with a simple code showing how it can be done?



  • @azlan you mean using the gateway itself to control the nodes?
    Never done that.
    This would mean you wouldn't use a gateway at all.

    Normally the gateway represents a point in the mysensors network a controller is connected to.

    What do you acutally want to do? Maybe we can answer better with a picture of the whole situation.

    Hint: A mySensors network without an gateway would need something like an "master-node". A node with id 0 that assigns new node ids and control the other nodes.
    But the functionallity of this master node would be very limited due to ressource limitations.



  • @Oitzu Well, What I want to do is; Make gateway my controller ( intend to use arduino yun), the reason for that is none of the controllers fit my need, which is I want to automate hydroponic greenhouse and it is something like this ; https://www.youtube.com/watch?v=-IfvbrZJ4sY
    I want to ask again " How do I pull data to use in my controller code in gateway instead of forwarding to Raspberry PI. Can you help me with a simple code showing how it can be done?".


Log in to reply
 

Suggested Topics

  • 1
  • 3
  • 2
  • 10
  • 6
  • 5

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts