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. MyController.org
  4. MyController.org

MyController.org

Scheduled Pinned Locked Moved MyController.org
100 Posts 22 Posters 62.3k Views 14 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.
  • D diggs

    @jkandasa Thanks for that.

    The latest Java version has go me going as far as server access goes, but I am having issues opening the serial port it seems.

    I am trying to run in parallel with Domoticz, but I maybe having an issue trying to access the same port I am guess.

    Suggestions on how to get around that?

    2015-09-27 15:45:16,568 ERROR [main] [org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl:68] Failed to load serial port,
    java.io.IOException: Unable to open the serial port/device. (Error #2)
            at com.pi4j.jni.Serial.open(Native Method) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
            at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:151) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
            at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:242) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
            at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.initialize(SerialPortPi4jImpl.java:61) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
            at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.<init>(SerialPortPi4jImpl.java:40) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
            at org.mycontroller.standalone.StartApp.startServices(StartApp.java:217) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
            at org.mycontroller.standalone.StartApp.main(StartApp.java:78) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
    2015-09-27 15:45:16,646 INFO [main] [org.mycontroller.standalone.db.TimerUtils:144] Updated Time:[SunRise:Sun Sep 27 10:36:00 AEST 2015, SunSet:Sun Sep 27 22:41:00 AEST 2015], City:[latitude:11.2333, longit$
    [Sun Sep 27 15:45:21 AEST 2015] TJWS httpd 0.0.0.0 - [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,localport=8443]] is listening.
    
    J Offline
    J Offline
    jkandasa
    Plugin Developer
    wrote on last edited by
    #66

    @diggs said:

    @jkandasa Thanks for that.

    The latest Java version has go me going as far as server access goes, but I am having issues opening the serial port it seems.

    I am trying to run in parallel with Domoticz, but I maybe having an issue trying to access the same port I am guess.

    Suggestions on how to get around that?

    I guess you cannot share same port for two different applications. We may go with some third party tools to share serial port across applications. But, I do not have any experience on it.

    In this case to run MyController server, stop MyController server and Domoticz controller, then start MyController server, it will work.

    D 1 Reply Last reply
    0
    • J jkandasa

      @diggs said:

      @jkandasa Thanks for that.

      The latest Java version has go me going as far as server access goes, but I am having issues opening the serial port it seems.

      I am trying to run in parallel with Domoticz, but I maybe having an issue trying to access the same port I am guess.

      Suggestions on how to get around that?

      I guess you cannot share same port for two different applications. We may go with some third party tools to share serial port across applications. But, I do not have any experience on it.

      In this case to run MyController server, stop MyController server and Domoticz controller, then start MyController server, it will work.

      D Offline
      D Offline
      diggs
      wrote on last edited by
      #67

      @jkandasa Thanks

      Have now done all that. Stopped the Domoticz server, started Mycontroller. I get the webpage up now, but still no nodes showing up and for some reason nothing is being written to my logs the past few hours at all.

      What can I look at?

      D 1 Reply Last reply
      0
      • D diggs

        @jkandasa Thanks

        Have now done all that. Stopped the Domoticz server, started Mycontroller. I get the webpage up now, but still no nodes showing up and for some reason nothing is being written to my logs the past few hours at all.

        What can I look at?

        D Offline
        D Offline
        davidbd
        wrote on last edited by
        #68

        @diggs

        • stop the server
        • connect to your serial port and see if you get any response from gateway ( minicom/miniterm etc ... )
        • If above work , check your config for correct serial ports settings.
        • If above doesnt work not check your serial gateway
        D 1 Reply Last reply
        0
        • D davidbd

          @diggs

          • stop the server
          • connect to your serial port and see if you get any response from gateway ( minicom/miniterm etc ... )
          • If above work , check your config for correct serial ports settings.
          • If above doesnt work not check your serial gateway
          D Offline
          D Offline
          diggs
          wrote on last edited by
          #69

          @davidbd Thanks for the reply.

          Yep, can connect to the port and see the node / gateway data in the line.

          Still nothing though in the Mycontroller

          All my settings seem pretty standard, so not sure what the issue would be or what to check next.

          #========================================================================
          # MySensors Gateway settings
          # Select Type of gateway will be used, Only one gateway will be used
          # Types -> serial, ethernet, mqtt
          #========================================================================
          mcc.ethernet.gateway.type=serial
          
          #========================================================================
          # MySensors Serial port settings
          # In this section select: Driver, port name and baud rate
          # Available drivers -> [pi4j, jssc, jserialcomm, auto]
          #========================================================================
          mcc.serialport.driver.type=auto
          mcc.serialport.name=/dev/ttyACM0
          mcc.serialport.baud.rate=115200
          
          #========================================================================
          # MySensors Ethernet Gateway settings
          # Update host name/ip and port number, Default: 192.168.178.6:5003
          # Keep alive check frequency in seconds
          #========================================================================
          mcc.ethernet.gateway.host=192.168.178.6
          mcc.ethernet.gateway.port=5003
          mcc.ethernet.gateway.keep.alive.frequency=60
          
          #========================================================================
          # MySensors MQTT Gateway settings
          # Update broker host name/ip and port number, Default: 192.168.178.6:1883
          # Root topic name of broker
          # Note: MQTT_TRANSLATE_TYPES will be not supported
          # Disable MQTT_TRANSLATE_TYPES in your MQTT gateway
          #========================================================================
          mcc.mqtt.gateway.broker.host=192.168.178.6
          mcc.mqtt.gateway.broker.port=1883
          mcc.mqtt.gateway.broker.root.topic=MyMQTT
          
          #========================================================================
          # Database
          # Where do you want to keep your database.
          # It is highly recommended  to take a backup of this db on upgrade. 
          # Database: H2DB, location and name, example:/tmp/mycontroller
          #========================================================================
          mcc.h2db.location=../conf/mycontroller
          
          #========================================================================
          # Web files, will be located under ../www by default
          # For web used angularjs
          #========================================================================
          www.file.location=../www/
          
          #========================================================================
          # Web Application server configuration
          # bind.address - interface to bind. 0.0.0.0 - all available interfaces
          # You can use either http or https, enable.https - https is enabled
          # if https is enabled specify keystore file details
          # It is highly recommended to use https also change default keystore file
          #========================================================================
          bind.address=0.0.0.0
          enable.https=true
          http.port=8443
          ssl.keystore.file=../conf/keystore.jks
          ssl.keystore.password=password
          ssl.keystore.type=JKS
          
          #logger configuration - logback.xml
          
          D J 2 Replies Last reply
          0
          • D diggs

            @davidbd Thanks for the reply.

            Yep, can connect to the port and see the node / gateway data in the line.

            Still nothing though in the Mycontroller

            All my settings seem pretty standard, so not sure what the issue would be or what to check next.

            #========================================================================
            # MySensors Gateway settings
            # Select Type of gateway will be used, Only one gateway will be used
            # Types -> serial, ethernet, mqtt
            #========================================================================
            mcc.ethernet.gateway.type=serial
            
            #========================================================================
            # MySensors Serial port settings
            # In this section select: Driver, port name and baud rate
            # Available drivers -> [pi4j, jssc, jserialcomm, auto]
            #========================================================================
            mcc.serialport.driver.type=auto
            mcc.serialport.name=/dev/ttyACM0
            mcc.serialport.baud.rate=115200
            
            #========================================================================
            # MySensors Ethernet Gateway settings
            # Update host name/ip and port number, Default: 192.168.178.6:5003
            # Keep alive check frequency in seconds
            #========================================================================
            mcc.ethernet.gateway.host=192.168.178.6
            mcc.ethernet.gateway.port=5003
            mcc.ethernet.gateway.keep.alive.frequency=60
            
            #========================================================================
            # MySensors MQTT Gateway settings
            # Update broker host name/ip and port number, Default: 192.168.178.6:1883
            # Root topic name of broker
            # Note: MQTT_TRANSLATE_TYPES will be not supported
            # Disable MQTT_TRANSLATE_TYPES in your MQTT gateway
            #========================================================================
            mcc.mqtt.gateway.broker.host=192.168.178.6
            mcc.mqtt.gateway.broker.port=1883
            mcc.mqtt.gateway.broker.root.topic=MyMQTT
            
            #========================================================================
            # Database
            # Where do you want to keep your database.
            # It is highly recommended  to take a backup of this db on upgrade. 
            # Database: H2DB, location and name, example:/tmp/mycontroller
            #========================================================================
            mcc.h2db.location=../conf/mycontroller
            
            #========================================================================
            # Web files, will be located under ../www by default
            # For web used angularjs
            #========================================================================
            www.file.location=../www/
            
            #========================================================================
            # Web Application server configuration
            # bind.address - interface to bind. 0.0.0.0 - all available interfaces
            # You can use either http or https, enable.https - https is enabled
            # if https is enabled specify keystore file details
            # It is highly recommended to use https also change default keystore file
            #========================================================================
            bind.address=0.0.0.0
            enable.https=true
            http.port=8443
            ssl.keystore.file=../conf/keystore.jks
            ssl.keystore.password=password
            ssl.keystore.type=JKS
            
            #logger configuration - logback.xml
            
            D Offline
            D Offline
            davidbd
            wrote on last edited by
            #70

            @diggs Have no idea but you can try to change your serial port driver

            1 Reply Last reply
            0
            • D diggs

              @davidbd Thanks for the reply.

              Yep, can connect to the port and see the node / gateway data in the line.

              Still nothing though in the Mycontroller

              All my settings seem pretty standard, so not sure what the issue would be or what to check next.

              #========================================================================
              # MySensors Gateway settings
              # Select Type of gateway will be used, Only one gateway will be used
              # Types -> serial, ethernet, mqtt
              #========================================================================
              mcc.ethernet.gateway.type=serial
              
              #========================================================================
              # MySensors Serial port settings
              # In this section select: Driver, port name and baud rate
              # Available drivers -> [pi4j, jssc, jserialcomm, auto]
              #========================================================================
              mcc.serialport.driver.type=auto
              mcc.serialport.name=/dev/ttyACM0
              mcc.serialport.baud.rate=115200
              
              #========================================================================
              # MySensors Ethernet Gateway settings
              # Update host name/ip and port number, Default: 192.168.178.6:5003
              # Keep alive check frequency in seconds
              #========================================================================
              mcc.ethernet.gateway.host=192.168.178.6
              mcc.ethernet.gateway.port=5003
              mcc.ethernet.gateway.keep.alive.frequency=60
              
              #========================================================================
              # MySensors MQTT Gateway settings
              # Update broker host name/ip and port number, Default: 192.168.178.6:1883
              # Root topic name of broker
              # Note: MQTT_TRANSLATE_TYPES will be not supported
              # Disable MQTT_TRANSLATE_TYPES in your MQTT gateway
              #========================================================================
              mcc.mqtt.gateway.broker.host=192.168.178.6
              mcc.mqtt.gateway.broker.port=1883
              mcc.mqtt.gateway.broker.root.topic=MyMQTT
              
              #========================================================================
              # Database
              # Where do you want to keep your database.
              # It is highly recommended  to take a backup of this db on upgrade. 
              # Database: H2DB, location and name, example:/tmp/mycontroller
              #========================================================================
              mcc.h2db.location=../conf/mycontroller
              
              #========================================================================
              # Web files, will be located under ../www by default
              # For web used angularjs
              #========================================================================
              www.file.location=../www/
              
              #========================================================================
              # Web Application server configuration
              # bind.address - interface to bind. 0.0.0.0 - all available interfaces
              # You can use either http or https, enable.https - https is enabled
              # if https is enabled specify keystore file details
              # It is highly recommended to use https also change default keystore file
              #========================================================================
              bind.address=0.0.0.0
              enable.https=true
              http.port=8443
              ssl.keystore.file=../conf/keystore.jks
              ssl.keystore.password=password
              ssl.keystore.type=JKS
              
              #logger configuration - logback.xml
              
              J Offline
              J Offline
              jkandasa
              Plugin Developer
              wrote on last edited by jkandasa
              #71

              @diggs said:

              @davidbd Thanks for the reply.

              Yep, can connect to the port and see the node / gateway data in the line.

              Still nothing though in the Mycontroller

              All my settings seem pretty standard, so not sure what the issue would be or what to check next.

              @diggs just now I tested with RPI native port(/dev/ttyACM0 /dev/ttyAMA0) and gives some issue, let me find out the root cause,

              D J 2 Replies Last reply
              0
              • J jkandasa

                @diggs said:

                @davidbd Thanks for the reply.

                Yep, can connect to the port and see the node / gateway data in the line.

                Still nothing though in the Mycontroller

                All my settings seem pretty standard, so not sure what the issue would be or what to check next.

                @diggs just now I tested with RPI native port(/dev/ttyACM0 /dev/ttyAMA0) and gives some issue, let me find out the root cause,

                D Offline
                D Offline
                diggs
                wrote on last edited by
                #72

                @jkandasa OK thanks

                At least I am not going crazy :)

                1 Reply Last reply
                0
                • J jkandasa

                  @diggs said:

                  @davidbd Thanks for the reply.

                  Yep, can connect to the port and see the node / gateway data in the line.

                  Still nothing though in the Mycontroller

                  All my settings seem pretty standard, so not sure what the issue would be or what to check next.

                  @diggs just now I tested with RPI native port(/dev/ttyACM0 /dev/ttyAMA0) and gives some issue, let me find out the root cause,

                  J Offline
                  J Offline
                  jkandasa
                  Plugin Developer
                  wrote on last edited by
                  #73

                  @jkandasa said:

                  @diggs just now I tested with RPI native port(/dev/ttyACM0) and gives some issue, let me find out the root cause,

                  @diggs Just now I confirmed that issue is not with MyController server. I didn't disable default kernel console access of serial port. Hence I couldn't not access inbuilt RPI serial port from MyController server.
                  I followed this page to gain user access for RPI default serial port.

                  Now I can access default RPI serial port without any trouble. Hope you are also facing same issue.

                  D 1 Reply Last reply
                  0
                  • J jkandasa

                    @jkandasa said:

                    @diggs just now I tested with RPI native port(/dev/ttyACM0) and gives some issue, let me find out the root cause,

                    @diggs Just now I confirmed that issue is not with MyController server. I didn't disable default kernel console access of serial port. Hence I couldn't not access inbuilt RPI serial port from MyController server.
                    I followed this page to gain user access for RPI default serial port.

                    Now I can access default RPI serial port without any trouble. Hope you are also facing same issue.

                    D Offline
                    D Offline
                    diggs
                    wrote on last edited by
                    #74

                    @jkandasa Checked my settings and they were already set as per that article, so I don't believe that is the trouble I am facing. From the logs I sent you, anything else you think could be causing the issue. Was the port being opened OK in the system?

                    J 1 Reply Last reply
                    0
                    • D diggs

                      @jkandasa Checked my settings and they were already set as per that article, so I don't believe that is the trouble I am facing. From the logs I sent you, anything else you think could be causing the issue. Was the port being opened OK in the system?

                      J Offline
                      J Offline
                      jkandasa
                      Plugin Developer
                      wrote on last edited by
                      #75

                      @diggs said:

                      @jkandasa Checked my settings and they were already set as per that article, so I don't believe that is the trouble I am facing. From the logs I sent you, anything else you think could be causing the issue. Was the port being opened OK in the system?

                      @diggs Can you check on your RPI do you have /dev/ttyAMA0?

                      pi@raspberrypi ~ $ ls -lh /dev/ttyA*
                      crw-rw---T 1 root dialout 204, 64 Jan  1  1970 /dev/ttyAMA0
                      

                      If you have /dev/ttyAMA0 try MyController server with /dev/ttyAMA0. I hope it should work. Kindly post your RPI hardware and software details.

                      D 1 Reply Last reply
                      0
                      • J jkandasa

                        @diggs said:

                        @jkandasa Checked my settings and they were already set as per that article, so I don't believe that is the trouble I am facing. From the logs I sent you, anything else you think could be causing the issue. Was the port being opened OK in the system?

                        @diggs Can you check on your RPI do you have /dev/ttyAMA0?

                        pi@raspberrypi ~ $ ls -lh /dev/ttyA*
                        crw-rw---T 1 root dialout 204, 64 Jan  1  1970 /dev/ttyAMA0
                        

                        If you have /dev/ttyAMA0 try MyController server with /dev/ttyAMA0. I hope it should work. Kindly post your RPI hardware and software details.

                        D Offline
                        D Offline
                        diggs
                        wrote on last edited by
                        #76

                        @jkandasa I do have an AMA0, but it does not work on that one either. The gateway is definitely connected to ACM0. Which is the one it works on when I have Domoticz connected up.

                        Something odd is happening with the PI USB side of things. Tried switching to another port but no luck there either.

                        As a side, I installed on windows and it works fine, so I know the gateway is OK, but I really want it running on the PI at some point

                        J 1 Reply Last reply
                        0
                        • D diggs

                          @jkandasa I do have an AMA0, but it does not work on that one either. The gateway is definitely connected to ACM0. Which is the one it works on when I have Domoticz connected up.

                          Something odd is happening with the PI USB side of things. Tried switching to another port but no luck there either.

                          As a side, I installed on windows and it works fine, so I know the gateway is OK, but I really want it running on the PI at some point

                          J Offline
                          J Offline
                          jkandasa
                          Plugin Developer
                          wrote on last edited by
                          #77

                          @diggs said:

                          @jkandasa I do have an AMA0, but it does not work on that one either. The gateway is definitely connected to ACM0. Which is the one it works on when I have Domoticz connected up.

                          Something odd is happening with the PI USB side of things. Tried switching to another port but no luck there either.

                          Are you using USB to ttl connector or native RPI tx/rx pin? can you post your RPI hardware and software details?

                          As a side, I installed on windows and it works fine, so I know the gateway is OK, but I really want it running on the PI at some point

                          D 1 Reply Last reply
                          0
                          • J jkandasa

                            @diggs said:

                            @jkandasa I do have an AMA0, but it does not work on that one either. The gateway is definitely connected to ACM0. Which is the one it works on when I have Domoticz connected up.

                            Something odd is happening with the PI USB side of things. Tried switching to another port but no luck there either.

                            Are you using USB to ttl connector or native RPI tx/rx pin? can you post your RPI hardware and software details?

                            As a side, I installed on windows and it works fine, so I know the gateway is OK, but I really want it running on the PI at some point

                            D Offline
                            D Offline
                            diggs
                            wrote on last edited by
                            #78

                            @jkandasa as discussed on chat, but thought I would put the info her as well.

                            Using one of the 4 USB ports on the PI.

                            Versions

                            Linux raspberrypi 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux

                            1 Reply Last reply
                            0
                            • bpairB Offline
                              bpairB Offline
                              bpair
                              wrote on last edited by
                              #79

                              This is fantastic. Thank you!

                              I am very grateful but I do have a feature request. I am collecting data in a greenhouse (and in the gardens) with mysensors. The more automation, the better. However, there are some instruments we still use manually, record data in a notebook, maybe copy to excel and manually create charts. It is very tedious and isolated form the automated sensor data.

                              It seems with your controller I can add a custom sensor (or use any of the other sensors) and with the Action board send data to the sensor. The feature I want is to enter data and have it appear as if the sensor sent the data. This data would then be logged along with all the automated data.

                              For example, we manually measure Nitrites. If I could add a custom sensor (a Manual Entry Sensor) and the action board allowed receiving data from the sensor it would provide a huge benefit. (No send data for this type of sensor is needed, only receive).

                              I am not sure how much work would be needed but it could also be used to test rules and other configurations.

                              Thanks for your work.

                              TD22057T 1 Reply Last reply
                              0
                              • bpairB bpair

                                This is fantastic. Thank you!

                                I am very grateful but I do have a feature request. I am collecting data in a greenhouse (and in the gardens) with mysensors. The more automation, the better. However, there are some instruments we still use manually, record data in a notebook, maybe copy to excel and manually create charts. It is very tedious and isolated form the automated sensor data.

                                It seems with your controller I can add a custom sensor (or use any of the other sensors) and with the Action board send data to the sensor. The feature I want is to enter data and have it appear as if the sensor sent the data. This data would then be logged along with all the automated data.

                                For example, we manually measure Nitrites. If I could add a custom sensor (a Manual Entry Sensor) and the action board allowed receiving data from the sensor it would provide a huge benefit. (No send data for this type of sensor is needed, only receive).

                                I am not sure how much work would be needed but it could also be used to test rules and other configurations.

                                Thanks for your work.

                                TD22057T Offline
                                TD22057T Offline
                                TD22057
                                Hardware Contributor
                                wrote on last edited by
                                #80

                                @bpair said:

                                This is fantastic. Thank you!

                                I am very grateful but I do have a feature request. I am collecting data in a greenhouse (and in the gardens) with mysensors. The more automation, the better. However, there are some instruments we still use manually, record data in a notebook, maybe copy to excel and manually create charts. It is very tedious and isolated form the automated sensor data.

                                It seems with your controller I can add a custom sensor (or use any of the other sensors) and with the Action board send data to the sensor. The feature I want is to enter data and have it appear as if the sensor sent the data. This data would then be logged along with all the automated data.

                                For example, we manually measure Nitrites. If I could add a custom sensor (a Manual Entry Sensor) and the action board allowed receiving data from the sensor it would provide a huge benefit. (No send data for this type of sensor is needed, only receive).

                                I am not sure how much work would be needed but it could also be used to test rules and other configurations.

                                Thanks for your work.

                                IMO, That's one of the good reasons to use MQTT as the communication system. MySensors gets translated to MQTT messages by the gateway and that's all the controller sees. Then adding more "readings" from manual sources or any other source is just a matter of sending a message into the system from that source. There are any number of GUI and command line tools (mosquitto_pub) you can use to post a message that would make entering manual readings very easy.

                                bpairB J 2 Replies Last reply
                                0
                                • TD22057T TD22057

                                  @bpair said:

                                  This is fantastic. Thank you!

                                  I am very grateful but I do have a feature request. I am collecting data in a greenhouse (and in the gardens) with mysensors. The more automation, the better. However, there are some instruments we still use manually, record data in a notebook, maybe copy to excel and manually create charts. It is very tedious and isolated form the automated sensor data.

                                  It seems with your controller I can add a custom sensor (or use any of the other sensors) and with the Action board send data to the sensor. The feature I want is to enter data and have it appear as if the sensor sent the data. This data would then be logged along with all the automated data.

                                  For example, we manually measure Nitrites. If I could add a custom sensor (a Manual Entry Sensor) and the action board allowed receiving data from the sensor it would provide a huge benefit. (No send data for this type of sensor is needed, only receive).

                                  I am not sure how much work would be needed but it could also be used to test rules and other configurations.

                                  Thanks for your work.

                                  IMO, That's one of the good reasons to use MQTT as the communication system. MySensors gets translated to MQTT messages by the gateway and that's all the controller sees. Then adding more "readings" from manual sources or any other source is just a matter of sending a message into the system from that source. There are any number of GUI and command line tools (mosquitto_pub) you can use to post a message that would make entering manual readings very easy.

                                  bpairB Offline
                                  bpairB Offline
                                  bpair
                                  wrote on last edited by
                                  #81

                                  @TD22057 I do like MQTT but I wish the topic format was more standardized for sensor networks. I could certainly even see using something like dweet.io for publishing these messages to the world (beyond the mqtt broker).

                                  However in this case I plan to have different students and classes adding sensors, manually taking measurements, etc.. If the MyController Action board was an easy 1 stop place for this, making it easy to add new "manual sensors" without the problems of how to format the topic or how to post an mqtt message from the command line it would be great.

                                  I have thought about formalizing this manual entry with Node-Red but MyController is better than what I could create.

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    jkandasa
                                    Plugin Developer
                                    wrote on last edited by
                                    #82

                                    @bpair Thank you to give a try with MyController! I understand that you want to create a chart(automatically by MyController) for your custom data and you want to disable send payload option for some sensors.

                                    Can you give some example how your data will be looking? Is it pure numeric data? And what is the custom variable have you used?

                                    To disable send payload we have ticket, I'm working on it https://github.com/mycontroller-org/mycontroller/issues/5

                                    bpairB 1 Reply Last reply
                                    0
                                    • TD22057T TD22057

                                      @bpair said:

                                      This is fantastic. Thank you!

                                      I am very grateful but I do have a feature request. I am collecting data in a greenhouse (and in the gardens) with mysensors. The more automation, the better. However, there are some instruments we still use manually, record data in a notebook, maybe copy to excel and manually create charts. It is very tedious and isolated form the automated sensor data.

                                      It seems with your controller I can add a custom sensor (or use any of the other sensors) and with the Action board send data to the sensor. The feature I want is to enter data and have it appear as if the sensor sent the data. This data would then be logged along with all the automated data.

                                      For example, we manually measure Nitrites. If I could add a custom sensor (a Manual Entry Sensor) and the action board allowed receiving data from the sensor it would provide a huge benefit. (No send data for this type of sensor is needed, only receive).

                                      I am not sure how much work would be needed but it could also be used to test rules and other configurations.

                                      Thanks for your work.

                                      IMO, That's one of the good reasons to use MQTT as the communication system. MySensors gets translated to MQTT messages by the gateway and that's all the controller sees. Then adding more "readings" from manual sources or any other source is just a matter of sending a message into the system from that source. There are any number of GUI and command line tools (mosquitto_pub) you can use to post a message that would make entering manual readings very easy.

                                      J Offline
                                      J Offline
                                      jkandasa
                                      Plugin Developer
                                      wrote on last edited by
                                      #83

                                      @TD22057 said:

                                      IMO, That's one of the good reasons to use MQTT as the communication system. MySensors gets translated to MQTT messages by the gateway and that's all the controller sees. Then adding more "readings" from manual sources or any other source is just a matter of sending a message into the system from that source. There are any number of GUI and command line tools (mosquitto_pub) you can use to post a message that would make entering manual readings very easy.

                                      @TD22057 The current MQTT gateway supports only limited features and a big drawback is we cannot use it directly on internet as it does not have any security option and limited to number of connections

                                      For this reason I'm implementing MQTT broker support in MyController server. Here we can connect our mysensors gateway (serial/Ethernet) to MyController. Connect all our MQTT client to MyController with authentication

                                      https://github.com/mycontroller-org/mycontroller/issues/7

                                      TD22057T 1 Reply Last reply
                                      0
                                      • J jkandasa

                                        @bpair Thank you to give a try with MyController! I understand that you want to create a chart(automatically by MyController) for your custom data and you want to disable send payload option for some sensors.

                                        Can you give some example how your data will be looking? Is it pure numeric data? And what is the custom variable have you used?

                                        To disable send payload we have ticket, I'm working on it https://github.com/mycontroller-org/mycontroller/issues/5

                                        bpairB Offline
                                        bpairB Offline
                                        bpair
                                        wrote on last edited by
                                        #84

                                        @jkandasa Wow, quick replies.

                                        Actually the charts are not that critical but it would be very simple charts showing the value with a custom unit (for example mg/L) over time. The unit should be specified when adding the sensor to MyController.

                                        There will never be a physical sensor connected to MyController for these custom sensors. These are virtual sensors. Because there is no physical sensor connected to MyController a person would be manually entering the data (the person is the sensor).

                                        An example may help:

                                        We have a fish tank with sensors for measuring water temperature, pH, and water level. The data from these sensors is easily sent to a controller as well as to thingspeak or a local database.

                                        Data for ammonia, nitrates and nitrites is also recorded but we have no sensor recording this data. A person manually records these measurements in a notebook.

                                        I do not want the person to record this data in a notebook. I want this person to record the data in MyController. Then all of the data from the sensors and all of the data manually entered would be in the same place.

                                        So I would add a custom sensor to MyController with a name of "Tank A Nitrates" and a unit of "mg/L". The Action Board shows the new sensor and lets me enter a sensor reading - 1.5 mg/L.

                                        Does that make sense?

                                        J 1 Reply Last reply
                                        0
                                        • bpairB bpair

                                          @jkandasa Wow, quick replies.

                                          Actually the charts are not that critical but it would be very simple charts showing the value with a custom unit (for example mg/L) over time. The unit should be specified when adding the sensor to MyController.

                                          There will never be a physical sensor connected to MyController for these custom sensors. These are virtual sensors. Because there is no physical sensor connected to MyController a person would be manually entering the data (the person is the sensor).

                                          An example may help:

                                          We have a fish tank with sensors for measuring water temperature, pH, and water level. The data from these sensors is easily sent to a controller as well as to thingspeak or a local database.

                                          Data for ammonia, nitrates and nitrites is also recorded but we have no sensor recording this data. A person manually records these measurements in a notebook.

                                          I do not want the person to record this data in a notebook. I want this person to record the data in MyController. Then all of the data from the sensors and all of the data manually entered would be in the same place.

                                          So I would add a custom sensor to MyController with a name of "Tank A Nitrates" and a unit of "mg/L". The Action Board shows the new sensor and lets me enter a sensor reading - 1.5 mg/L.

                                          Does that make sense?

                                          J Offline
                                          J Offline
                                          jkandasa
                                          Plugin Developer
                                          wrote on last edited by jkandasa
                                          #85

                                          @bpair said:

                                          @jkandasa Wow, quick replies.

                                          Actually the charts are not that critical but it would be very simple charts showing the value with a custom unit (for example mg/L) over time. The unit should be specified when adding the sensor to MyController.

                                          @bpair For now if you use the variable which is returning (somewhat matches for you V_LEVEL)

                                          return PAYLOAD_TYPE.PL_DOUBLE;
                                          

                                          you will get graphical report. Check in the code

                                          And you can add your own custom unit. Under Action Board on your custom sensor click on the image edit and update your unit.
                                          add-unit.png

                                          In document you can see under the section 4.10 Edit

                                          There will never be a physical sensor connected to MyController for these custom sensors. These are virtual sensors. Because there is no physical sensor connected to MyController a person would be manually entering the data (the person is the sensor).

                                          An example may help:

                                          We have a fish tank with sensors for measuring water temperature, pH, and water level. The data from these sensors is easily sent to a controller as well as to thingspeak or a local database.

                                          Data for ammonia, nitrates and nitrites is also recorded but we have no sensor recording this data. A person manually records these measurements in a notebook.

                                          I do not want the person to record this data in a notebook. I want this person to record the data in MyController. Then all of the data from the sensors and all of the data manually entered would be in the same place.

                                          So I would add a custom sensor to MyController with a name of "Tank A Nitrates" and a unit of "mg/L". The Action Board shows the new sensor and lets me enter a sensor reading - 1.5 mg/L.

                                          Does that make sense?

                                          M bpairB 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          8

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 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