wifi signalK display - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: wifi signalK display (/showthread.php?tid=1585) Pages:
1
2
|
wifi signalK display - cepicscepics - 2018-11-26 Hi, I'm thinking to build a wifi display capable to show some signalk value (distance to way point, SOG etc. + a 5 min. timer). I'm thinking to a battery powered esp8266 connected to the openplotter AP, an lcd display and a pushbutton to select the signalk message... but I really don't know where to start... every tips will be appreciated..... RE: wifi signalK display - PaddyB - 2018-11-26 Done similar just as a test briefly > Get easyESP up and running on the esp8266 > https://www.letscontrolit.com/wiki/index.php/ESPEasy Then spend a bit of time on the wiki to set up the LCD, not that hard as the setup is all web based, then you need to set up the esp to receive MQTT. Then in signalk node-red set up MQTT there as well, need an account set up in Openplotter. Then you can use node red to send MQTT messages to the ESP , cn't remember exactly how it worked but lots help on the wiki. https://www.letscontrolit.com/wiki/index.php?title=LCDDisplay Sorry, bit short on detail but hopefully something to have a look at , setup is mostly menu/graphical, - going to build a real one sometime . RE: wifi signalK display - cepicscepics - 2018-11-26 thanks a lot MQTT is the way........ wifi signalK display - tkurki - 2018-11-27 You can use also the node server MQTT plugin that runs an embedded MQTT broker and automatically publishes all Signal K data there. No Node-RED flows needed, install the plugin from the App Store and enable & configure. We are in the process of rewriting the plugin and defining more formally the mapping from SK to MQTT and vice versa, so the topic structure will change in the future. Sent from my iPhone using Tapatalk RE: wifi signalK display - cepicscepics - 2018-12-02 Hi, I installed the signalk-mqtt-gw plug-in, but "Provider & Plugin Status" give me an error: Failed to start: /home/pi/.signalk/node_modules/mdns/build/Release/dns_sd_bindin... and I can't enable and configure it. I'm trying to send simulated signalK from Signal K delta simulator... on esp8266 side, I'm following this how to, to receive playload. (I really don't know ESPEasy) I'm not so sure about information and credentials of the MQTT server Code: const char* mqttServer = "???????????"; tnks RE: wifi signalK display - tkurki - 2018-12-02 (2018-12-02, 01:53 AM)cepicscepics Wrote: Hi, I installed the signalk-mqtt-gw plug-in, but "Provider & Plugin Status" give me an error:Hmm. I thought I fixed the mdns problem in version 1.0.2 - what version do you have? Once you get to run the local server (see plugin config) you should check first from the command line that everything is working with mosquitto_sub. Local server does not require username/password. Code: mosquitto_sub -h localhost -p 1884 -t 'vessels/self/navigation/speedOverGround' RE: wifi signalK display - cepicscepics - 2018-12-02 (2018-12-02, 05:56 PM)tkurki Wrote:(2018-12-02, 01:53 AM)cepicscepics Wrote: Hi, I installed the signalk-mqtt-gw plug-in, but "Provider & Plugin Status" give me an error:Hmm. I thought I fixed the mdns problem in version 1.0.2 - what version do you have? Quote:what version do you have? Signal K Server version 1.7.0 or you where talking about of plug in's version? thinking to black screen solving, Now I removed the plug in, deleting his line on: ~/.signalk/package.json Code: sudo nano ~/.signalk/package.json but screen still black Quote:Once you get to run the local server (see plugin config) you should check first from the command line that everything is working with mosquitto_sub. ???? Quote:Local server does not require username/password. I will try the code on esp8266 without username/password. lines... Quote:[quote pid='7790' dateline='1543769767'] [/quote] this is to test MQTT with plugin running without errors? tnks RE: wifi signalK display - JeroenAdam - 2018-12-08 (2018-11-26, 11:43 AM)cepicscepics Wrote: Hi, I'm thinking to build a wifi display capable to show some signalk value (distance to way point, SOG etc. + a 5 min. timer). http://forum.openmarine.net/showthread.php?tid=1390 DIY repeater, readable from 8m away during day/night: built with OpenPlotter/Node-RED RE: wifi signalK display - cepicscepics - 2018-12-09 TEST UPDATE: I installed and activated MQTT plugin trying to send simulated signalk values (lat, long and deep) restarted SK this is the code in the esp8266: (from here) Code: #include <ESP8266WiFi.h> the esp connect to my home wifi but the serial monitor say: Code: Connecting to MyHomeWiFi what's missing? tnks a lot RE: wifi signalK display - tkurki - 2018-12-09 (2018-12-09, 01:58 AM)cepicscepics Wrote: the esp connect to my home wifi but the serial monitor say: Did you check what state 5 means? https://pubsubclient.knolleary.net/api.html#state It is Code: MQTT_CONNECT_UNAUTHORIZED First I would try to make sure you can connect to the broker from your computer with for example mosquitto_sub. I suspect you have OpenPlotter's own Mqtt server configured with a username/password and your client is trying to connect to that. Try changing the SK mqtt gateway's port something else, like 11883 and adjust your esp code accordingly. There should be also error messages in your RPi's syslog complaining about the gateway's mqtt broker (Mosca) not starting, if there is already the OpenPlotter-managed mqtt broker occupying the port 1883. |