Search code examples
jqueryapiyahoo-apiyahoo-weather-api

Remove weather of default location in zWeatherFeed jquery plugin ?


How do i remove the default location Las Palmas. I searched for the parameters that invokes the weatherfeed for Las Palmas in js file but couldn't find it. When i pass the id of my city as parameter weather of both city is displayed.


Solution

  • You must edit the yahoo city code

    <script type="text/javascript">
    $(document).ready(function () {
        $('#test').weatherfeed(['XXXX0977'], {
            forecast: true
        });
    });
    </script>
    

    the XXXX0977 is the city code you need to change.