Weewx to weatherdisplay

554 views
Skip to first unread message

Mike Whimick

unread,
Oct 27, 2016, 1:49:04 PM10/27/16
to weewx-user
Hi All,

Has any one managed to conect Weatherdisplay windows version to weewx, so WD recieves it's data from weewx through a home network.

I have installed and have running the weewxwd-1.0.0 extention, but so fare not been able to work how to connect WD to the clientraw.txt in my Raspberry Pi

If you can please can please can you explain how to do it.
Regards Whimick

gjr80

unread,
Oct 27, 2016, 6:47:51 PM10/27/16
to weewx-user
Hi Mike,

I am not sure what you are trying to achieve here, are you wanting to somehow use weewx as a front end for Weather Display? As far as I know Weather Display supports connection to a wide variety of weather station hardware and sensors but I am not sure it supports any other type of input. Weewx-WD is a weewx extension that seeks to mimic a number of the output data files produced by Weather Display. The aim here being to use weewx to drive some of the presentation type suites that are driven by Weather Display (eg Weather Display Live, Saratoga templates - actually can be driven by other weather software but Weather Display provides the most comprhensive dsplay, SteelSeries Gauges - probably not such an issue now that SteelSeries Gauges now support weewx directly). If you like, Weewx-WD fools the presentation suite concerned into thinking it is receiving data from Weather Display. Weewx-WD was never developed with the intent of Weather Display 'using' the Weewx-WD products eg clientraw.tx, testtags.php etc nor am I aware that Weather Display can somehow use these products.

The beauty of weewx is that it is open source and its architecture is such that interfacing to almost any source is (generally) as simple as writing a driver for the source. I do not know that any other weather software has such a feature.

Gary

Mike Whimick

unread,
Oct 28, 2016, 12:24:35 PM10/28/16
to weewx-user

Thankyou Gary for your reply.

I lke Weewx sinse its runs on a Raspberry Pi, something that the full version of WeatherDisplay does not.

For the past 10 years I have been using a Oregon Scientific WMR200 weather station connected to my PC, which has verved me well.   Sadly many of its sensors are coming the the end of their of lfe, so I had a needed to decide whether to replace it with another shop bought station or try and make one.

I chose the latter, and have almost finished writing a python weewx driver which is being used with a GrovePI+ board , Switchdoc labs weatherboard and Raspberry Pi3 and various sensors.  

Since both the station are Weewx are worthing well, I would now like Weewx to send data from my Raspberry Pi to the PC that has WeatherDisplay running on it.  At this moment in time I have not been able to workout a method that works.  I have tried weewxwd-1.0.0 extention, sadly it does not seem to work with WD, so I need and alternative method.

I would be interested hearing form anyone who may have mannaged to get Weewx to export data to WD.

Michael

Andrew Milner

unread,
Oct 28, 2016, 1:02:59 PM10/28/16
to weewx-user
Why on earth would anyone want to export data to weatherdisplay - instead of to a more universal site such as WU??

What is the benefit and purpose for exporting to weaherdisplay which cannot be achieved by other more generic means??

What exactly are you trying to achieve - apart from just trying to see if something is possible .........

As I keep on saying to you Mike - the development forum may be more suitable for your somewhat esoteric/'ideas'/thoughts/developments rather than the users forum which is more geared towards day-to-day issues and problems which people have from the normal running of weewx.






IF you want to see the data from a

Thomas Keffer

unread,
Oct 28, 2016, 1:39:15 PM10/28/16
to weewx-user
Easy there dude. If he wants to keep his old WD display, that's his business. 

As for posting to weewx-user, his query was whether anyone had done such a thing, not on the programming to do so.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Milner

unread,
Oct 28, 2016, 1:57:11 PM10/28/16
to weewx-user
Maybe this would help:

describes how to use the clientraw.txt file as an input I believe - so if weewx produces that file (which I can do) then weatherdisplay should be able to use it according to the linkpage

Mike - there is an outstanding question on the weather display forum which you have not answered asking if you have a webserver running on the rpi.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Andy

unread,
Oct 28, 2016, 3:45:48 PM10/28/16
to weewx-user
use smbclient in cron on the raspberrypi to put the file on the windows machine every so many minutes

gjr80

unread,
Oct 28, 2016, 6:44:12 PM10/28/16
to weewx-user
If you do get WD to import a weewx-wd generated clientraw.txt just keep in the back of your mind that the clientraw.txt file is only generated each report cycle ie every archive interval, whereas traditionally clientraw.txt is generated much more frequently by the likes of WD and other programs. Consider it a bit like archive records and loop packets. Without knowing anything about how WD accepts clientraw.txt in client mode this may or may not cause an issue. Suck it and see I guess, but like I said keep it in the back of your mind.

