Page 1 of 1

Multiple locations on widget

Posted: Tue Mar 22, 2011 5:40 pm
by gas
Hello all,
Is it possible for my blog widget to have weather for multiple locations? Like in the desktop version.
Also is it possible to have a custom background for each location?

Thank you in advance

Re: Multiple locations on widget

Posted: Tue Mar 22, 2011 6:44 pm
by Mallorca
Hi Mr. "gas" ... (no name?), welcome on our bord.

to your first question:
first of all: please use the search function and you will find this: http://yowindow.com/forum/viewtopic.php ... 2596#p9307
Is it really too hard to use this function? I belief 90% of this basic questions are answered in the past.

To your second question: no, it is not possible. How should the code for changing the location find a link to a different personal landscapes pic? Any idea? So let us know.

Werner

Re: Multiple locations on widget

Posted: Tue Mar 22, 2011 6:55 pm
by gas
Hi Mallorca,
thanks for the useful reply. I did use the search function but obviously didn't use the correct keywords -don't be so hasty to judge please. And 'gas' is my username. I did fill the "Name' field with my actual name (Kostas) and i thought that'd show up..
Nevertheles Thank you for your time.. the answer was useful but still doesn't answer my question.. as far as i read your referrence i didn't find how to include more than one city for the widget
cheers :)

Re: Multiple locations on widget

Posted: Tue Mar 22, 2011 7:46 pm
by countryroads
Hi Kostas,

The original widget code will display one location only. Werner has directed you to the new location chooser of the widget which allows you to select what location to display on the widget.

Before the new location chooser, you could set up a website the way I have. My websites let you select a location webpage with YoWindow, radar, and PWS's all for that location. You can look at my websites to see if they might help you out. But there is another website for you to look at. Look at http://home.surewest.net/donjr. This website has a drop down menu allowing you to select whatever location that you would like to see on the widget.

Hopefully this information helps you out.

Marty

Re: Multiple locations on widget

Posted: Tue Mar 22, 2011 8:02 pm
by ikarus1969
Maybe such features can be implemented via an extended ywl-file

today the ywl looks like this:

Code: Select all

  <?xml version="1.0" encoding="UTF-8"?>
    <landscape name="Landscape 1" type="picture" id="id_landscape_1">
      <data horizonLevel="268" src="landscape_1.png">
        <about>some explaining text</about>
      </data>
    </landscape>
an extended version could look like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
  <item-change-interval value="60" unit="seconds" />
  <item>
    <landscape name="Landscape 1" type="picture" id="id_landscape_1">
      <data horizonLevel="268" src="landscape_1.png">
        <about>some explaining text</about>
      </data>
    </landscape>
  </item>
  <item>
    <landscape name="Landscape 2" type="picture" id="id_landscape_2">
      <data horizonLevel="268" src="landscape_2.png">
        <about>some explaining text</about>
      </data>
    </landscape>
  </item>
  <item>
    <landscape name="Landscape 3" type="picture" id="id_landscape_3">
      <data horizonLevel="268" src="landscape_3.png">
        <about>some explaining text</about>
      </data>
    </landscape>
  </item>
if the interval = 0 then the first landscape will be displayed like today.
The ywl file can serve as a good source for some extended features. I'm sure there many user have good ideas how the ywl-file can be modified in this way.
It can serve as a place where you define landscape for spring, summer, fall/autumn, winter:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
  <item-change-interval value="60" unit="seconds" />
  <item>
    <landscape name="Landscape 1" type="picture" id="id_landscape_1" season="spring">
      <data horizonLevel="268" src="landscape_1_spring.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 1" type="picture" id="id_landscape_1" season="summer">
      <data horizonLevel="268" src="landscape_1_summer.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 1" type="picture" id="id_landscape_1" season="fall">
      <data horizonLevel="268" src="landscape_1_fall.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 1" type="picture" id="id_landscape_1" season="winter">
      <data horizonLevel="268" src="landscape_1_winter.png">
        <about>some explaining text</about>
      </data>
    </landscape>
  </item>
  <item>
    <landscape name="Landscape 2" type="picture" id="id_landscape_2" season="spring">
      <data horizonLevel="268" src="landscape_2_spring.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 2" type="picture" id="id_landscape_2" season="summer">
      <data horizonLevel="268" src="landscape_2_summer.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 2" type="picture" id="id_landscape_2" season="fall">
      <data horizonLevel="268" src="landscape_2_fall.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 2" type="picture" id="id_landscape_2" season="winter">
      <data horizonLevel="268" src="landscape_2_winter.png">
        <about>some explaining text</about>
      </data>
    </landscape>
  </item>
  <item>
    <landscape name="Landscape 3" type="picture" id="id_landscape_3" season="spring">
      <data horizonLevel="268" src="landscape_3_spring.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 3" type="picture" id="id_landscape_3" season="summer">
      <data horizonLevel="268" src="landscape_3_summer.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 3" type="picture" id="id_landscape_3" season="fall">
      <data horizonLevel="268" src="landscape_3_fall.png">
        <about>some explaining text</about>
      </data>
    </landscape>
    <landscape name="Landscape 3" type="picture" id="id_landscape_3" season="winter">
      <data horizonLevel="268" src="landscape_3_winter.png">
        <about>some explaining text</about>
      </data>
    </landscape>
  </item>

I know there are many ideas but where's the time to implement them? :unknown:

Re: Multiple locations on widget

Posted: Fri Mar 25, 2011 7:15 am
by par
Some day, some time... :)