Make your own Yowindow background picture in Leuven Template.

Hi.

In the windows version of Yowindows one can change the backround picture to your own hometown.
One can do that in the Leuven Template also.
There is a tutorial how to do that, her: http://forum.yowindow.com/viewtopic.php?f=27&t=13334

Folllowing the tutorial you make a .PNG picture, a .ywl-file and a .swf-file. The .ywl-file can be made in the windows version of Yowindow.
The .swf file is made here: http://yowindow.com/png_to_swf.php

[url=http://

]

[/url]

And from the tutorial, you edit the html file (yowindow.html) to point to the swf file and the ywl file.
The .swf file, the .PNG picture and the .ywl is put in the “Landscapes” folder.

In the default upload folder for Yowindow (in the Leuven Template), there is allredy a .swf file called “yowidget.swf”.

Question: Is the default “yowidget.swf” valid for the new bacground picture that I have created or does one need to make a new
yowidget.swf file to get the background picture to work?

I assume that the three files need to be placed in their own folder in weather2/yowidget/landscapes/
For the other standard backgrounds there is also a folder.
Lets call all files folder with the same name," vindpropell"
So inside the yowidget folder

  • airport
  • vindpropell
    [list]
  • vindpropell.ywl
  • vindpropell.swf

[li]oriental[/li]
[/list]

Then you have to point wsDashYowindow script to the correct background.
Change line 51 from

#$yow_landscape	        = 'town';    

to

$yow_landscape	        = 'vindpropell';    

That should work as there is no difference between different yowidget.swf as they are used for all different backgrounds.

If you want to test with the html generated on the yowindow site, you can point to that same yowidget.
Use the wsNewpage.php from the inc folder for that as it is the last choice in the development menu.

Succes, Wim

Wim

Reading some more i think that the shortname for a landscape seems only to be valid for the built in landscapes.

qoute from YoWindow weather widget parameters landscape

Available landscape ids: village seaside airport When you pass a URL, make sure you point widget to .ywl file, but NOT to .png image. Example: landscape=seaside Example: landscape=http://landscape.yowindow.com/landscapes/colosseum/colosseum.ywl

So you should set line 51 NOT to

$yow_landscape = 'vindpropell';  

but to

$yow_landscape = 'http://vindpropell.no/weather2/yowidget/landscapes/vindpropell.ywl';   

Wim

Hi again.
I tried yesterday to use wsNewpage.php but I didn

Sorry. I didn