Gary

Mike Whimick

unread,
Nov 13, 2016, 5:27:52 PM11/13/16
to weewx-user
Hi All,
I am still playing with weewxwd and have foud that looking at the log for Weather Display it show an error
'--' is not a valid integer value.

Does any one know how this could be fixed, it looks like a error created by weewxwd

Michael

gjr80

unread,
Nov 13, 2016, 5:41:44 PM11/13/16
to weewx-user
Michael,

It is a trivial matter to change the clientraw.txt generated by weewx-wd. Can you tell me which field is causing the problem?

The problem with trying to generate a clientraw.txt is that the field contents are at best poorly defined. There is a textual description included with weather display that attempts to describe the file but it is at best a list of field titles. For example, what is the correct field 'value' for current solar radiation if the station has no solar sensor? 0, -100 or - ? I have seen all of these 'values' used in clientraw.txt. The weewx-wd clientraw.txt was produced using the available information to hand (ie the description), various clientraw.txt parsers and practical use with some of the software that uses clientraw.txt. I am not surprised that weather display may have some issues with the file.

Gary

Topher Webb

unread,
Nov 22, 2016, 6:08:19 PM11/22/16
to weewx-user
Hi Michael,

Have you managed to get WeeWX picking up SDL weather data? I have the SDL stuff up and running,but want to be able to export data to my own 'dot com' as I used to with Weather-Display when I was using a Davis Vantage.

I cant seem to get WeeWx picking up the SDL data, any help would be appreciated

Mike Whimick

unread,
Nov 27, 2016, 8:51:16 AM11/27/16
to weewx-user

Hi Topher,

At this moment in time I am not using weewx-wd.

What I have done is to add this function to my weewx driver.

Which creates a clientraw_wx.txt to tme ramdisk I have on my pi3.

The # --------0--------1-----2-----3--------4--------5------------6----7-----8-----9-----10----11----12------13  is just so I can keep track of the variables I have used so far.

There order and I took from WD's clientrawdescription.txt in WD for windows folder,   I also search the internet for more details,
its far from perfect, but seem to work(ish).

Sadly my programming skills are very limited and the py code could well be improved by some one with more skills than mine

The code is called by using self.clientraw().

My driver uses a GrovePi Board and Grove sensors and a Switchdocs Labs GroveWeatherPi, and Maplin Wind and Rain sensors, which are called by using a modified version of the weather rack code.

    def clientraw(self):
        ID_code = 12345
        null = "--"
        d_m = time.strftime("%d %m")
        wd_time = time.strftime("%H:%M:%S")
        st_name = "Whimick Met"
        # eor = "!!EOR!!"
        eor = "!!C10.37S28!!"
        # --------0--------1-----2-----3--------4--------5------------6----7-----8-----9-----10----11----12------13
        wxdat = [ID_code, knot, knot, degrees, outTemp, outHumidity, hPa, rain, null, null, null, null, inTemp, null,
                null, null, null, null, null, null, system_temp, null, null, null, null, null, null, null, null,
                wd_time, st_name, null, radiation, d_m, eor]
        # ---------14----15----16----17----18----19---20-----------21----22----23----24----25----26----27----28----29
        # -31----32
       
        cl_raw = open('/home/weewx/wxram/clientraw_wx.txt', 'w')
        for wxdat in wxdat:
            # print "%s" % wxdat,
            client = "%s " % wxdat
            cl_raw.write(client)
       
        else:
            cl_raw.close()
        return

I hope this helps
regards Michael


Whimick_Met.py
Wind_Rain.py
Wind_Rain_Test.py
clientrawdescription.txt

Mike Whimick

unread,
Nov 27, 2016, 10:34:01 AM11/27/16
to weewx-user

Hi again

The Clientraw format that I use came from http://jcweather.us/crparser.php


Glenn Vadney

unread,
May 2, 2022, 12:37:05 PM5/2/22
to weewx-user
I realize that this response is probably a few years too late for him ..... but yes, I have successfully imported weewx cumulus realtime.txt to update WeatherDisplay.  As of last night WeatherDisplay will now import realtime.txt if the station setup for Skye is used.  The developer made this work in just one day after I inquired about it.  I had to modify crt.py lines 800 & 801 to 'windSpeed' & 'windGust' and the Skye setup now reads & updates from the realtime.txt file. 

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages