Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Groups
    3. Mod

    Group Details Private

    Mod

    Moderator

    Member List

    Nca78 Nca78
    d00616 d00616
    gohan gohan
    petewill petewill
    marceloaqno marceloaqno
    GertSanders GertSanders
    TheoL TheoL
    scalz scalz
    AWI AWI
    m26872 m26872
    tekka tekka
    sundberg84 sundberg84
    axillent axillent
    Yveaux Yveaux
    marceltrapman marceltrapman
    mfalkvidd mfalkvidd
    • RE: Pjon Script

      @nagelc I'm thinking about making some kind of shelves with PJON built in. The shelves will have a wireless charger and with PJON I can communicate "Wireless". So on that shelf I can put some things like small candles, maybe a modified humidifier.

      Things like that xd

      posted in General Discussion
      TheoL
      TheoL
    • RE: Forum Search not working?

      @tekka Thank you

      posted in Troubleshooting
      TheoL
      TheoL
    • RE: Forum Search not working?

      Search function restored

      posted in Troubleshooting
      tekka
      tekka
    • RE: Pjon Script

      @mfalkvidd Is the PJON support in current release? Pjon is something that is on my wish list

      posted in General Discussion
      TheoL
      TheoL
    • RE: Need help with Code. Simple Nod with 4 button's and 2 Led output. Cant get he Led to work as I whant. They respond but both lights

      You don't check for which sensor the message is send - message.getSensor() - and in both cases you set the relays both on Like Skywatch said.

      So you could do something like:

      if ( message.type == V_STATUS ) { // check if GW send a status change
           if ( message.getSensor() == sensor 1 ) {
                // handles sensor 1
           }
           else if ( message.getSensor() == sensor 2 ) {
                // handles sensor 1
           }
           ...
          etc
      }
      
      posted in My Project
      TheoL
      TheoL
    • RE: Sump Pit Monitor

      @KevinT That is a great project. How do you measure the water level?

      posted in My Project
      TheoL
      TheoL
    • RE: set hostname using static IP

      I did a grep on the source code and found this snipper

      #if defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_ESP32)
      	// Turn off access point
      	WiFi.mode(WIFI_STA);
      #if defined(MY_GATEWAY_ESP8266)
      	WiFi.hostname(MY_HOSTNAME);
      #elif defined(MY_GATEWAY_ESP32)
      	WiFi.setHostname(MY_HOSTNAME);
      #endif
      #if defined(MY_IP_ADDRESS)
      	WiFi.config(_MQTT_clientIp, _gatewayIp, _subnetIp);
      #endif /* End of MY_IP_ADDRESS */
      	(void)WiFi.begin(MY_WIFI_SSID, MY_WIFI_PASSWORD, 0, MY_WIFI_BSSID);
      #endif
      

      MySensors uses the standard ESP libraries for this. So I expect it to work. But you need to provide at least a bit of source code. Right now it's hard to answer your question. Regarding to MySensors:

      • A HTTP hostname can only be set for Gateways that either use Wifi or Ethernet
      • For nodes you can provide a sketchname and that will be seen in your controller.

      Regarding to static non static IP addresses. I prefer to use DHCP and set that device in my router as a static IP. There I also give it another hostname. So that in case I have to replace my Gateway I can do it all in the router.

      Hope this helps. But please provide more info on what you're trying to achieve

      posted in General Discussion
      TheoL
      TheoL
    • RE: mysensors on rpi with NRF2401 with Domoticz

      The bew error you got is discussed in https://forum.mysensors.org/topic/11448/config-h-39-first-defined-here/4

      Easiest way is probably to switch to the development branch of mysensors.

      Run git checkout development and then start over from the configure step. Or follow the step ”To use the development version with the latest updates” on the raspberry pi gateway build page.

      posted in Domoticz
      mfalkvidd
      mfalkvidd
    • RE: mysensors on rpi with NRF2401 with Domoticz

      The key is here:

      hal/architecture/Linux/drivers/core/interrupt.cpp:33:10: fatal error: stropts.h: No such file or directory
      33 | #include <stropts.h>
      | ^~~~~~~~~~~
      compilation terminated.
      make: *** [Makefile:99: build/hal/architecture/Linux/drivers/core/interrupt.o] Error 1

      See https://forum.mysensors.org/topic/11138/mysensors-build-problem-on-ubuntu-20-04-rpi-or-tinker-board/2 for a possible workaround. Then restart from the make step.

      Mysgw will only be created after successful make.

      posted in Domoticz
      mfalkvidd
      mfalkvidd
    • RE: mysensors on rpi with NRF2401 with Domoticz

      Nice work @goblin

      Could you share all commands you ran and the entire output, including the configure, build and test steps?

      Also, I don’t think Domoticz can use the gateway as a client. You should probably omit the --my-controller-ip-address=127.0.0.1 argument.

      posted in Domoticz
      mfalkvidd
      mfalkvidd