WM-918 Weather Station

Archive of General Weather
Forum rules
These topics are a read-only archive and may be subject to out-of-date information.

For today's weather discussion head to: New Zealand Weather & Climate
Locked
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

WM-918 Weather Station

Unread post by GreggWard »

Hi guys,

Next week I am getting a WM-918 Weather Station for my birthday. I was just wanting to know if anyone knew of a good website that has instructions as to the correct way of mounting the associated sensors, to get reasonably accurate readings.

Once I get the WM-918 all up and running, I am going to connect it up to a secondhand computer, that will run all day, to regularly upload the latest data for the weather conditions at my home in Palmerston North, to some sort of website.



Gregg
User avatar
NZstorm
Posts: 11333
Joined: Mon 10/03/2003 19:38
Location: Grey Lynn, Auckland
Has thanked: 342 times
Been thanked: 361 times

Unread post by NZstorm »

It will be good to see your weather station go on line Gregg. The trick will be to put the sensors somewhere out in the open, as far away from buildings as possible. A bit difficult, but the value of your weather station will be enhanced. ;)
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

Thanks Steve, I will try and find an appropriate location in my back yard.

I will post a message to this forum when I get everything up and going.

Is there a standard height above the ground that the sensors should be located?



Gregg
User avatar
TonyT
Moderator
Posts: 2878
Joined: Thu 08/05/2003 11:09
Location: Amberley, North Canterbury
Has thanked: 352 times
Been thanked: 1146 times

Unread post by TonyT »

Ideal is ground level for rain gauge, 1.2m for temperature, 10m for wind.

Of course, she's a long road finding the ideal weather station. No hurry eh? Good on ya mate. :) :)
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

Can probably manage the rain gauge and temperature sensor heights, but will have to put anenometer at about 4m.

You wouldn't happen to drink Speights would you. ;)

Thanks
jeffsweather
Posts: 295
Joined: Wed 12/03/2003 19:15
Location: Hillmorton, Christchurch
Has thanked: 0
Been thanked: 0
Contact:

Unread post by jeffsweather »

Gregg,

Have a look at http://www.booty.demon.co.uk/metinfo/uswfaq.htm#6 section 6C has quite a bit of info. The whole FAQ is worh a read if you have time.

I have 2 sensors in non standard exposures. I read both of them and choose the lowest reading.
See my web site for details under "My Weather Station".
There seems to be a problem with sunny windless days giving higher readings but I don't get too many of those.
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

Thanks Jeff, I will have a good read of the section you noted.

I have had a look at your Weather Station website several times over the last couple of years. I think originally on your website, you mentioned that you were using a Python script to read data from one or several of your sensors ( I can't remember which). Do you still use Python? It's a great script programming language.
jeffsweather
Posts: 295
Joined: Wed 12/03/2003 19:15
Location: Hillmorton, Christchurch
Has thanked: 0
Been thanked: 0
Contact:

Unread post by jeffsweather »

Yes, still using python Gregg, though I don't use it to read the Dallas 1 wire devices directly, I get the digitemp software from within a python script to read these and put the results in a list.
As I update the weather station I change some on the old scripts that were written in a varitey of languages to python.

I have to agree, it is a great scripting language and I'm still learning as I go.
Manukau heads obs
Posts: 12305
Joined: Mon 10/03/2003 16:30
Location: West Coast Road, Manukau Peninsula, North Island
Has thanked: 0
Been thanked: 0
Contact:

Unread post by Manukau heads obs »

Hi
what sofware are you going to use greg?
Image
Brian Hamilton, weather enthusiast. My weather dataEmail: [email protected]
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

Brian,

I was going to be running Redhat Linux v9.0 as the OS on the PC, so I am still to look around and see what is available for Linux.

I have seen that you have ported a version of the WeatherDisplay software across to Linux. Does this initial Linux ported version, work with the WM-918 Weather Station?

Sing out if you require any sort of help to completely port your software across to Linux, as I am a Software Engineer by trade, who has worked in a Unix/Linux environment and would be keen to offer any assistance in getting your software across to this platform.



Gregg
Manukau heads obs
Posts: 12305
Joined: Mon 10/03/2003 16:30
Location: West Coast Road, Manukau Peninsula, North Island
Has thanked: 0
Been thanked: 0
Contact:

Unread post by Manukau heads obs »

yes, it works on linux and with the wm918 :)
see
http://www.weather-display.com/linuxdownload.html

