whew and gw1000

507 views
Skip to first unread message

Luke Marcum

unread,
Aug 16, 2020, 6:26:16 PM8/16/20
to weewx-user
Im trying to set up weewx to obtain data from my gw1000, running on my pi4.  Im using these instructions to set it up: https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to the part where I have to update the interceptor settings in weewx.conf but I can't seem to find where this part of the settings is.  I have been able to run interceptor.py from the interceptor download and it gets my current weather data, but I can't seem to connect it to weewx.  HELP!!!

steeple ian

unread,
Aug 16, 2020, 7:23:12 PM8/16/20
to weewx...@googlegroups.com
Try the new GW1000 API driver instead, https://github.com/gjr80/weewx-gw1000. I switched to this a few weeks back from Interceptor.

On 16 Aug 2020, at 23:26, Luke Marcum <eastcentra...@gmail.com> wrote:

Im trying to set up weewx to obtain data from my gw1000, running on my pi4.  Im using these instructions to set it up: https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to the part where I have to update the interceptor settings in weewx.conf but I can't seem to find where this part of the settings is.  I have been able to run interceptor.py from the interceptor download and it gets my current weather data, but I can't seem to connect it to weewx.  HELP!!!

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f704357a-fca1-4fb0-aa18-0b0ad958accao%40googlegroups.com.

Luke Marcum

unread,
Aug 16, 2020, 10:22:54 PM8/16/20
to weewx-user
Ok, when I try to run this command: cp /var/tmp/gw1000/bin/user/gw1000.py $BIN_USER/user it says cp: cannot create regular file '/user' : Permission denied.

On Sunday, August 16, 2020 at 7:23:12 PM UTC-4, steeple ian wrote:
Try the new GW1000 API driver instead, https://github.com/gjr80/weewx-gw1000. I switched to this a few weeks back from Interceptor.
On 16 Aug 2020, at 23:26, Luke Marcum <eastcentra...@gmail.com> wrote:

Im trying to set up weewx to obtain data from my gw1000, running on my pi4.  Im using these instructions to set it up: https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to the part where I have to update the interceptor settings in weewx.conf but I can't seem to find where this part of the settings is.  I have been able to run interceptor.py from the interceptor download and it gets my current weather data, but I can't seem to connect it to weewx.  HELP!!!

--
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...@googlegroups.com.

gjr80

unread,
Aug 16, 2020, 10:32:19 PM8/16/20
to weewx-user
Hi,

It appears you are manually installing the GW1000 driver. If you are a new user I strongly suggest you install the driver using the wee_extension utility (step 2 in the readme you are following). wee_extension will handle most of the copying/configuration for you.

And to answer your original question, if you read the readme again you will find the note under the Installation Instructions heading points out that $BIN_ROOT is a symbolic name that needs to be replaced with the appropriate path for your installation.

Gary

Luke Marcum

unread,
Aug 17, 2020, 1:03:09 AM8/17/20
to weewx-user
Ok, so I'm setting the one you recommended up and I've made it to step fiver where it says im supposed to input PYTHONPATH=/etc/weewx/bin python -m user.gw1000 --test-driver. But it says no module named user.gw1000


On Sunday, August 16, 2020 at 7:23:12 PM UTC-4, steeple ian wrote:
Try the new GW1000 API driver instead, https://github.com/gjr80/weewx-gw1000. I switched to this a few weeks back from Interceptor.
On 16 Aug 2020, at 23:26, Luke Marcum <eastcentra...@gmail.com> wrote:

Im trying to set up weewx to obtain data from my gw1000, running on my pi4.  Im using these instructions to set it up: https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to the part where I have to update the interceptor settings in weewx.conf but I can't seem to find where this part of the settings is.  I have been able to run interceptor.py from the interceptor download and it gets my current weather data, but I can't seem to connect it to weewx.  HELP!!!

--
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...@googlegroups.com.

gjr80

unread,
Aug 17, 2020, 1:18:06 AM8/17/20
to weewx-user
Which instructions are you following? The two commands given in the readme for running the driver with --test-driver are:

$ PYTHONPATH=/home/weewx/bin python -m user.gw1000 --test-driver

