ok, thanks, but I have some new information here. Since I didn’t want to mention Yahoo in everey single blog entry, I wrote an email to Yahoos developement center two days ago when I found the API. In this mail I asked whether it would be enough to mention yahoo when a new blog entry is entered and in the configuration panel (In my opinion both is obvous since I need to enter the address for each blog entry and I can activate weather data in the admin area) and not to show it in every blog entry.
And some minutes ago I received the answer and I can do it this way π
Cheers Eyeless
Sorry for getting off so fast earlier, but I was a bit in a hurry :/
I put up a developement version online, now there is a point weather settings where you can insert your WOEID. Depending on this all information is queried from Yahoo (and shown below).
Next to tis it is possible to activate and deactivate temperature for each run in the metabox…this is also luckily working.
Next steps would be to set the used unit corresponding to the selected units in admin, Miles->Fahrenheit, Meters->Celsius. And to show the user what the system thinks what the temperature is currently.
Cheers Eyeless
Ok, Unit-fun is working π
Cheers Eyeless
Cool the admin seems to work perfect I get:
city: Odense
humidity: 83%
wind chill: 18
wind direction: 190
wind speed: 14.48
temperature: 18
weather: Mostly Cloudy
I dont know if this is bug or not?
If you first set your WOEID and go to Runners Log Setting and Enable “Enable Temperature Measurement” it delete the WOEID …
IF we want temperature to be auto-enabled when the user installs the plugin you can add it to: function runnerslog_activate in runnerslog.php
If you first set your WOEID and go to Runners Log Setting and Enable “Enable Temperature Measurement” it delete the WOEID …
That’s a bug, I will have a closer look at saving options. Since the temperature checkbox in the admin panel and the weather settings aren’t connected I think that I am missing something for storing.
IF we want temperature to be auto-enabled when the user installs the plugin you can add it to: function runnerslog_activate in runnerslog.php
Ah ok, I think we should do this, but get it ready first π
Cheers Eyeless
Take your time – it was not criticism, it was just a bug I find when I tried to test it…
Keep up the good work..
Another thought. Should the weather data be in the meta-box as the other date or should it be in the footer of the post like the weather postin’ plugin?
What is your plan?
(…)it was not criticism, it was just a bug I find when I tried to test it…
It’s absolutely ok, I am not offended! I am happy that you found this bug, since I wouldn’t at this time π
Another thought (…)
I would put it in the metabox, since then I think it’s easier to aggregate the information (maybe it’s possible to gain the perfect temperature for training if comparing runs and temperature or sth. like that….) and currently it’s the only way I know to save it to a certain blogpost π
Would you prefer it in another way? (I currently don’t see any real advantage in neither of this two variants)
Cheers Eyeless
We can start having it in the metabox π
Im at #wordpress if you have time and I need help π …
ok, WOEID is now being saved, finally I got how this DB is working ^^
May you verify that?
Cheers Eyeless
Ok did some redesign at the weather options. Currently I just designed the backend but my idea is the following:
You can adjust what shall appear in the metabox for each post and activate seperately the Yahoo Weather which may insert values for each weather field.
What do you think?
Cheers Eyeless
Yeah, it saves the WOEID and some times not…
Eg if you set in a WOEID and saves it. Return to the runnerslog setting and “Enable Weather Measurement” the data is saved. But it is deleted again if you want to:
Enable Temperature Measurement
Enable Windchill Measurement
Enable Humidity Measurement
Enable Textbased Weather Description
Enable Weather Data from Yahoo
And dont put in a WOEID when you are enabling the above… Do you get the same result?
Regarding your redesign and idea I like it π
yes, I think the problem is that you unsed it. I mean if you enter no WOEID it sets WOEID = “”, I think I will just enter the current WOEID in this field when entering the weather settings.
Thanks for testing, π
Cheers Eyeless
Seems like a solution! π
Ok, Ready for testing, all features I wanted are in now π
Currently just a mention of Yahoo Weather is missing when entering a post, didn’t find a nice way to realize that till now.
Cheers Eyeless