[quote author=tobydude link=topic=60362.msg481637#msg481637 date=1430752522]
Sorry. I didn

I found the reference.
http://vindpropell.no/weather2/yowidget/landscapes/vindpropell/vindpropell.ywl
This is in the ywl, all references are like yo_yo_2-4 yo_2-4 and such.

Maybe you should copy the png and rename it to yo_yo_2-4.png, not vindpropell.png

<landscape id="yo_2-4_14D103BB709" type="picture" name="yo_2-4">
  <data src="yo_yo_2-4.png" horizonLevel="636">
    <about><![CDATA[]]></about>
  </data>
</landscape>

Wow!
I renamed it, as you said and “Bang!”.

The yo-yo thing was something I messed with yesterday. :slight_smile:

It works now. :slight_smile:

http://vindpropell.no/weather2

Again, thank you for the support. :slight_smile:

For the record, the tree structure for the “Landscapes” folder:

Hi
tried to get this to work for the last 3 days
it does work on my test unit “Ballaugh test unit” but on my main site all I get is the sky with moving cloudy or rain etc no picture, tried putting a yowindow folder with html file on the site but gives the save result “Ballaugh test yowindows main site” as I get in the template if I “” the link part it reverts back to village if the link is near the beginning of the line it upsets the clock show 12 instead of 24 hour now placed at end.

have tried both the normal link and the extended link as used by the graph setup in gauges in the template but as it does not appear to work for me I have reverted it back to village
not sure why a swf file is required as the ywl refers to the png

Hi.
What background picture are you going to use?
One of the default landskapes pictures , or your own?

This was the picture but I have down sized it to get on here the original is 4.4mb wondering if this is too big its within the 2880 pixel limit for swf conversion


nice picture. I see you have removed the bacground.
I have got it to work with my own picture as background in Yowindow.
I guess the best way is to show my settings in wsDashYowindow.php to show how the path to the ywl file is set.


The picture is very very very big, it needs a lot of waiting-time for your visitors. Most will go away
You should try to downsize it to so that loading (after clearing the cache) is within a reasonable 1-3 seconds for your outside visitors.
There will be no much difference in quality as the "normal’ display area is only 1048 px wide. So lowering the width and lowering the picture-quality will result in normal load times.

=== off topic
Your webcam image is coded for internal use. It is adressed with
http://192.168.0.61:8401/axis-cgi/jpg/image.cgi?resolution=640x480
which results in net::ERR_ADDRESS_UNREACHABLE
Use http://ballaugh.no-ip.biz:8401/axis-cgi/jpg/image.cgi?resolution=640x480 in the settings or better upload every minute or even less a picture (in 320x240 quality) to your site which can be used for the display in the side area and use the link for the webcam page only.

Wim

They look like what I have tried see attached
something on my main web server would seem not to like it.
at least it works on the test unit (link on yesterdays post) op hours 8am till midnight uk time

thanks for checking

Wim
I down sized the main web site file this morning will do the same on test unit
I am only using ballaugh.no-ip.biz for testing which is on my internal net but can be altered
the main site www.hc-iom.co.uk/weather2/index.php is pointed at the uploaded web cam image from the camera (http://www.hc-iom.co.uk/weather/axis.jpg)

Harold

have altered those now should work faster


yowin_settings.txt (4.34 KB)

I am confused to say the least.
The test site http://ballaugh.no-ip.biz:2081/weather2/index.php works OK.
The wsDashYowindow.php is set to correctly display the image.

The main site http://www.hc-iom.co.uk/weather2/index.php shows the normal yowindow village landscape.
Which is according to your settings.

So how can we check

something on my main web server would seem not to like it.

Be aware that the links used should be local links, so on the main site the not to the other demo site.

Also the links should be tested first.
Now the link in your attached file (previous post) http://www.hc-iom.co.uk/weather2/yowidget/landscapes/Ballaugh/Ballaugh.ywl gives a 404 not found error. Fairly difficult to check the contents then and obvious that yowindow can not display anything.

If the naming is the same as on your testserver the picture is OK
http://www.hc-iom.co.uk/weather2/yowidget/landscapes/Ballaugh/yo_Ballaugh.png

If the problem persists after uploading the ywl again:

  1. Remove the yowindow gadget from your wsStartPage.php
  2. Remove everything but yowindow from wsStartPageDemo.php and add it to the menu again.
    If you do not want it in the main menu, put it in the Development menu.
    Then we can take a look why it is misbehaving on 1 site and working nicely on another,

Wim

Hi Wim
now I took out yowindow from main site and removed as much as I could from the demo page before getting error 500’s and placed the link in development menu at the bottom.
I copied the working ywl from test unit to main server still no joy and still 404 error as you got
now the ywl file appears to be a text file with a different extension name so I converted a copy to a Ballaugh.txt file and put it in the ballaugh folder on the main server and changed the link to look for the txt file instead and look what happened this tells me that the .ywl is not a recognised extension on the main server hence the errors
at the moment the link in wsdashyowindow is pointing to the txt file so you will see the image in the window

Harold

Nice! :slight_smile: If set yow_height to 700 px in wsDashYowindow.php , it fits the screeen

Hi
will revert my start page and menu back first and adjust the height

thanks for the help from both of you

Harold

all back to normal and yowindow working
have removed the development menu I sure there is still things I need to do to it but its getting there
this script stuff is all new to me, html I was just getting to grips with

thanks

Harold