Custom setup for output to server

220 views
Skip to first unread message

Ton vanN

unread,
Nov 11, 2025, 12:37:54 PMNov 11
to weewx-user
Have looked in user guide and in  this group (without hits) for presence/hints related to such thing as a Custome Server setup, like some PWSes have.
Functionally:
- insert a designation-url
- insert an ID
- insert a PW
- insert interval
- insert protocol-selection [e.g. WU-protocol or Ecowitt-protocol]
=> periodic output as http-datastring in selected protocol

Does such function exist for WeeWX, or must WeeWX be 'tuned' for any specific destination [like for WUnderground, WOW and WOW-BE]?

vince

unread,
Nov 11, 2025, 1:24:55 PMNov 11
to weewx-user
Not quite that way.

You typically just need to edit weewx.conf to enable uploading to any services you desire as well as editing in your credentials for the remote service.
  • There are a number of remote services built into weewx itself if you look at the [StdRESTful] section of weewx.conf (link) - these currently include AWEKAS, CWOP, PWSweather, WOW, WOW-BE, Wunderground.  The protocols they use and the URLs they upload to are hardcoded into the uploader code that comes with weewx.
  • There are about 30 more user-developed possibilities listed in the wiki (link) if you look in the 'uploaders' section near the bottom of the page.  You typically would need to add these as service extensions and similarly edit weewx.conf to enable the one(s) you want as well as specifying.
I don't know if there is a generic uploader that works in the way you're asking about specifically.

Anton vanNwnhzn@GMail

unread,
Nov 11, 2025, 3:55:24 PMNov 11
to weewx...@googlegroups.com

Vince,

Reading your response, due to similarity probably need to discuss with the custodian of the development version of WeeWX whether possible to add one more variant of the WU/WOW--uploadservice.
Alternatively must 'tune' one of the user-developed possibilites.

Op 11-11-2025 om 19:24 schreef vince:
--
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 visit https://groups.google.com/d/msgid/weewx-user/0152f97d-d173-4dd4-b5de-5fa92c619c91n%40googlegroups.com.
-- 

===============================================================
Contactinfo voor Anton van Nieuwenhuijzen:
Email    = ton...@gmail.com   
===============================================================
Deze E-mail en eventuele aanhangende files zijn 
alleen bestemd voor de geadresseerde(n). 
Als je deze E-mail ten onrechte hebt ontvangen, 
dan aub verwijderen en de afzender informeren.

John Smith

unread,
Nov 11, 2025, 9:04:43 PMNov 11
to weewx...@googlegroups.com
As of weeWX 5.2.0 it natively supports WU and WOW and WOW-BE already, you just need to update the config with userid/passcode/passwords and off you go...

Ton vanN

unread,
Nov 12, 2025, 2:07:07 AMNov 12
to 'Stefan Ferber' via weewx-user
How about setup for different url and other interval?

Op wo 12 nov 2025 03:04 schreef John Smith <deltafo...@gmail.com>:

John Smith

unread,
Nov 12, 2025, 2:20:34 AMNov 12
to weewx...@googlegroups.com
What URLs are you trying to send to?

weeWX is coded with all the official ones, failing that you need to extend the existing classes with a stub class like I did to support WOW-BE...

John Smith

unread,
Nov 12, 2025, 2:21:22 AMNov 12
to weewx...@googlegroups.com
Forgot about the interval question, this is usually set in the weather station console, and weeWX uses that...

On Wed, 12 Nov 2025 at 18:07, Ton vanN <ton...@gmail.com> wrote:

vince

unread,
Nov 12, 2025, 10:55:44 AMNov 12
to weewx-user
Again, look at the example weewx.conf for what is required to send to the various remote sites.  Look after line 80 in https://github.com/weewx/weewx/blob/master/src/weewx_data/weewx.conf

I answered your URL question yesterday. You cannot set a custom URL. The well known URLs for the services are hard coded into weewx’s python code.

You also cannot set individual custom intervals. The uploaders run at the station’s set interval which is typically 5 minutes for many stations.

I’m still not understanding exactly what you want, but if you are looking for something like the ecowitt web interface Custom Servers feature, no. Weewx does not work like that.

Anton vanNwnhzn@GMail

