Page 1 of 2

wsMaurik PWS - WeatherLink software

Posted: Wed Jan 06, 2010 10:25 pm
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?

Re: wsMaurik PWS - WeatherLink software

Posted: Wed Jan 06, 2010 10:28 pm
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.

Re: wsMaurik PWS - WeatherLink software

Posted: Wed Jan 06, 2010 11:46 pm
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

Re: wsMaurik PWS - WeatherLink software

Posted: Thu Jan 07, 2010 7:08 pm
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

Re: wsMaurik PWS - WeatherLink software

Posted: Fri Jan 08, 2010 11:46 pm
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>

Re: wsMaurik PWS - WeatherLink software

Posted: Mon Jul 19, 2010 3:57 pm
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)

Re: wsMaurik PWS - WeatherLink software

Posted: Mon Jul 19, 2010 10:40 pm
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

Re: wsMaurik PWS - WeatherLink software

Posted: Wed Jul 21, 2010 2:12 pm
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

Re: wsMaurik PWS - WeatherLink software

Posted: Wed Jul 21, 2010 6:55 pm
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.

Re: wsMaurik PWS - WeatherLink software

Posted: Thu Jul 22, 2010 6:14 am
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!