Newbie Question



  • HI,

    I am brand-new to this forum and sorry if I ask stupid questions. I have a Wemos D1 mini without radio. I would like show the sensor data (DS 18B20) on a website served by the Wemos. Or connect it with Homey (mysensors app).

    Would that be possible? When I use the code and I would like to comment out the radio part, it won't compile. Is this not possible or do I need to do something else?

    Does somebody has maybe an example?

    Thanks,

    Marcel


  • Mod

    Hi @martim, big welcome to the MySensors community!

    Yes, it can be done. You will configure the wemos d1 as a gateway with a local sensor. The gateway can then be added to any controller.

    Start with building the plain gateway, by following the instructions at https://www.mysensors.org/build/esp8266_gateway

    Verify that it works and add it to your controller. Doing this first small step will save you a lot of time. Trying to do both gateway+sensor in one step is harder.

    When the gateway is working, add the temperature example to the gateway sketch and you should be good to go.



  • Hi @mfalkvidd,

    Thank you. I have installed the software, can connect to internet. But in the output of serial window I see:

    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;!TSM:RADIO:FAIL
    0;255;3;0;9;!TSM:FAILURE
    0;255;3;0;9;TSM:PDT

    I can also not access http://<ip>:5003 (not sure if this is possible).

    So, without additional code I can try to add it to homey (my controller)?


  • Mod

    @martim sorry, I should have mentioned that you need to remove/comment out this line:

    #define MY_RADIO_NRF24
    

    Do that and upload the sketch again.

    With the nrf24 code activated, but no radio connected, the gateway won't start properly.

    Accessing it through http://<ip>:5003 won't work though, because it is not a web server. I think you could connect to it using telnet though.



  • Hi,

    That seems to work :). Would it be possible to simulate a sensor? (To start easy :)) Ooh, and could you also tell me where I can find the documentation of the MySensors library (which function I can use)?


  • Mod

    @martim the documentation is available at the "Download & API" link at the top right of this page 🙂
    The build examples (including the temperature I linked to earlier) are also good, I like to learn by looking at examples.

    Simulating a sensor is a good idea. I don't think we have a "dummy" example though. Maybe we should add one.



  • Hi,

    Ok. Thanks for all your help. I need to solder the pins first before I can attach my sensor. A dummy would be indeed helpful. But I will attach the sensor tomorrow after I have solder the header pins.


  • Mod

    @martim your question got my brain churning and today a similar question was posted so here is a dummy sensor: https://forum.mysensors.org/topic/5119/how-to-create-a-fake-local-sensor-on-ethernet-gateway/2



  • Thanks! I will try this!

    By the way the documentation in the zip file is more or less empty?


  • Mod

    @martim could you clarify which zip file?



  • @mfalkvidd, when you download the library 2.0 and you extract this. There is a folder documentation which is almost empty. But in the meantime I found also a link api on the download location with more info.

    The sketch did work! Great! Based on this example I can going forward.


Log in to reply
 

Suggested Topics

  • 4
  • 8
  • 2
  • 20
  • 3
  • 9

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts