v4 and connection to stations on another Meteohub...

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

v4 and connection to stations on another Meteohub...

Post by skyewright »

On page 28 of the English v4.2 manual it says "If you want to connect to another Meteohub via TCP/IP you have to choose this option. Stations: all stations connected to a Meteohub"

I'm running v4.2a and can't seem to find that option. Am I missing something obvious?
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re:v4 and connection to stations on another Meteohub...

Post by YJB »

Hi This is my understanding:

- One selecs with the 'add another weather station' the stationtype used on the 1st Meteohub
- In the configuration screen "type of connection" should be "TCP/IP Meteohub"
- Device <ip address>:5500 (for the 1st weather station on the mentioned meteohub)

HTH
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7880
Joined: Mon Oct 01, 2007 10:51 pm

Re:v4 and connection to stations on another Meteohub...

Post by admin »

Yep, the phrase "Stations: all stations connected to a Meteohub" wants to tell you that this works for all kinds of stations. When you have a Meteohub B that should connect to a Meteohub A that has a Vantage connected via USB, then choose "Vantage" as weather station in Meteohub B and select connection method "Meteohub TCP/IP". That way Meteohub B is daisy-chained to incoming data of Meteohub A.

What can this be good for? Well you can setup a network of weather stations around the world, all with a local connected Meteohub and Internet connection. Then you can have one master Meteohub (running on a big VMware server for example) that connects to all these Meteohubs via Internet and sucks sensor data from it. Each Weather station out there is represented as a weather station in the master Meteohub and you can do all the graphing, etc. on the master Meteohub, the slaves are just delivering raw data. When you have WLIPed Vantages the Meteohub slaves are not necessary, as you can connect to them directly via TCP/IP, but most other weather stations don't provide direct TCP/IP accessibility.

OK, this might be a bit over the top, but I wanted to give an idea about options ;-)
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:v4 and connection to stations on another Meteohub...

Post by skyewright »

admin wrote:Yep, the phrase "Stations: all stations connected to a Meteohub" wants to tell you that this works for all kinds of stations.
That's what I was hoping for. :)
I've previously done this when, in the early days of v4, I tested a connection to a USB RFXCOM on another Meteohub, but now I want to connect to a "Plug-in" station on another Meteohub, and plug-ins don't have a "TCP/IP Meteohub" "type of connection" available...

I tried using <meteohub IP>:5503 as the "Plug-in path" (the Plug-in is station 3 on the other Meteohub), but that just seems to result in this in the meteohub log.
ogger (05.04.2009 21:25:02): connect station 1 (Plug-in).
logger (05.04.2009 21:25:02): unexpected 0 bytes delivered from weather station 1 (Plug-in)
logger (05.04.2009 21:25:02): disconnect station 1 (Plug-in).
logger (05.04.2009 21:25:35): connect station 1 (Plug-in).
logger (05.04.2009 21:25:35): unexpected 0 bytes delivered from weather station 1 (Plug-in)
logger (05.04.2009 21:25:35): disconnect station 1 (Plug-in).
logger (05.04.2009 21:26:06): connect station 1 (Plug-in).
logger (05.04.2009 21:26:06): unexpected 0 bytes delivered from weather station 1 (Plug-in)
logger (05.04.2009 21:26:06): disconnect station 1 (Plug-in).
Should what I'm trying to do be possible?
admin wrote:OK, this might be a bit over the top, but I wanted to give an idea about options ;-)
I'm delighted to have provided a platform for the explanation. :)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7880
Joined: Mon Oct 01, 2007 10:51 pm

Re:v4 and connection to stations on another Meteohub...

Post by admin »

ah, now I see. What you try is logical and should be covered by Meteohub's model. Unfortunately, I haven't applied this data reflection technique to plugins. I overlooked this. I will inspect the code and see, if it can be done easily.
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:v4 and connection to stations on another Meteohub...

Post by skyewright »

admin wrote:I will inspect the code and see, if it can be done easily.
Thank you. Your attention is appreciated.

If I can assist in any way, e.g. testing, etc., please feel free to ask.
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:v4 and connection to stations on another Meteohub...

Post by skyewright »

Just to round this off, Boris found a way, so Meteohub 4.2b has introduced changes that allow 'data reflection' to work for the plug-in style weather station. :cheer:

Thank you, Boris.
Post Reply