Get Temperature Into Javascript Variable?

YoWindow widget Questions, Suggestions and Bugs
Post Reply
robindean
Posts: 3
Joined: Tue Sep 17, 2013 6:12 am
Name: Groove Daddy

Get Temperature Into Javascript Variable?

Post by robindean »

I have a motorcycle blog. It's not just any motorcycle blog. It's THE SUPER-SLICK, ULTRA-BADASS MOTORCYCLE MEGA-BLOG (of incredible power).

No, really! Here's proof: http://tssubmmboip.blogspot.com/

Anyhow, I use YoWindow as a way to help riders pick their gear out for the day. We gotta stay safe but too cold is too cold and too hot is too hot.

I plan on devising a script that lists outfits based on the temperature. Right now, I have the entire list (scrollable) presented. I'd rather only show what is pertinent to the current temp.

Is there a way, via javascript, for me to get the temperature from YoWindow into a javascript variable?
User avatar
par
Posts: 8627
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Get Temperature Into Javascript Variable?

Post by par »

Dear Robin, YoWindow is just a presenter of the weather it takes from the internet.
We do not provide the weather, but rather take it from the weather providers.
I would suggest you to use existing current weather data providers to display the weather on your blog.
For example Open Weather Map
http://openweathermap.org/API
Get YoWindow weather app for your phone or tablet.

Image Image Image
robindean
Posts: 3
Joined: Tue Sep 17, 2013 6:12 am
Name: Groove Daddy

Re: Get Temperature Into Javascript Variable?

Post by robindean »

So, your saying that your widget, which already has the data collected and presentable, doesn't allow for document.getElementById('yowindow').getVariable('current_temp'). Note that this is just a concept example.

Instead, even though your code has already done the work, I should use another script to do it again.

Already done.

Shame, though. Having to do the same thing twice is inefficient. Also, I'm already aware that you're not a weather service provider. I simply wanted to display outfit suggestions below your widget, which already displays the current temp clearly.

Oh well.
User avatar
par
Posts: 8627
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Get Temperature Into Javascript Variable?

Post by par »

But why don't you like the temperature displayed inside the widget?
Get YoWindow weather app for your phone or tablet.

Image Image Image
robindean
Posts: 3
Joined: Tue Sep 17, 2013 6:12 am
Name: Groove Daddy

Re: Get Temperature Into Javascript Variable?

Post by robindean »

At no point did I say I didn't like how the widget looks or how the information is presented. You assumed this. I simply requested a way to grab the temperature from the widget so that I may list out the appropriate riding gear to wear based on the weather.
User avatar
par
Posts: 8627
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Get Temperature Into Javascript Variable?

Post by par »

Wow, that's a clever idea.
I think you are right, we need to make the temperature available outside the widget.
But this feature will take time to make.
Get YoWindow weather app for your phone or tablet.

Image Image Image
Post Reply