Widget: custom units, custom inspector, JavaScript API
Posted: Wed Mar 30, 2011 1:34 pm
Hello, everybody!
Good news for anyone who have added YoWindow weather widget to a page or blog.
We have added the following two features, they were requested a lot.
1. Ulmitate unit-system control.
You can choose whatever units you wish to represent the weather.
Use our new units chooser on widget setup page
You will find 4 predefined unit systems: US, Metric, UK and Russia
I don't know about any other unit systems on Earth.
So please let me know if in your country the unit system is different from any of them.
Just reply to this post.
Choose "Custom..." option to setup your own unit system if you like.
The unit system is detected automatically from the settings of your browser.
You can setup unit system manually with flashvars in HTML.
See complete list of new flashvars in
widget parameters (units).
2. Customize Inspector contents.
Add or remove items in Inspector.
Just like you used to in YoWindow desktop edition.
You can add Astronomy section or remove all default items except temperature.
To setup Inspector look, use flashvars,
see widget parameters (inspector).
3. Control YoWindow widget with JavaScript.
There are some interesting things you can do with JavaScript
1. Create several buttons to select your favorite locations inside the widget.
2. Let the visitors to change the landscape.
3. Your own time navigation.
4. Let the visitor to control unit system.
...
Take a look at Location chooser and widget example.
If you are familiar with JavaScript programming, I'm sure you will get an idea how to communicate to YoWindow widget.
For a reference of the available methods see API remarks on widget parameters page.
I hope to write a small tutorial on the subject later on.
News from the kitchen.
We are working really hard although you don't see it.
Expect YoWindow toolbar for your browser very soon!
New animated landscape will be available in 2 - 4 weeks.
Pasha
Good news for anyone who have added YoWindow weather widget to a page or blog.
We have added the following two features, they were requested a lot.
1. Ulmitate unit-system control.
You can choose whatever units you wish to represent the weather.
Use our new units chooser on widget setup page
You will find 4 predefined unit systems: US, Metric, UK and Russia
I don't know about any other unit systems on Earth.
So please let me know if in your country the unit system is different from any of them.
Just reply to this post.
Choose "Custom..." option to setup your own unit system if you like.
The unit system is detected automatically from the settings of your browser.
You can setup unit system manually with flashvars in HTML.
See complete list of new flashvars in
widget parameters (units).
2. Customize Inspector contents.
Add or remove items in Inspector.
Just like you used to in YoWindow desktop edition.
You can add Astronomy section or remove all default items except temperature.
To setup Inspector look, use flashvars,
see widget parameters (inspector).
3. Control YoWindow widget with JavaScript.
There are some interesting things you can do with JavaScript
1. Create several buttons to select your favorite locations inside the widget.
2. Let the visitors to change the landscape.
3. Your own time navigation.
4. Let the visitor to control unit system.
...
Take a look at Location chooser and widget example.
If you are familiar with JavaScript programming, I'm sure you will get an idea how to communicate to YoWindow widget.
For a reference of the available methods see API remarks on widget parameters page.
I hope to write a small tutorial on the subject later on.
News from the kitchen.
We are working really hard although you don't see it.
Expect YoWindow toolbar for your browser very soon!
New animated landscape will be available in 2 - 4 weeks.
Pasha