Number of records available thru UDP

Brian

I am using this code to connect to WD.

var MULTICAST_ADDR = '231.31.31.31'; //Host name or IP address
var PORT = 333;//port as defined in the Weather Display Control Panel -> FTP & Connections Metar/NOAA -> TCP/IP Client/Server
var LOCAL_IP = '192.168.1.12'; //IP address where THIS js is running
var dgram = require('dgram');
var client = dgram.createSocket('udp4');

client.on('listening', function () {
    var address = client.address();
    console.log('UDP Client listening on ' + address.address + ":" + address.port);
    client.setBroadcast(true)
    client.setMulticastTTL(128);
    client.addMembership(MULTICAST_ADDR, LOCAL_IP);
});

client.on('message', function (message, remote) {
    console.log('A: Epic Command Received. Preparing Relay.');
    console.log('B: From: ' + remote.address + ':' + remote.port +' - ' + message);
});

client.bind(PORT, MULTICAST_ADDR);

I noticed that only 50 or so of the fields are returned.

A: Epic Command Received. Preparing Relay.
B: From: 192.168.1.70:333 - 12345 0.4 0.0 209 18.9 74 1030.5 0.5 97.0 868.7 0.0 0.0 22.4 63 100.0 19 0.0 0 1 1.0 -54.4 255.0 -65.0 -67.8 -100.0 -100.0 -100 -100 -100 15 15 36 ##### 0 27 24 9 100 100 100 100 100 100 100 18.9 18.9 0.0 27.2 5 -100 -100 -100 -100 -100.0 -100.0 158.0 0.5 partly cloudy with little temp change.

Is it possible to expose the entire clientraw structure?

Thanks

Renato

it should be the same as what is in the clientrawdescription.txt file, included with WD

Brian

Thanks for the reply. Perhaps I was not clear with my question.

Is is possible to make the entire content of the clientraw file (and not just the first 50+ fields) available thru the UDP? (i.e. as part of the Client / Server TCP/IP Setup for LAN or Internet)

Thanks
Renato

I see what you are saying now
why may I ask?

Sure

Working on building a nodeserver that would access data from WD and to make it available within the ISY-994 (from universal devices), a home automation solution.

Renato

I can guess I can add option to send the full clientraw.txt data

That would be greatly appreciated.

Looking forward to the next release

Renato

Renato, would you care sharing the link to that ISY community/forum where the information will be available - I have a ISY994Zw (with Z-Wave) and I would be very interested in being able to use the data from my Davis Instruments Vantage Por2 weather station (and possibly from my WeatherFlow weather station) through Weather Display to control some of my X10/Insteon/Z-Wave devices rather than purchase the Universal Devices Climate Module.

Unfortunately, I am completely ignorant on the use of UDP… :oops:

I have added this option to this update:
http://www.weather-display.com/downloadfiles/weatherdisplaytest.zip

Brian

Thanks for the implementation. But I still only see a subset of the clientraw record. I went into the Client / Server TCP/IP Setup for LAN or Internet and checked the option “Send complete clientraw” and then restarted WD.

This is now what I see as the output of the multicast code:

A: Epic Command Received. Preparing Relay.
B: From: 192.168.1.70:333 - 12345 0.0 0.0 169 20.3 94 1020.5 1.0 98.6 870.3 0.0 0.0 23.7 72 100.0 13 0.0 0 2 1.0 -54.4 255.0 -65.0 -67.8 -100.0 -100.0 -100 -100 -100 22 13 7 ##### 0 0 25 9 100 100 100 100 100 100 100 20.3 20.3 0.0 0.0 0 -100 -100 -100 -100 -100.0 -100.0 0.0 0.0 increasing clouds with little temp change, precipitation possible within 24 to 48 hrs.

Thanks
Renato

what I can do is add some debug code to show what is being sent
one issue might be the string length on your receiving end

Hi R_o_B,

See the UDI forum post here: https://forum.universal-devices.com/topic/24850-polyglot-weather-station-node-servers/

The Weather Display node server isn’t yet in the Polyglot node server store so it has to be installed manually from the git hub. I need to do a bit more work on it now to allow it to access more of the clientraw fields now that Brian has added the full contents to the UDP output.

I do have a WeatherFlow specific node server also available that get its data directly from the WeatherFlow hub,

Hi Brian,

Thanks for making this change!

I’m seeing what looks like the full clientraw contents over UDP. I believe I had to toggle the “Server enabled” switch off/on along with checking the new checkbox to make it work. I also checked some of the other checkboxes in that section so I don’t know if that had any impact on it.


12345 0.4 0.0 39 24.8 25 971.4 0.000 0.0 0.0 0.00 0.00 0.0 0 100.0 5 0.0 0 0 0.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100 -100 -100 09 16 31 mystation-9:16:31_AM 0 89 26 9 100 100 100 100 100 100 100 24.8 23.6 24.8 20.1 5 Overcast_and_gloomy/Dry 0.4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10.1 3.4 8806.7 9/26/2018 23.6 17.7 24.8 20.1 0.4 0 0 0 0 0 0 0 0 0 0 21.5 21.7 21.9 22.3 22.6 22.9 23.3 23.8 24.2 24.7 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 24.8 20.1 24.8 0.4 0 11:39:06 2018/17/09 39 0 0 -100.0 -100.0 -100 -100 -100 -100 -100 60.0 0.0 0.0 28.6 971.4 968.7 5 8:40 4:37_AM 28.6 19.2 3.4 -1.9 0 2018 0.0 1 -1 1 14 1 7 35 28 44 45 112 39 39 0.0 255.0 0.0 14.2 0.00000 0.00000 0.0 29 22 0.0 6:59_AM 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9:15_AM 6:59_AM 40 !!C10.37S81!!