wsMaurik PWS - WeatherLink software

Davis WeatherLink
User avatar
nico
Posts: 44
Joined: Sat Jan 02, 2010 11:40 pm
Location: Maurik, Netherlands
Contact:

wsMaurik PWS - WeatherLink software

Post by nico »

Just to mention that I've got the basic things working from the Davis WeatherLink program.

The <sky> and <precipitation> tags are a bit more trouble as these require measurement data to be handled before generating the xml-file. This will take me some time to find a solution if possible at all without resulting to php.

For any other users ??
Is WeatherDisplay or Cumulus able to generate those tags directly?
best regards
Nico
http://www.wsMaurik.nl/
Jose1701

Re: wsMaurik PWS - WeatherLink software

Post by Jose1701 »

I use Weather Display and still have problems. Have a look at my post there you will find the full xml file from Weather Display.
User avatar
nico
Posts: 44
Joined: Sat Jan 02, 2010 11:40 pm
Location: Maurik, Netherlands
Contact:

Re: wsMaurik PWS - WeatherLink software

Post by nico »

Jose1701

I can see you have an awfull lot of tags generated, but some of them are in german which would not work for the xml-file yowindow wants.
In general all PWS will have problems in filling those xml-tags, I'll open a seperate thread to look into that.

rgds
nico
best regards
Nico
http://www.wsMaurik.nl/
Jose1701

Re: wsMaurik PWS - WeatherLink software

Post by Jose1701 »

nico wrote:Jose1701

I can see you have an awfull lot of tags generated, but some of them are in german which would not work for the xml-file yowindow wants.
In general all PWS will have problems in filling those xml-tags, I'll open a seperate thread to look into that.

rgds
nico
Thanks for helping me. Well the tags I used for the first test are the ones from WD therefor it was such a long file.

Regards

Jose
User avatar
nico
Posts: 44
Joined: Sat Jan 02, 2010 11:40 pm
Location: Maurik, Netherlands
Contact:

Re: wsMaurik PWS - WeatherLink software

Post by nico »

the follwoing template code is working in WeatherLink as long as you use the same units in WeatherLink as required for YoWindow, refer to the http://yowindow.com/forum/viewtopic.php?f=11&t=368 thread.
Use at least YoWindow Version: 2.0.225 Date: January 8 2010

Code: Select all

<response>
	<current_weather>
		<temperature value="<!--outsideTemp-->"/>
		<humidity value="0.<!--outsideHumidity-->"/>
		<pressure value="<!--barometer-->"/>
		<wind>
			<speed value="<!--windSpeed-->"/>
			<direction value="<!--windDir-->"/>
		</wind>
		<sky>
			<precipitation>
				<amount value="<!--rainRate-->"/>
			</precipitation>
		</sky>
	</current_weather>
</response>
best regards
Nico
http://www.wsMaurik.nl/
tyrrom

Re: wsMaurik PWS - WeatherLink software

Post by tyrrom »

Hi Nico,
I see you know a lot about weatherlink and yowindow. I succeeded in creating a landscape with the yowindow-widget and tried to compose a yowindow.xml file with the response parameters you showed in this forum. But my yowindow.xml seems not to work (htttp://www.weervandaag.nl/wolvega2.htm). There are only data from yr.no. Can you send me your file yowindow.xml or publish it in this forum? Perhaps I can discover my mistakes by comparing your file and my file.
Hope I don't ask too much?
Romke (tyr@weervandaag.nl)
User avatar
nico
Posts: 44
Joined: Sat Jan 02, 2010 11:40 pm
Location: Maurik, Netherlands
Contact:

Re: wsMaurik PWS - WeatherLink software

Post by nico »

Hi Romke,

The format of the xml has changed a bit, code underneath should get you going.
AND another major thing is adding the crossdomain file to your server.

Code: Select all

<response>
  <current_weather>
    <temperature unit="c">
      <current value="<!--outsideTemp-->"/>
      <feels_like value="<!--thw-->"/>
    </temperature>
    <humidity value="<!--outsideHumidity-->"/>
    <pressure value="<!--barometer-->" unit="<!--barUnit-->">/>
    <uv value="<!--uv-->"/>
    <solar energy="<!--solarRad-->"/>
    <wind>
      <speed value="<!--windSpeed-->" unit="kph"/>
      <direction value="<!--windDir-->"/>
    </wind>
    <sky>
      <precipitation>
        <rain>
          <rate value="<!--rainRate-->" unit="mmph"/>
          <daily_total value="<!--dailyRain-->" unit="mm"/>
        </rain>
      </precipitation>
    </sky>
    <auto_update>
      <interval value="180" /> 
    </auto_update>
  </current_weather>
</response>
I was just adapting it at this moment and the dailyrain/uv-index don't show up for some reason (yet).
If I got everything working I'll post another sample of the code here.
hope this is helpfull

rgds
nico
best regards
Nico
http://www.wsMaurik.nl/
tyrrom

Re: wsMaurik PWS - WeatherLink software

Post by tyrrom »

Thanks Nico,

It works fine now for barometer, humidity, temperature and windchill, but not for the windspeed. Does not matter what I figure out (leave out windunit, changing in unit="<!--windUnit-->") Yowindow always reads the windspeed value from yr.no and not from my Vantage Pro2. Windspeed readings from yr.no are between 15 and 19 today and my station gives 4 tot 8 km/h.
If you know any solution, you let me know?
See: http://www.weervandaag.nl/wolvega2.htm

Romke
User avatar
nico
Posts: 44
Joined: Sat Jan 02, 2010 11:40 pm
Location: Maurik, Netherlands
Contact:

Re: wsMaurik PWS - WeatherLink software

Post by nico »

Sorry, there was an additional > and a weird " in the previous thing.
This one works for me, I've replaced all units with hardcoded ones because some users might just leave it as it is and yowindow wouldn't understand the units passed to it.

Code: Select all

<response>
	<current_weather>
		<temperature unit="c">
			<current value="<!--outsideTemp-->"/>
			<feels_like value="<!--thw-->"/>
		</temperature>
		<humidity value="<!--outsideHumidity-->"/>
		<pressure value="<!--barometer-->" unit="hPa"/>
		<uv value="<!--uv-->"/>
		<solar energy="<!--solarRad-->"/>
		<wind>
			<speed value="<!--windSpeed-->" unit="kph"/>
			<direction value="<!--windDir-->"/>
		</wind>
		<sky>
			<precipitation>
				<rain>
					<rate value="<!--rainRate-->" unit="mmph"/>
					<daily_total value="<!--dailyRain-->" unit="mm"/>
				</rain>
			</precipitation>
		</sky>
		<auto_update>
  		<interval value="180" /> 
  	</auto_update>
	</current_weather>
</response>
Let is know if it works, then maybe we can add it to a WeatherLink section on this board.
best regards
Nico
http://www.wsMaurik.nl/
User avatar
par
Posts: 8623
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: wsMaurik PWS - WeatherLink software

Post by par »

Nico!!!!

You are awsome!

I will add Weather Link section to the forum as soon as I have time.
And to the FAQ.

And thank you so much!
Get YoWindow weather app for your phone or tablet.

Image Image Image
Post Reply