and

$ PYTHONPATH=/usr/share/weewx python -m user.gw1000 --test-driver

which you use depends on how you installed WeeWX, the first is for a setup.py install and the second is for a package install.

Gary

Luke Marcum

unread,
Aug 17, 2020, 1:20:09 AM8/17/20
to weewx-user
The reason I was using etc/weewx is because that is where my weewx file is.  Its in the etc folder!

gjr80

unread,
Aug 17, 2020, 6:51:54 AM8/17/20
to weewx-user
Your WeeWX config file, weewx.conf, should be in /etc/weewx but PYTHONPATH is used to tell python where to look for python modules and libraries. In this case your WeeWX python modules are in /usr/share/weewx or /home/weewx/bin.

Gary

Luke Marcum

unread,
Aug 17, 2020, 2:47:13 PM8/17/20
to weewx-user
I took your advice and did what it said and finished the instructions, but now when im trying to run WEEWX directly like in step 7, nothing is happening.  I used the command sudo weewx /etc/weewx/weewx.conf and now its not doing anything!

gjr80

unread,
Aug 17, 2020, 4:34:24 PM8/17/20
to weewx-user
If you carefully read the instructions on running WeeWX directly you will see the command is ‘weewxd’ not ‘weewx’. Try:

$ sudo weewxd /etc/weewx/weewx.conf

Gary

Luke Marcum

unread,
Aug 17, 2020, 4:57:44 PM8/17/20
to weewx-user
Ok, I got weewx working but now im trying to download weewx-wd to try and upload weewx data to my website.  But when I put in the first command (wget -P $DOWNLOAD-ROOT https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz) it says wget: missing URL! Also im sorry for all the trouble, Im new to this linux stuff!

gjr80

unread,
Aug 17, 2020, 5:21:33 PM8/17/20
to weewx-user
No need to apologise for being new to Linux, we have all been there. A couple of tips though. If you haven’t already learnt how to copy/paste text to and from the Linux terminal do so. It makes it much easier to enter long or complex commands without error. It also makes it easier to copy the exact command entered and the exact response when things go wrong. You can then post the exact command entered and the exact response here when seeking help. Make it easier for those helping as it is clear exactly what was entered and the response, sometime typos happen or descriptions can miss things. Finally read the instructions from top to bottom, don’t just cherry pick commands. If a command doesn’t work re-read the instructions.

In the case of WeeWX-WD $DOWNLOAD_ROOT is another symbolic name (just as $BIN was earlier) that you need to substitute a value for. In this case I would just use /var/tmp, ie:

$ wget -P /var/tmp https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz

You will then need to substitute /var/tmp for $DOWNLOAD_ROOT through the the rest of the install instructions.

If you have any further problems with WeeWX-WD I suggest you start a new thread.

Gary

Luke Marcum

unread,
Aug 17, 2020, 11:47:34 PM8/17/20
to weewx-user
I need help setting up weewx-wd.  When I type in the first command it says that it gets 404 not found!

rich T

unread,
Aug 18, 2020, 7:22:09 AM8/18/20
to weewx-user
Gary

Believe this is the issue that Luke is having:

Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-08-18 07:17:02 ERROR 404: Not Found.

Now if you go to https://github.com/gjr80/weewx-weewx-wd, cloning or downloading the zip file seems to work.

Rich

gjr80

unread,
Aug 18, 2020, 8:41:09 AM8/18/20
to weewx-user
Rich, thanks, indeed I did not publish a 2.0.0 release package and hence the 404 error.

Luke. As Rich points out you can download a zip of the repo and that will install, my concern is whether there are any outstanding issues with 2.0.0. From memory I had them all sorted and then other things took me away from publishing the release. Give me day to have a look over 2.0.0 and publish the release.

Gary

Luke Marcum

unread,
Aug 19, 2020, 1:20:58 PM8/19/20
to weewx-user
How do I install it if I just download the file?

gjr80

unread,
Aug 19, 2020, 7:35:56 PM8/19/20
to weewx-user
Have published the WeeWX-WD v2.0.0 release just now. Download and installation should work as per the readme. My apologies for the delay.

