This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wifi signalK display
#11
tanks a lot for reply!!!

Quote:First I would try to make sure you can connect to the broker from your computer with for example mosquitto_sub.

- wich computer? rpi or my osx laptop?
- how can I use mosquitto_sub? 

if, on OP terminal, I run:
Code:
pi@openplotter:~ $ mosquitto_sub -h localhost -p 1884 -t 'vessels/self.environment.depth.belowTransducer'
bash: mosquitto_sub: command not found


Quote:I suspect you have OpenPlotter's own Mqtt server configured with a username/password and your client is trying to connect to that.

this is my openplotter's mqtt's tab

[Image: GetAttachmentThumbnail?id=AQMkADAwATY3Zm...ation=true]

Quote: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.

[Image: GetAttachmentThumbnail?id=AQMkADAwATY3Zm...ation=true]

Code:
Connecting to MyHomeWiFi
.......
WiFi connected
IP address:
xxx.xxx.x.xx
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds

the message changed: 

rc=-2
Code:
MQTT_CONNECT_FAILED
[size=undefined] - the network connection failed[/size]

this is an extract of my syslog:
Code:
Dec  9 10:31:52 openplotter kernel: [43833.516098] w1_master_driver w1_bus_master1: Family 0 for 00.52c000000000.d3 is not registered.
Dec  9 10:32:24 openplotter signalk-server[5862]: #033[0mPUT /restart #033[32m200 #033[0m4.755 ms - 13#033[0m
Dec  9 10:32:26 openplotter systemd[1]: signalk.service: Service hold-off time over, scheduling restart.
Dec  9 10:32:26 openplotter systemd[1]: Stopped signalk.service.
Dec  9 10:32:26 openplotter systemd[1]: Started signalk.service.
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec  9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec  9 10:32:33 openplotter node[5890]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec  9 10:32:34 openplotter signalk-server[5889]: signalk-server running at 0.0.0.0:[object Object]
Dec  9 10:32:56 openplotter kernel: [43897.042771] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d2c000000000 crc 5f
Dec  9 10:32:56 openplotter kernel: [43897.045603] w1_master_driver w1_bus_master1: Family 0 for 00.d2c000000000.5f is not registered.

sorry I'm an old newbi....

tnks
Reply


Messages In This Thread
wifi signalK display - by cepicscepics - 2018-11-26, 11:43 AM
RE: wifi signalK display - by PaddyB - 2018-11-26, 01:56 PM
RE: wifi signalK display - by cepicscepics - 2018-11-26, 02:03 PM
wifi signalK display - by tkurki - 2018-11-27, 08:47 AM
RE: wifi signalK display - by cepicscepics - 2018-12-02, 01:53 AM
RE: wifi signalK display - by tkurki - 2018-12-02, 05:56 PM
RE: wifi signalK display - by cepicscepics - 2018-12-02, 07:04 PM
RE: wifi signalK display - by JeroenAdam - 2018-12-08, 09:23 PM
RE: wifi signalK display - by cepicscepics - 2018-12-09, 01:58 AM
RE: wifi signalK display - by tkurki - 2018-12-09, 08:46 AM
RE: wifi signalK display - by cepicscepics - 2018-12-09, 12:04 PM
RE: wifi signalK display - by cepicscepics - 2018-12-09, 06:19 PM
RE: wifi signalK display - by cepicscepics - 2018-12-10, 09:41 AM
RE: wifi signalK display - by cepicscepics - 2018-12-11, 10:48 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)