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.
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
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
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.
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)
If the problem persists after uploading the ywl again:
Remove the yowindow gadget from your wsStartPage.php
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,
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
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