Gary

Luke Marcum

unread,
Aug 19, 2020, 9:15:45 PM8/19/20
to weewx-user
Its fine!

Luke Marcum

unread,
Aug 19, 2020, 9:20:20 PM8/19/20
to weewx-user
Thanks so much! Just tried it out and it worked!

gjr80

unread,
Aug 19, 2020, 9:41:09 PM8/19/20
to weewx-user
That is good to hear.

Gary

Luke Marcum

unread,
Aug 21, 2020, 12:04:54 AM8/21/20
to weewx-user
Ok, now that Ive finished configuration, how to I get weewx-wd to send the testtags file to my website?

rich T

unread,
Aug 21, 2020, 12:34:54 AM8/21/20
to weewx-user
Is it local (on local network) or  out on internet?

Luke Marcum

unread,
Aug 21, 2020, 12:35:51 AM8/21/20
to weewx-user
Its out on the internet and I used the Saratoga Template!

rich T

unread,
Aug 21, 2020, 12:52:55 AM8/21/20
to weewx-user
In the weewx.config file, is your FTP section setup?

Luke Marcum

unread,
Aug 21, 2020, 8:51:26 PM8/21/20
to weewx-user
Yes it is!

Luke Marcum

unread,
Sep 18, 2020, 2:54:43 PM9/18/20
to weewx-user
Ok, now that its been working for a while weewxwd has been updating to my website.  Its been updating to a WD folder but I want to change it where it updates to "public_html" how do I do this?

gjr80

unread,
Sep 18, 2020, 8:54:59 PM9/18/20
to weewx-user
You can change the location that WeeWX uses to save generated reports by setting the HTML_ROOT config option. HTML_ROOT is set in the [StdReport] stanza in weewx.conf, if you set HTML_ROOT immediately under [StdReport] the setting will apply to all reports but you can override HTML_ROOT for individual reports by setting HTML_ROOT under the report stanza, eg:

[StdReport]
    ....
    HTML_ROOT = public_html
    ....
    [[MyReport]]
        skin = MySkin

    [[MyOtherReport]]
        skin = MyOtherSkin
        HTML_ROOT = public_html/other_report

Would place the content generated by MyReport in the public_html directory and content generated by MyOtherReport in the public_html/other_report directory.

HTML_ROOT can be specified as an absolute path or as a relative path. If specified as a relative path the path is relative to the WEEWX_ROOT path specified in weewx.conf.

If you are using the FTP or RSYNC report to upload to a web server you can also use one or more instances of the FTP or RSYNC report to locate your uploaded files on the web server as required. However, setting/overriding HTML_ROOT is all that is required in most cases.

Gary

Luke Marcum

unread,
Sep 18, 2020, 9:16:44 PM9/18/20
to weewx-user
So, Im using weedwd to update my site for the Saratoga template.  Is this still how I would do it?

gjr80

unread,
Sep 18, 2020, 9:21:23 PM9/18/20
to weewx-user
All WeeWX-WD is a couple of WeeWX services and a number of WeeWX reports/skins that generate the output. If you want to change where the reports/skins create their output then yes that is what you need to do. Have a look at your [StdReport] stanza and the corresponding skins.

Gary

Luke Marcum

unread,
Sep 28, 2020, 5:12:56 PM9/28/20
to weewx-user
One last problem for now.  I got the FTP to work and it was uploading all the stuff I needed such as the test tags.php, etc.  There was also stuff I didn't want that was being uploaded like a bunch of png's.  How can I only upload the stuff I need for my Saratoga template which is the clientraw stuff and the test tags stuff.  

gjr80

unread,
Sep 29, 2020, 9:33:59 AM9/29/20
to weewx-user
The FTP report uploads everything within and below the HTML_ROOT directory. If there are files being uploaded by the FTP report that you don't want uploaded there are a few different approaches that can be used to stop the unwanted files being uploaded, the two common approaches are:

