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
-
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
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:PDTI 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)?
-
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:PDTI 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)?
@martim sorry, I should have mentioned that you need to remove/comment out this line:
#define MY_RADIO_NRF24Do 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)?
@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.
-
Thanks! I will try this!
By the way the documentation in the zip file is more or less empty?
-
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login