I started off using the wview code which connects nicely with my
WeatherlinkIP datalogger but there's a few things I dislike about
wview so thought I'd give Weewx a try. However, there doesn't seem to
be a way of connecting to the IP datalogger, is this the case?
If not, I'd like to work on adding this functionality! I'm a Python
coder by trade (I am a developer for launchpad.net) so I'll just dive
in and work on this unless anyone is already doing it. If anyone has
any tips for me I'll gladly take them on board.
Lastly, I noticed in the docs that it says that only consoles that use
US units are supported. Mine is a metric version and I noticed a few
metric "Sample Stations" so they must be doing it. Are the docs out
of date?
--
You received this message because you are subscribed to the Google Groups "Weewx Weather Station Discussion" group.
To post to this group, send email to weewx...@googlegroups.com.
To unsubscribe from this group, send email to weewx-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/weewx-user?hl=en.
I hadn't heard of the IP data logger. It sounds like this turns your console into a web server. Is that correct? I believe all current users of weewx either have the serial port or USB data logger. Do you know whether the IP logger can provide the LOOP and archive packets? If so, it should be possible to reuse much of the communication code.
One thing I found slightly odd about the code organization is that the library code is in the "bin" directory. But, this has the benefit of not requiring the user to make any modifications to PYTHONPATH since python automatically includes the directory-where-the-executable-is-located in sys.path. So, I've come to admire the idea. :) Generally, I've found the code organization to be quite good. Note that dictionaries are used extensively instead of a more OOP approach. The OOP approach would provide better automatic documentation, but might make the code less flexible. wxengine.py is where you'll find the main control loop.
Lastly, I noticed in the docs that it says that only consoles that use
US units are supported. Mine is a metric version and I noticed a few
metric "Sample Stations" so they must be doing it. Are the docs out
of date?I believe the protocol that weewx uses to communicate with the console is US-unit-specific. You can find the LOOP and archive specs in weewx/VantagePro.py. Look for "struct.Struct", as well as "_archive_map" and "_loop_map". I see a function called "translateLoopToUS" which makes me think whether a VP2 is sold as "US" or "metric" has little to do with the packet format.
The last I looked into the IP version, it was very disappointing. As I recall, it was only capable of uploading data to Davis Instrument servers where they would provide access via the web. There were very limited options for formatting and display of the data. Glad to hear that Wview found a way to access the data directly from the logger.I felt that Davis had missed a tremendous opportunity when they limited the accessibility of the the data to such a degree. I had hoped that the IP version would be capable of FTP of the data directly to a web server or perhaps provide a stand-alone web service but when they first came out there were no such options. I actually had one on order but canceled upon learning of these constraints,joe
By the way, I took the liberty of registering the project on Launchpad (https://launchpad.net/weewx) and set it up to mirror the existing Sourceforge svn repo which allows me to use Bazaar instead of Subversion. If anyone is interested in learning more about that I'm happy to explain it in more detail.
Hi Julian,Please don't get me wrong... I think what you are doing is great!I just think it's a crying shame that Davis did not make the IP version more flexible! The whole point of the IP version was to make a local PC unnecessary. However, they blew it.
Now, a question about your experiment... will it work remotely? In other words, can I have my python code running on a web server in one location, have the weatherlink IP connected to a router in another location, and execute wewwx using dyndns (or fixed IP)? Not that I am going to use it that way since I don't have the weatherlink IP, but at least that would fulfill the dream of not needing a local computer.Thanks,joe
Indeed. I'm on a boat trip right now in the middle of nowhere, but let me take a look at everything when I get back and I'll do the commit.
I am open to moving to a different repository and opening up the commit process. Any suggestions?
My principal goal is maintaining a small simple, elegant core that doesn't look like it's been hacked by a committee. Anything consistent with that is open.
-tk
________________
Blame my Android for any typos.
Indeed. I'm on a boat trip right now in the middle of nowhere, but let me take a look at everything when I get back and I'll do the commit.
I am open to moving to a different repository and opening up the commit process. Any suggestions?
I have a Sheeva Plug and need to get weewx on it running weather ip,
is this possible? I had usb2serial installed but it would not
recognize the usb2serial on every bootup. Any help is much
appreciated. Thanks.