1. Stop the generation of the unwanted files by WeeWX. If the .png files are WeeWX generated then they may be plot files generated by the WeeWX ImageGenerator being run by a skin, in this case you will need to identify the skin producing the plots and disable/comment out/remove the [ImageGenerator] stanza (or portions of it if you want to keep some of the .png files) in the skin config file or you can remove the entry weewx.imagegenerator.ImageGenerator from the generator_list setting under the [Generators] stanza in the skin config file. If you are using WeeWX-WD it is possible the .png files may be windrose images generated by the WeeWX StackedWindRoseImageGenerator. In this case you can stop generation by setting enable = False under [StdReport] [[wdStackedWindRose]] in weewx.conf. weewx.conf changes will require a WeeWX restart/config reload.

2. Have whatever is generating the unwanted files save the files to another directory. In this case you need to identify the skin that is producing the files and set/change the HTML_ROOT setting(s) for the skin such that the unwanted files are saved somewhere outside of the HTML_ROOT being used by the FTP report.

Remember, HTML_ROOT can be set/overridden in different places with weewx.conf; so the HTML_ROOT being used by the FTP report may be different to that set  at the top of the [StdReport] stanza which may be different to that value used within anther report.

Gary

Luke Marcum

unread,
Oct 1, 2020, 12:19:10 AM10/1/20
to weewx-user
Here is my website(www.ekyrrgweather.com) and as you can see its uploading the index.html and its being displayed on my website.  I want to stop this from happening, but I still want to be able to access this on my pi which is running my weewx.  What way can I stop the upload of the index.html and all its graph images but still be able to see this page when looking up file:///var/www/html/weewx/weewx.html on my pi.  Im sorry for all the trouble!

Graham Eddy

unread,
Oct 1, 2020, 1:32:53 AM10/1/20
to weewx...@googlegroups.com
under [[FTP]] set ‘enable = false’.
you will still see the files generated under HTML_ROOT directory; they just won’t be copied to remote host

On 1 Oct 2020, at 2:19 pm, Luke Marcum <eastcentra...@gmail.com> wrote:

Here is my website(www.ekyrrgweather.com) and as you can see its uploading the index.html and its being displayed on my website.  I want to stop this from happening, but I still want to be able to access this on my pi which is running my weewx.  What way can I stop the upload of the index.html and all its graph images but still be able to see this page when looking up file:///var/www/html/weewx/weewx.htmlon my pi.  Im sorry for all the trouble!

Luke Marcum

unread,
Oct 1, 2020, 1:37:21 AM10/1/20
to weewx-user
I still want some files to uploaded such as testtags and clienttraw.  Should I still do this?

gjr80

unread,
Oct 1, 2020, 1:40:27 AM10/1/20
to weewx-user
It all comes down to here WeeWX is placing your generated files and what directory hierarchy is being used. If everything is being lumped in the same single directory then the FTP report cannot discriminate between them. Rather than up playing to and fro perhaps it might be easiest if you post a copy of your weewx.conf and we can work through that. You can obtain a sanitised copy of weewx.conf by running wee_debug. Before posting the wee_debug report check it for usernames, passwords, API keys etc; wee_debug should obfuscate these but it is not perfect.

Gary

Luke Marcum

unread,
Oct 1, 2020, 3:03:38 PM10/1/20
to weewx-user
#   This section specifies what reports, using which skins, to generate.

