Posts: 76
Threads: 14
Joined: Nov 2019
Reputation:
1
(2017-11-05, 05:48 PM)PaddyB Wrote: Anyone else had a play with esp easy and an Esp8266? Looks very promising.
Confession time first, I zapped the i2c & 1wire pins on a Pi3 yesterday in under the chart table trying to tidy up the wiring for some DS18 thermometers, a B180 barometer and a ADS115 voltage sensor, one wrong move with what shouldn't have been a live wire but was to the batts and that was that - tiny spark and pins gone, at least the Pi still mostly works.
So plan B, leave the Pi safe and sound tucked away then send everything via wifi. Esps are dead cheap - Google came up with Espeasy.
https://www.letscontrolit.com/wiki/index.php/ESPEasy
Up and running quite quickly, brief overview -
Download some software, plug the Esp into a laptop and run an install program which loads new firmware onto the esp, log onto the new Esp hotspot - a web page appers where you can connect to a network like openplotter. Log on to that network and the Esp creates a website where it's easy to connect hardware, send MQTT/UDP etc, loads of options.
So after not too much head scratching now we have a cheapo Esp8266 reading voltage and temperature then sending it out over mqtt. Openplotter turns it into signalk in the mqtt tab.
Looks very promising so far, multiplexing serial data with serial - TTL adaptors next, I had that working just with a basic sketch before so here's hoping! Paddy, good morning.
Are you still using the ESP Easy environment? I had a look at it and it looks to good to be true. Does ik link easily to SignalK in OP2?
If so, can you give me some pointers on how to create the link?
best,
Bart
Posts: 582
Threads: 65
Joined: Nov 2016
Reputation:
22
If you are looking for an easily configurable SignalK library for ESP8266, SigKSens is a good choice. Here's an article about it:
http://signalk.org/2019/08/04/sensesp-sensors.html
Posts: 76
Threads: 14
Joined: Nov 2019
Reputation:
1
(2020-01-06, 03:33 PM)abarrow Wrote: If you are looking for an easily configurable SignalK library for ESP8266, SigKSens is a good choice. Here's an article about it:
http://signalk.org/2019/08/04/sensesp-sensors.html
Yeah, looked at it. Is nice, but (as a Newby) still a bit complex. The ESP Easy is simple drop down stuff. The only think I can not solve test is how to pull data from ESP into MQTT on Raspi. And now also into SignalK in OP2 ... ?
Posts: 582
Threads: 65
Joined: Nov 2016
Reputation:
22
I'd have to look at it more closely, but I suspect your solution might be to use Node-Red. I've only got a test OP2 server running right now, and Node-Red doesn't seem to be implemented there, but I have used it with MQTT on OP1.2
Posts: 76
Threads: 14
Joined: Nov 2019
Reputation:
1
(2020-01-06, 04:55 PM)abarrow Wrote: I'd have to look at it more closely, but I suspect your solution might be to use Node-Red. I've only got a test OP2 server running right now, and Node-Red doesn't seem to be implemented there, but I have used it with MQTT on OP1.2
Think you are correct ...
Posts: 1,199
Threads: 101
Joined: Mar 2016
Reputation:
71
(2020-01-06, 03:28 PM)BartStevens Wrote: Paddy, good morning.
Are you still using the ESP Easy environment? I had a look at it and it looks to good to be true. Does ik link easily to SignalK in OP2?
If so, can you give me some pointers on how to create the link?
best,
Bart
I'm slowly going over to micropython for esp32's, but from memory used node red to convert mqtt sent by espeasy to signalk data. Mqtt is all text so needs a little code to change text into numbers for signalk.
Posts: 582
Threads: 65
Joined: Nov 2016
Reputation:
22
Just found out that Node-Red is actually in OP2, it's just something that has to be installed as part of the OpenPlotter Dashboards app.
Posts: 1,199
Threads: 101
Joined: Mar 2016
Reputation:
71
(2020-01-07, 02:00 PM)abarrow Wrote: Just found out that Node-Red is actually in OP2, it's just something that has to be installed as part of the OpenPlotter Dashboards app.
There's a node-red app in signalk now, been using it for a while - seems rock solid stable.
Maybe some sort of online file storage (or maybe github?) would be good to share things like node-red flows for common useful things node-red can do for you?
Posts: 76
Threads: 14
Joined: Nov 2019
Reputation:
1
2020-01-07, 02:45 PM
(This post was last modified: 2020-01-07, 02:57 PM by BartStevens.)
(2020-01-07, 02:12 PM)PaddyB Wrote: (2020-01-07, 02:00 PM)abarrow Wrote: Just found out that Node-Red is actually in OP2, it's just something that has to be installed as part of the OpenPlotter Dashboards app.
There's a node-red app in signalk now, been using it for a while - seems rock solid stable.
Maybe some sort of online file storage (or maybe github?) would be good to share things like node-red flows for common useful things node-red can do for you?
PaddyB,
What a great idea, a Wiki for NodeRed and the (obvious) sensors!
Bart
Seen this?
https://sites.google.com/site/olewsaa/ya...monitoring
Bart
Paddy,
(do not forget I'm newbie)
What is the direction of the data stream
"Sensor -> SignalK -> MQTT -> NodeRed -> dashboard"?
If so, how do I go from SignalK -> MQTT?
Bart
Posts: 582
Threads: 65
Joined: Nov 2016
Reputation:
22
You can probably eliminate MQTT and NodeRed by using the Generic UDP option on ESPEasy. It would need some testing, but I think you could probably just create a template that is a properly formatted SignalK JSON message, insert the variables (temperature, for example) and have your SignalK server listen on that UDP port.
|