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?
Get Temperature Into Javascript Variable?
- par
- Posts: 8629
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Get Temperature Into Javascript Variable?
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
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
Re: Get Temperature Into Javascript Variable?
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.
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.
- par
- Posts: 8629
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Get Temperature Into Javascript Variable?
But why don't you like the temperature displayed inside the widget?
Re: Get Temperature Into Javascript Variable?
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.
- par
- Posts: 8629
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Get Temperature Into Javascript Variable?
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.
I think you are right, we need to make the temperature available outside the widget.
But this feature will take time to make.