MQTT support for publishing?

There are several different methods by which WD can publish a station’s data.

Has MQTT been considered, or could it be considered to be added to the list?

Paho is a common open-source client implementation for publishing and subscribing.

looks doable…would need to have access to a server/broker to test the client/server

Mosquitto is an open-source broker that can be installed locally. In fact it is part of some linux distros already. There is also a test server available there as well with other providers.

I got a broker up and running on a raspberry pi in a matter of minutes for testing some home automation projects.

I was thinking a simple quick/dirty option would be to simply publish the equivalent of clientraw.txt as a single topic but it might be more useful to publish the data broken up among several topics that could be selectively subscribed.

do you mean you wanted this to work on a raspberry pi, e.g from consolewd?

Not specifically for consolewd on an rpi, no. I am using a raspberry pi to host a broker for testing of some other projects I have.

I was thinking the full WD application could add an option to publish to an arbitrary MQTT broker, which could be on the same host as WD, on another host on the same home lan (including a raspberry pi), or external to a public MQTT broker.

publising to an external broker could be a way to say get the clientraw.txt file data to WDliveapp ?

test program:
http://www.weather-display.com/downloadfiles/cronmqtt.zip

MQTT support is now added to the latest version of WD :slight_smile:

Thanks!

I’ve been very busy and haven’t been checking these forums much. I’ll definitely give this a look, hopefully soon.

see
http://discourse.weather-watch.com.msg546757.html#new