Multiple locations on widget

Any questions? Any answers?
Post Reply
gas

Multiple locations on widget

Post 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
User avatar
Mallorca
Posts: 1757
Joined: Sun Jul 11, 2010 8:59 am
Name: Werner Heidotting
Location: Son Servera, Mallorca, Spain
Contact:

Re: Multiple locations on widget

Post 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
gas

Re: Multiple locations on widget

Post 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 :)
User avatar
countryroads
Posts: 8844
Joined: Tue Apr 27, 2010 3:38 am
Name: Marty
Location: Mansfield, Ohio USA
Contact:

Re: Multiple locations on widget

Post 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
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Multiple locations on widget

Post 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:
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Multiple locations on widget

Post by par »

Some day, some time... :)
Get YoWindow weather app for your phone or tablet.

Image Image Image
Post Reply