Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Dynamic IP, can Cumulus be configured to accept a DNS name?

Discussion specific to Davis weather stations
drizzle
Posts: 8
Joined: Mon 23 Apr 2012 9:23 pm
Weather Station: Vantage Vue
Operating System: WS 2003
Location: Finland

Dynamic IP, can Cumulus be configured to accept a DNS name?

Post by drizzle »

HI,
Sorry if this is answered already but I could not find an answer fro my dilemma.

I have a vantage vue weather station with the IP logger and would like to send the data to a server directly over the net without the need of having a PC connected to the station but rather mobile connection using a 3G router. The 3G connection obviously do not have a fixed IP address but can be connected to e.g. DynDNS to get a DNS name.

Is there a way to configure Cumulus to accept a connection from a DNS name rather than an IP address?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by steve »

The spec for the command to connect to the IP logger doesn't mention being able to use a host name, so it looks like it wouldn't work. You could always just try it.
short int OpenTCPIPPort_V (const char *TCPPort, const char *IPAddr)
Description
Use this function to open the port of the TCPIP WeatherLink IP device. Example:

OpenTCPIPPort_V(“22222”, ”00:1D:0A:00:00:4A”);

OpenTCPIPPort_V(“22222”, ”172.16.24.12”).

The software automatically detects the 2nd parameter as either a Device ID or an IP Address by looking at the format of the string.
Steve
drizzle
Posts: 8
Joined: Mon 23 Apr 2012 9:23 pm
Weather Station: Vantage Vue
Operating System: WS 2003
Location: Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by drizzle »

Thanks for the reply Steve,

A thought occurred to me (it happens rather seldom thats why i felt obligated to write it here :)

How much trouble would it be to make Cumulus support a dns query?
E.g. You could add the DNS name to the UI but what it would do in the background would be finding out the IP of the name and use that to connect to the IP logger...

i would just love to NOT have to put a PC in the place where the weatherstation is.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by steve »

Yes, I could add a DNS lookup to Cumulus for the IP logger. If you want to create an enhancement request, then it won't get forgotten.
Steve
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by gemini06720 »

drizzle wrote:...would like to send the data to a server directly over the net without the need of having a PC connected to the station...
That is exactly the purpose of the Davis Instruments WeatherLinkIP adapter (ie: model #6555) - the adapter has been designed to send the data captured by either a Vantage Pro or a Vantage Vue weather station directly over the Internet without the use of a PC.

The only problem is that the WeatherLinkIP adapter can and will contact and send data to only one site, the Davis Instruments WeatherLink Network and nowhere else!

Trying to get (capture) data from the WeatherLinkIP adapter by directly accessing its IP address is very unreliable at best ... unless the adapter's option to automatically uploads to the WeatherLink Network is de-activated.
drizzle
Posts: 8
Joined: Mon 23 Apr 2012 9:23 pm
Weather Station: Vantage Vue
Operating System: WS 2003
Location: Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by drizzle »

It is disabled yes, I have now had it on for quite a while and it seem to work flawlessly. Tomorrow it will be installed to its intended location and then the traffic will be over a 3G link. The IP is the same as long a s the router does not boot or experience any other problems.
Very happy when/if the DNS lookup is being coded. Meanwhile I can check the IP address from the no-ip.org account and change it accordingly...
oh6hfx
Posts: 31
Joined: Sun 01 Apr 2012 8:08 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows7
Location: Lohtaja, Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by oh6hfx »

Well I have had VP2 with Ip datalogger connected now with ADSL and dynamic dns 10km far away from my home and
Cumulus connects with my dyndns address without problems. 4th day going without any connection problems.

Johannes
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by steve »

oh6hfx wrote:Cumulus connects with my dyndns address without problems.
I had a feeling that it did work, despite what the spec says, which is why I suggested to "drizzle" that it was worth trying.
Steve
drizzle
Posts: 8
Joined: Mon 23 Apr 2012 9:23 pm
Weather Station: Vantage Vue
Operating System: WS 2003
Location: Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by drizzle »

I'l be damned, it really does work!

Then this is an easy improvement Steve, just change the topic from "IP Address" to "IP address or URL" :D

Cheers
Tom
drizzle
Posts: 8
Joined: Mon 23 Apr 2012 9:23 pm
Weather Station: Vantage Vue
Operating System: WS 2003
Location: Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by drizzle »

I forgot...

If you need a translation to Finnish i just did that for this site of mine http://www.efnu.fi I'm happy to provide it for you.

-Tom
oh6hfx
Posts: 31
Joined: Sun 01 Apr 2012 8:08 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows7
Location: Lohtaja, Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by oh6hfx »

Thanks for your offer Drizzle, I was searching for a ready Finnish template two weeks ago, but did not find, so I did it myself :)

Last night two minutes outage in connection, have to look if it was ADSL going down or up there.

My site http://www.ohtakari.com

Johannes
drizzle
Posts: 8
Joined: Mon 23 Apr 2012 9:23 pm
Weather Station: Vantage Vue
Operating System: WS 2003
Location: Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by drizzle »

A little update to the DNS issue...

If I close Cumulus and start it again it fails to connect to the weather station when there is a DNS name instead of the IP address.
If I then ping the name, get the IP address and add it, it works. then if I change the Newly added IP address in cumulus back to the DNS name it seems to be working...

Can you think of any reason for this behaviour?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by steve »

Some kind of name resolution issue, I guess. I've just tried experimenting putting various host names in, while running Wireshark, and I can see that it successfully did a name lookup each time, and then attempted to connect to port 5511 at the address that the name resolves to. The connect failed, of course, as there isn't actually an IP logger to connect to.
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by mcrossley »

drizzle wrote:A little update to the DNS issue...

If I close Cumulus and start it again it fails to connect to the weather station when there is a DNS name instead of the IP address.
If I then ping the name, get the IP address and add it, it works. then if I change the Newly added IP address in cumulus back to the DNS name it seems to be working...

Can you think of any reason for this behaviour?
Were you just restarting Cumulus or rebooting the whole PC? If the later the network may not be ready when Cumulus starts?
oh6hfx
Posts: 31
Joined: Sun 01 Apr 2012 8:08 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows7
Location: Lohtaja, Finland

Re: Dynamic IP, can Cumulus be configured to accept a DNS na

Post by oh6hfx »

Now I remember also, that when I had the dyndns name in Cumulus and started it again, it was hanging in
"loading data" for minutes, then I gave up. So far "catching up" the logger has not been working, I have restarted Cumulus maybe two-three times but
as it is anyway running 24/7 it is not really issue until adsl line in either one end fails for some time...

By the way, when Davis IP logger was here in my local network, I experienced that the data rate from the logger is incredible slow. When I access the logger with HTTP
the front page loads slowly as well.. Maybe there is no need for gigabit ethernet to transfer simple weather data :)

Johannes
Post Reply