• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. j54n1n
    3. Best
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 11
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: serial, Ethernet to MQTT

      @jkandasa yes sure, I was not using any special configuration. I adapted the config file only to suit the configuration that we used before.

      Here we go for the config.yaml file:

      logger:
        mode: development
        encoding: console
        level: info
      
      adapters:
        - name: adapter1
          enabled: true
          reconnect_delay: 20s
          provider: mysensors_v2
          source:
            type: serial
            port: /dev/serial0
            baud_rate: 115200
            transmit_pre_delay: 10ms
          mqtt:
            broker: tcp://127.0.0.1:1883
            insecure_skip_verify: false
            username:
            password:
            subscribe: mysensors-in/#
            publish: mysensors-out
            qos: 0
            transmit_pre_delay: 0s
            reconnect_delay: 5s
      
        - name: adapter2
          enabled: false
          reconnect_delay: 20s
          provider: mysensors_v2
          source:
            type: ethernet
            server: tcp://192.168.10.21:5003
            transmit_pre_delay: 10ms
          mqtt:
            broker: tcp://192.168.10.21:1883
            insecure_skip_verify: false
            username:
            password:
            subscribe: in_nrf24/#
            publish: out_nrf24
            qos: 0
            transmit_pre_delay: 0s
            reconnect_delay: 5s
      
        - name: adapter3
          enabled: false
          reconnect_delay: 20s
          provider: raw
          source:
            type: serial
            port: /dev/ttyUSB0
            baud_rate: 115200
            transmit_pre_delay: 10ms
            message_splitter: 10
          mqtt:
            broker: tcp://192.168.10.21:1883
            insecure_skip_verify: false
            username:
            password:
            subscribe: in/my_topic
            publish: out/my_topic
            qos: 0
            transmit_pre_delay: 0s
            reconnect_delay: 5s
      

      and for my environment on the Raspberry Pi:

      $ cat /etc/*release
      PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
      NAME="Raspbian GNU/Linux"
      VERSION_ID="10"
      VERSION="10 (buster)"
      VERSION_CODENAME=buster
      ID=raspbian
      ID_LIKE=debian
      HOME_URL="http://www.raspbian.org/"
      SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
      BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
      
      $ uname -a
      Linux metteo-dev2 5.10.17-v7+ #1421 SMP Thu May 27 13:59:01 BST 2021 armv7l GNU/Linux
      
      $ ls -l /dev/serial0
      lrwxrwxrwx 1 root root 7 Jul 14 20:00 /dev/serial0 -> ttyAMA0
      
      $ ls -l /dev/ttyAMA0
      crw-rw---- 1 root dialout 204, 64 Jul 14 20:00 /dev/ttyAMA0
      
      $ groups pi
      pi : pi adm dialout cdrom sudo audio video plugdev games users input netdev spi i2c gpio lpadmin
      
      $ apt-cache policy mosquitto
      mosquitto:
        Installed: 1.5.7-1+deb10u1
        Candidate: 1.5.7-1+deb10u1
        Version table:
       *** 1.5.7-1+deb10u1 500
              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              100 /var/lib/dpkg/status
      

      Thanks in advance

      posted in Announcements
      j54n1nJ
      j54n1n
    • RE: MyController 2.0 is ready for testing

      @jkandasa Hello, I would also like to try out your new version. At our school we have been using your old v1 Java implementation for our weather station build by our students. It is running on a Raspberry Pi connected to the serial pins via radio receiving data from a custom made MySensors node.

      You can find our old setup code here: https://gitlab.com/rrbz/meteo/metteo/-/blob/0241002c06f0258949590810258b72c2a95ff543/metteo-config.lib.sh#L380-492

      Basically we setup everything by overwriting the initial configuration by a preconfigured MyController settings backup and do a little housekeeping with systemd unit files.

      posted in General Discussion
      j54n1nJ
      j54n1n
    • RE: serial, Ethernet to MQTT

      @jkandasa thanks, ok here is the link to the issue: https://github.com/mycontroller-org/2mqtt/issues/1

      Cheers j54n1n

      posted in Announcements
      j54n1nJ
      j54n1n
    • RE: MyController 2.0 is ready for testing

      @jkandasa yes it was at startup, but only once so far and after a restart of the service I did not see that again. Maybe some type of race condition? Could it be that it depends if either influxdb or mosquitto are ready or not at boot?

      This is the service unit file that I am using:

      [Unit]
      Description=MyController.org v2 daemon
      Requires=network.target
      After=influxdb.service
      
      [Service]
      User=mycontroller
      Group=mycontroller
      WorkingDirectory=/opt/apps/mycontroller
      ExecStart=/opt/apps/mycontroller/mycontroller-server -config /opt/apps/mycontroller/mycontroller.yaml
      
      [Install]
      WantedBy=multi-user.target
      
      posted in General Discussion
      j54n1nJ
      j54n1n
    • RE: serial, Ethernet to MQTT

      @jkandasa thanks, yes now I get low CPU usage.

      Nice work ^^

      posted in Announcements
      j54n1nJ
      j54n1n
    • RE: serial, Ethernet to MQTT

      @jkandasa Ok, I quickly looked through it with MQTT.fx and it seems to be fine.

      Thanks again. Now I will start looking for strange behaviors with MySensors in your MyController v2.

      posted in Announcements
      j54n1nJ
      j54n1n