• From frold, original thread

    Regarding weather:
    I thought about a integration of the Weather Posting Plugin found herE: http://ww.wp.xz.cn/extend/plugins/weather-postin/ This way weather data is automaticly inserted in a new post πŸ˜‰

    The problem is I wasnt able to get it to work for eg. Denmark, where I live. I should have weather data for all countries – but I wasnt able to fix it :S

    This blog is using it when there is posted in the Categori: Runners Log: http://wannaberunner.com/ See the end of every post where you find data like:

    Weather conditions during run:

    * Temperature: 76Β°F;
    * Humidity: 87%;
    * Heat Index: 75Β°F;
    * Wind Chill: 76Β°F;
    * Pressure: 30.04 in.;

Viewing 15 replies - 16 through 30 (of 62 total)
  • Thread Starter TheRealEyeless

    (@therealeyeless)

    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

    Nice research πŸ˜€

    Thread Starter TheRealEyeless

    (@therealeyeless)

    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

    Thread Starter TheRealEyeless

    (@therealeyeless)

    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

    Thread Starter TheRealEyeless

    (@therealeyeless)

    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?

    Thread Starter TheRealEyeless

    (@therealeyeless)

    (…)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 πŸ˜€ …

    Thread Starter TheRealEyeless

    (@therealeyeless)

    ok, WOEID is now being saved, finally I got how this DB is working ^^

    May you verify that?

    Cheers Eyeless

    Thread Starter TheRealEyeless

    (@therealeyeless)

    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 πŸ˜€

    Thread Starter TheRealEyeless

    (@therealeyeless)

    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! πŸ™‚

    Thread Starter TheRealEyeless

    (@therealeyeless)

    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

Viewing 15 replies - 16 through 30 (of 62 total)

The topic ‘[Plugin: Runners Log] Weather integration’ is closed to new replies.