unread,
Nov 12, 2025, 4:05:33 PMNov 12
to weewx...@googlegroups.com

Vince,

Clear.
Different type of interface for uploading towards HetWeerActueel is already available & operational, applying (S)FTP.
No more questions in this group for CustomUpload as alternative, simpler interface from WeeWX towards HetWeerActueel under application of http-GET similar to WU-interface.

Op 12-11-2025 om 16:55 schreef vince:

vince

unread,
Nov 12, 2025, 4:56:01 PMNov 12
to weewx-user
I’m sorry, I do not understand at all. Perhaps run your Dutch through Google Translate if you want to continue this thread. I looked at the HWA forums through translate briefly but I am not sure if they are helpful or not.

If you are using an Ecowitt gateway you can possibly set your gateway to do a custom upload using the gateway itself, but you have provided no information about your station so I can’t help much. Sorry.
Message has been deleted

vince

unread,
Nov 13, 2025, 1:00:39 PM (14 days ago) Nov 13
to weewx-user
(oops - blasted web interface - deleted truncated post - sorry)

update - Anton sent me the details via email, so I had a question regarding re: what approach makes most sense.   I volunteered to at least take a pass at it for him.

In summary - he wants a WU upload with a different URL that is assembled from their base url and the identifier for the station, plus of course indicating weewx as the software type

WU example - https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=KCASANFR5&PASSWORD=XXXXXX&dateutc=2000-01-01+10%3A32%3A35&winddir=230&windspeedmph=12&windgustmph=12&tempf=70&rainin=0&baromin=29.1&dewptf=68.2&humidity=90&weather=&clouds=&softwaretype=vws%20versionxx&action=updateraw

HWA desired goal - https://hwaportal.nl/weatherstation/HWA12345/index.php?ID=HWA&PASSWORD=12345&dateutc=2000-01-01+10%3A32%3A35&winddir=230&windspeedmph=12&windgustmph=12&tempf=70&rainin=0&baromin=29.1&dewptf=68.2&humidity=90&weather=&clouds=&softwaretype=weewx%20versionxx&action=updateraw
I wonder if we are approaching having too many similar WU-like things at this point and perhaps having the ability to have a somewhat more generic WU(like) uploader might make sense ?   Perhaps have a weewx.conf stanza that lets them specify a base url to the left of the first '?' would be all that is needed ?

Or should I basically clone the recent WOW-BE additions and add a lot of new HWA similar additions ?

Asking for a little guidance here please... 

John Kline

unread,
Nov 13, 2025, 1:44:07 PM (14 days ago) Nov 13
to weewx...@googlegroups.com, weewx-user
Hi Vince,

I know that you are looking for advice from Tom and perhaps Matthew, but, just as I did with the WOW-BE, I’ll throw in my two cents.

“These uploads are the same” is only at a point in time.  Indeed, WOW-BE diverged from WOW even before we implemented it on the WeeWX side.

In this instance we have the same upload with just the URL differing.  But what if the upload changes?  Or what if the WU upload changes and hwaportal.nl doesn’t also implement the change.  These aren’t inherently WU uploads (and WOW-BE isn’t inherently a WOW upload).  As such, I don’t think you should be deriving this new upload from WU.

There is something to be said for a generic upload function where you specify the URL and a mapping of what is to be sent and the format to send it in (e.g., json); but this is a good about of work and it may or may not be able to support any and all uploads.

On the other hand, these uploads are so easy to write as extensions.  And there’s a bonus, someone gets to own them.

Cheers,
John

On Nov 13, 2025, at 10:00 AM, vince <vince...@gmail.com> wrote:

(oops - blasted web interface - deleted truncated post - sorry)

vince

unread,
Nov 13, 2025, 1:55:51 PM (14 days ago) Nov 13
to weewx-user
Nope - looking for general guidance from anybody.  Thanks.
The WOW-BE example is certainly a good place to start at least initially.

If there's a good extension variant to try as a different way to get there, let me know.  Email's ok too.

John Kline

unread,
Nov 13, 2025, 2:42:39 PM (14 days ago) Nov 13
to weewx...@googlegroups.com, weewx-user
You could look at weewx-windy to write the extension.  You derive from weewx.restx.StdRESTful (windy used the old, equivalent name of StdRESTbase).  You can copy the code from StdWunderground in restx.py; but, as previously stated, I don’t believe you should derive from StdWunderground as this new upload service is not inherently WU.