but i am having trouble with the ftp .....idealy i want to be able to run the ftp program sepearately like i do with the windows verison....by using fork, but i cant get it to work (kylix)
do you know klylix?
Image
Brian Hamilton, weather enthusiast. My weather dataEmail: [email protected]
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

Yes, I have had a small play around with Kylix.

Over the last two years the projects I have been involved in, at work, have been coded in Delphi, in a Windows environment, so I've had to get up to speed with that programming language. I have primarily coded in C/C++.

Are you trying to use the fork() function from the Kylix version? Were you creating a separate thread within the Windows version?


Gregg
Manukau heads obs
Posts: 12305
Joined: Mon 10/03/2003 16:30
Location: West Coast Road, Manukau Peninsula, North Island
Has thanked: 0
Been thanked: 0
Contact:

Unread post by Manukau heads obs »

the ftp /internet program for the windows verison is as a separate .exe program....and there are lots of way to execute another program in delphi...
but in kylix there is no windows equivalent, just a fork example i found,,,,which does not seem to work....so i have the routine built into the main executable...but that creates problems with ftp procedures not beging freed/still running, etc
Image
Brian Hamilton, weather enthusiast. My weather dataEmail: [email protected]
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

Brian,

Did a bit of trolling around the net and found the following Kylix related article:

http://rick-ross.com/papers/borcon2001/6206.html

It basically describes the differences between Linux processes/threads and in more detail describes the inter-process methods of communicating between separate threads or processes, in a Linux environment.

What you could try is re-implementing your FTP code as a separate thread (TThread) started from your main program or else start the separate FTP program from your main program using one of the execution functions such as execl, execlp, defined in the LIBC.pas (Kylix wrapper class for Linux C Library implementation).

To start with, you could always call the system function, also defined in LIBC.pas to start up the separate FTP program and then use one of the inter process communication methods described in the article, to communicate between the two programs.

Hope this is of some help.



Gregg
Manukau heads obs
Posts: 12305
Joined: Mon 10/03/2003 16:30
Location: West Coast Road, Manukau Peninsula, North Island
Has thanked: 0
Been thanked: 0
Contact:

Unread post by Manukau heads obs »

thanks greg
one thing else:
i cam across a sample code to get the form of a image (getformimage has not been ported unfortunately), it uses a qwidget and the application desktop handle
but it means the form must be show first (i.e visible on the screen and in focus)
but this sometimes fails and a capture of the persons desktop occurs instead,,,,and that could be emarrising....

what other ways have i have getting the form to a image file
(i have tried copy rect...thats no good either)
Image
Brian Hamilton, weather enthusiast. My weather dataEmail: [email protected]
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

I have a look into it Brian.


Gregg
GreggWard
Posts: 434
Joined: Wed 12/03/2003 22:09
Location: Palmerston North
Has thanked: 160 times
Been thanked: 5 times

Unread post by GreggWard »

Brian,

Have been busy with work and have got some deadlines for some software for this coming week, so won't be able to look into this till the following week.


Gregg
Manukau heads obs
Posts: 12305
Joined: Mon 10/03/2003 16:30
Location: West Coast Road, Manukau Peninsula, North Island
Has thanked: 0
Been thanked: 0
Contact:

Unread post by Manukau heads obs »

no problem
the workaround I have is 80% satisfactory for now :)
Image
Brian Hamilton, weather enthusiast. My weather dataEmail: [email protected]
Locked