[StdReport]
    
    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins
    
    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/www/html/weewx
    
    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding
    
    # Whether to log a successful operation
    log_success = True
    
    # Whether to log an unsuccessful operation
    log_failure = False
    
    # Each of the following subsections defines a report that will be run.
    # See the customizing guide to change the units, plot types and line
    # colors, modify the fonts, display additional sensor data, and other
    # customizations. Many of those changes can be made here by overriding
    # parameters, or by modifying templates within the skin itself.
    
    [[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = true
    
    [[SmartphoneReport]]
        # The SmartphoneReport uses the 'Smartphone' skin, and the images and
        # files are placed in a dedicated subdirectory.
        skin = Smartphone
        enable = false
        HTML_ROOT = /var/www/html/weewx/smartphone
    
    [[MobileReport]]
        # The MobileReport uses the 'Mobile' skin, and the images and files
        # are placed in a dedicated subdirectory.
        skin = Mobile
        enable = false
        HTML_ROOT = /var/www/html/weewx/mobile
    
    [[StandardReport]]
        # This is the old "Standard" skin. By default, it is not enabled.
        skin = Standard
        enable = true
    [[wdPWS]]
        enabled = False
        skin = PWS
        HTML_ROOT = /var/www/html/weewx
        [[[Units]]]
            [[[[Groups]]]]
                group_pressure = hPa
                group_rain = mm
                group_rainrate = mm_per_hour
                group_speed = km_per_hour
                group_speed2 = km_per_hour2
                group_temperature = degree_C
    [[wdStackedWindRose]]
        skin = StackedWindRose
        enabled = True
        HTML_ROOT = /var/www/html/weewx
        [[[Units]]]
            [[[[Groups]]]]
                group_speed = km_per_hour
                group_speed2 = km_per_hour2
            [[[[TimeFormats]]]]
                date_f = %d/%m/%Y
                date_time_f = %d/%m/%Y %H:%M
    [[wdTesttags]]
        skin = Testtags
        enabled = True
        HTML_ROOT = /var/www/html/weewx
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = foot
                group_degree_day = degree_F_day
                group_pressure = inHg
                group_rain = inch
                group_rainrate = inch_per_hour
                group_speed = mile_per_hour
                group_speed2 = mile_per_hour2
                group_temperature = degree_F
            [[[[TimeFormats]]]]
                date_f = %d/%m/%Y
                date_time_f = %d/%m/%Y %H:%M
    [[wdClientraw]]
        skin = Clientraw
        enabled = True
        HTML_ROOT = /var/www/html/weewx
        [[[Units]]]
            [[[[StringFormats]]]]
                degree_C = %.1f
                degree_compass = %.0f
                foot = %.0f
                hPa = %.1f
                km = %.1f
                knot = %.1f
                mm = %.1f
                percent = %.0f
                uv_index = %.1f
                watt_per_meter_squared = %.0f
                NONE = --
    
    [[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp
        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = true
        user = XXX obfuscated by wee_debug XXX
        password = XXX obfuscated by wee_debug XXX
        server = ekyrrgweather.com    # The ftp server name, e.g, www.myserver.org
        path = /ekyrrgweather.com/public_html    # The destination directory, e.g., /weather
        
        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False
        
        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        # HTML_ROOT = /var/www/html/weewx
        
        # Most FTP servers use port 21
        port = 21
        
        # Set to 1 to use passive mode, zero for active mode
        passive = 1

gjr80

unread,
Oct 2, 2020, 1:28:12 AM10/2/20
to weewx-user
All of your skins are set to use /var/www/html/weewx as HTML_ROOT so it will be impossible for the FTP report to distinguish between what you want uploaded and what you don't. On the basis of you just wanting testtags.php and the clientraws (and presumably the windrose) uploaded I would put them into their own directory under /var/www/html/weewx. To do this you need to set HTML_ROOT = /var/www/html/weewx/WD under each of [[wdTesttags]], [[wdClientraw]] and [[wdStackedWindRose]]. You will then need to tell the FTP report to only FTP files from /var/www/html/weewx/WD, do this by setting HTML_ROOT = /var/www/html/weewx/WD under [[FTP]]. Restart WeeWX and only testtags.php, the clientraws and the windrose should be uploaded, they should be uploaded to the same directory as they were previously so there should be no need change the configuration of anything on your web server that uses these files. However, since these files have moved on your WeeWX system anything you have on your WeeWX system will need to be re-configured to look in /var/www/html/weewx/WD rather than /var/www/html/weewx.

One other thing, earlier versions of the WeeWX-WD installer had a bug that resulted in the config item `enabled` being placed under each WeeWX-WD [[ ]] entry under [StdReport] in weewx.conf. The correct option name is 'enable' not 'enabled', the incorrect option name won't cause any harm, it just means it will have no effect and all WeeWX-WD skins will be enabled. You might want to go through each [[ ]] stanza under [StdReport] and change 'enabled' to 'enable'.

Gary
Reply all
Reply to author
Forward
0 new messages