On Nov 13, 2025, at 10:55 AM, vince <vince...@gmail.com> wrote:

Nope - looking for general guidance from anybody.  Thanks.

Tom Keffer

unread,
Nov 13, 2025, 5:23:05 PM (14 days ago) Nov 13
to weewx...@googlegroups.com
Yeah, we thought of that. If you want a different URL, you can specify it with an option `server_url`. Mind you, I've never tested it, but it should work.

-tk
[[Wunderground]]
# This section is for configuring posts to the Weather Underground.

# If you wish to post to the Weather Underground, set the option
# 'enable' to true, then specify a station (e.g., 'KORHOODR3'). Use
# the station key (find it at
# https://www.wunderground.com/member/devices) for the password.
enable = false
station = replace_me
password = replace_me server_url = https://something-else.com
    
# Set the following to True to have weewx use the WU "Rapidfire"
# protocol. Not all hardware can support it. See the User's Guide.
rapidfire = False

vince

unread,
Nov 13, 2025, 6:43:51 PM (14 days ago) Nov 13
to weewx-user
Thanks Tom.  Quick test seems to look ok with an added server_url specified but I'll do more testing to verify for certain.

However - this means the user would have to upload to the 'custom' site or the 'real' Wunderground, not both of them if they want to do that.

To support both, wouldn't I still need to add code to restx.py, a stanza in weewx.conf, and an addition to restful_services to run a new thread for a newly defined [[HWA]] location to upload to ?

Tom Keffer

unread,
Nov 13, 2025, 7:05:58 PM (14 days ago) Nov 13
to weewx...@googlegroups.com
Yes, that's true. It's a singleton.


vince

unread,
Nov 13, 2025, 7:27:15 PM (14 days ago) Nov 13
to weewx-user
Thanks again.  I've verified that using [[Wunderground]] with rapidfire=false seems to work ok, and also that adding a new item to restx.py also seems to get the same results.  I'll continue to work with Anton via email to get things stable enough for a PR.  The additions are pretty small.

John Smith

unread,
Nov 13, 2025, 7:52:31 PM (14 days ago) Nov 13
to weewx...@googlegroups.com
As someone else pointed out, the extension for submitting data to Windy.com extend stuff in restx.py without needing to edit core weeWX files, which will need constant updating if you want to keep up with weeWX updates...

vince

unread,
Nov 13, 2025, 8:01:13 PM (14 days ago) Nov 13
to weewx-user
Understood. In this case I have it working well enough for this particular edge case I believe. 

John Smith

unread,
Nov 13, 2025, 9:59:43 PM (14 days ago) Nov 13
to weewx...@googlegroups.com
While it may be fine now, my comment was about making it keep working after upgrades 😀

vince

unread,
Nov 13, 2025, 11:57:15 PM (14 days ago) Nov 13
to weewx-user
Feel free to roll your own solution and support it, I guess. Both variants I have now seem to meet their needs.

John Smith

unread,
Nov 14, 2025, 12:06:27 AM (13 days ago) Nov 14
to weewx...@googlegroups.com
Why the hell did you twist my constructive criticism like that?

I was trying to helpfully point out that the method you chose was very sub-optimal, and unless you never plan to upgrade weeWX in future, you will be forced to keep re-applying patches needlessly into the future as Tom will never accept such a PR for a private upload service.


vince

unread,
Nov 16, 2025, 12:35:23 PM (11 days ago) Nov 16
to weewx-user
Just to close the loop on this one, Tom requested that I create an extension rather than a PR toward weewx itself.  Adding stuff to weewx itself makes it less wee :-)

It's definitely a niche case, but if anybody has interest in posting in Weather Underground format to a second site see (github link) for the extension.  I added it to the wiki as well.

Ton vanN

unread,
Nov 16, 2025, 1:43:28 PM (11 days ago) Nov 16
to 'Stefan Ferber' via weewx-user
Thanks!
;-) it might less niche than you think, reading the reactions in my email after publishing.

Op zo 16 nov 2025 18:35 schreef vince <vince...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages