Trixology

WeatherCat => WeatherCat Integration => Topic started by: Chet on December 30, 2013, 12:42:23 PM

Title: yowindow.xml
Post by: Chet on December 30, 2013, 12:42:23 PM
Could someone describe for this novice how to create an yowindow.xml from my weathercat software? I want to use it with the you window screen saver.
Thanks.
Title: Re: yowindow.xml
Post by: wvdkuil on December 30, 2013, 01:00:07 PM
Could someone describe for this novice how to create an yowindow.xml from my weathercat software? I want to use it with the you window screen saver.
Thanks.
The yowindow.xml is attacheched.
Succes, Wim
Title: Re: yowindow.xml
Post by: Chet on December 30, 2013, 04:12:42 PM
Thank you. I download it and put it in the folder with weather cat and told yowindow to use it but no weather data such as temperature is displayed. Is there more I need to do? Where did the yowindow.xml come from? Thanks
Title: Re: yowindow.xml
Post by: wvdkuil on December 30, 2013, 04:30:26 PM
Thank you. I download it and put it in the folder with weather cat and told yowindow to use it but no weather data such as temperature is displayed. Is there more I need to do? Where did the yowindow.xml come from? Thanks
You have to set in WeatherCat that that file has to be translated. The WeatherCat tags has to be replaced by the real values every so many minutes.  If you look into the xml (with textedit not with word or anything like that) you see a lot of WeatherCat descriptions like STAT$TEMPERATURE:CURRENT$. They must be translated into the current temperature value before yowindow can use the file.

So Do you have WeatherCat use custom webpages?

If not please check the forum first if there is a description how to make such a file as English is not my native language and it takes some writing to explain that.
It involves these steps which should be done only once:
1. Create a folder on your desktop  or in your documents  name "tagFiles"
2. Put the input file for WeatherCat (that is the xml I gave you) into that folder
3. Create a folder on your desktop  or in your documents  name "processedFiles"
4.Instruct WeatherCat to put translated files in "processedFiles"
You do that in menu WeatherCat ⇒ Preferences? ⇒ On-Line ⇒ Custom Web ⇒ Main
by clicking button "Set Save Path"
5. Instruct WeatherCat to translate that file every so many minutes and put the translated version in "processedFiles"
You do that in menu WeatherCat ⇒ Preferences? ⇒ On-Line ⇒ Custom Web ⇒ Additional files
6. Instruct yowindo to read the xml from "processedFiles"

So check the forum or WiKi but these steps are relative easy to do.

Succes, Wim

Title: Re: yowindow.xml
Post by: elagache on December 30, 2013, 10:06:58 PM
Dear Chet, Wim, and WeatherCat fans,

Chet, if you have never tried to use the WeatherCat custom web system before, you might want to read the documentation that comes with the Seamonkey web templates.  It provides a detailed explanation of how to get a custom web template processed by WeatherCat and includes some helpful illustrations.

http://athena.trixology.com/index.php?topic=956.0 (http://athena.trixology.com/index.php?topic=956.0)

Cheers, Edouard
Title: Re: yowindow.xml
Post by: Chet on January 02, 2014, 06:56:43 PM
I am trying your directions and creating custom web pages, but weather cat is not replacing the tags in yowindows.xml. I do not understand where I tell weather cat to put the yowindows.xml after it replaces the tags. Sorry for my thickness! [rainyluck]
Title: Re: yowindow.xml
Post by: wurzelmac on January 02, 2014, 07:33:06 PM
Hi Chet,

maybe the attached Screenshot will shed some light on this one.  :)

HTML Quelle: Hier den Pfad zu dem Ordner eingeben, wo du deine ganzen "Custom-Web" Seiten ablegen solltest. WeatherCat wird diese verarbeiten und dann im Ordner Zielordner sichern. Der Inhalt dieses Ordners wird an deinen Webspace hochgeladen.

Cheers,
Reinhard
Title: Re: yowindow.xml
Post by: JosBaz on January 03, 2014, 09:06:36 PM
Hi Chet,

Other than WC recessing the XML file, there are a few other pieces to the puzzle before the yowindow is running on your website:
1 - Go here to get the HTML code for your we site generated: http://yowindow.com/weatherwidget.php?locale=en_US
2 - Use TextWrangler or similar to edit the HTML generated to your liking. To ensure the widget will show your weather station data, you need to change this:
The line after param name="flashvars" needs to include --> current_weather_url=http://www.yourwebsite.com/yowindow.xml
3 - You now need to put a cross domain.xml in your website's root directory. Read here how to do this: http://yowindow.com/widget_and_pws.php

This should do it. Hope it helps.

Jos
Title: Re: yowindow.xml
Post by: Chet on January 04, 2014, 02:36:30 PM
Well, I finally got weather cat to process the yowindow.xml (below is the contents of the processed yowindow;xml. However, yowindow still says "no weather!

<!-- Daisendorf Am G&#228;rtlesberg 4 Jan 2014 3:31 PM -->
<!--YOWINDOW XML - PWS SPECS WeatherCat  version: 2.30 date: 2013-12-24 14:56:26 -->
<!-- Remove auto_update section if wanting the default, otherwise in seconds -->
<!-- Remove snow section if not inputting snow -->
<!-- Remove the uv and solar tags if those sensors aren't present -->
<response>   
  <current_weather>
    <auto_update>
      <interval value="300"/>
    </auto_update> 
    <temperature unit="&#176;F">
      <current value="40.8"/>
      <feels_like value="38.8"/>     
    </temperature>   
    <humidity value="97"/>
    <pressure value="29.51" unit="inHg" trend="0.01"/>
    <wind>
      <speed value="1" unit="MPH"/>
      <gusts value="3"  unit="MPH" />     
      <direction value="96" />
    </wind>
    <sky>
      <precipitation>
        <rain>
           <daily_total value="0.01%"  unit="in"/>
        </rain>    
      </precipitation>
    </sky>
    <uv value="0.0"/>
    <solar energy="0"/>   
  </current_weather>
</response>
Title: Re: yowindow.xml
Post by: JosBaz on January 05, 2014, 02:27:44 PM
I agree the yowindow documentation and instructions could be improved. The yowindow forum is maybe the good location for suggestions in this area.
Anyway, you have made progress  :) If it says 'no weather' it probably can't find the weather data. Have you adjusted the flashvars to make yowindow pick up your weather stations values from your website (step 2 in my earlier message)?

Is there a URL you can share so we can take a look?

Jos
Title: Re: yowindow.xml
Post by: Chet on January 05, 2014, 02:30:40 PM
I am simply wanting yowindow to read the data from my local weather station. I do not have a web site. Yo window is not reading the data in the yowindo.xml weather cat is creating. [rainyluck]
Title: Re: yowindow.xml
Post by: wvdkuil on January 05, 2014, 03:03:50 PM
I am simply wanting yowindow to read the data from my local weather station. I do not have a web site. Yo window is not reading the data in the yowindo.xml weather cat is creating. [rainyluck]
i hink this     http://yowindow.com/pws_setup.php    is all you need then.
Succes, Wim
Title: Re: yowindow.xml
Post by: Chet on January 05, 2014, 03:42:19 PM
I am sorry, but that is the point. I have repeatedly pointed yowindow to the xml locally and it is still not reading it. Above, you can see the yowindow.xml weather cat creates.
Title: Re: yowindow.xml
Post by: wvdkuil on January 05, 2014, 03:49:22 PM
I am sorry, but that is the point. I have repeatedly pointed yowindow to the xml locally and it is still not reading it. Above, you can see the yowindow.xml weather cat creates.
The only "strange thing" i see in the xml example is that all is is imperial units. Normally yowindow is more oriented to C, mm, hPa and so on.  And I would expect your YoWinwow also as you are in Germany.
But the Yowindow gadget handles that, probably the screensaver also.

You could check the FAQ and forum of yowindow if some else has the same problem. As this has probably nothing to do with WeatherCat.

I will install the yowindow screensaver myself and be back in an hour.
Wim
Title: Re: yowindow.xml
Post by: Chet on January 05, 2014, 03:54:41 PM
Thank you for your efforts! I believe you gave me the yowindow.xml I am using now.
Title: Re: yowindow.xml
Post by: wvdkuil on January 05, 2014, 04:15:05 PM
Thank you for your efforts! I believe you gave me the yowindow.xml I am using now.
Well i installed and yowindow is reading the yowindow.xml generated by my my WeatherCat.

As the online "how to'  http://yowindow.com/pws_setup.php  is using windows file pointing, my xml location is coded in the step  6 as /Users/wvdkuil/Desktop/processedfiles/yowindow.xml

I also copied the xml you posted and it works also, it is translated to my native C,mm,hPa

So carefully check your YoWindows settings, especially
1. the path to the file must be in the  unix way /Users/YourName/location of the file/yowindow.xml
2. You must point to the translated yowindow.xml NOT the one with the tags.

Succes, Wim
Title: Re: yowindow.xml
Post by: Chet on January 05, 2014, 04:22:46 PM
Please send me the xml your weathercat generates. Do I need to change weather cat to output as metric (C)? If so, where would I do that?
Title: Re: yowindow.xml
Post by: wvdkuil on January 05, 2014, 04:29:07 PM
Please send me the xml your weathercat generates.
File is attached, unzip and test.
You can always get a fresh one from http://www.weerstation-leuven.be/weather2/uploadWC/yowindow.xml (http://www.weerstation-leuven.be/weather2/uploadWC/yowindow.xml)
Quote
Do I need to change weather cat to output as metric (C)? If so, where would I do that?
No, Yowindow takes care of that.
I tried your xml, I copied it from your post a few days ago.
It displays nicely in the yowindow screensaver on my Mac.

Succes, Wim
Title: Re: yowindow.xml
Post by: Chet on January 05, 2014, 04:32:38 PM
It is solved!! The problem was that yowindow unit setting was for Centigrade. As soon as I changed to to Fahrenhite, it worked! Thanks, so much for your help. The clue was your mentioning the centigrade issue you saw in my yowindow.xml

 [snow]