Author Topic: Help on EWN script?  (Read 1742 times)

0 Members and 1 Guest are viewing this topic.

Offline Lee10

  • Member
  • *
  • Posts: 20
Help on EWN script?
« on: June 02, 2014, 06:57:58 PM »
Hello all,

I have found a great script from the European Weather Network but wonder how if at all possible if it can be merged into a site somehow. It is only for Europe I see and some really great features here, really interested in the maps though.

Any help would be welcome
http://www.nordicweather.net/ewnennuste.php?en

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Help on EWN script?
« Reply #1 on: June 03, 2014, 02:56:02 AM »
Hello all,

I have found a great script from the European Weather Network but wonder how if at all possible if it can be merged into a site somehow. It is only for Europe I see and some really great features here, really interested in the maps though.

Any help would be welcome
http://www.nordicweather.net/ewnennuste.php?en
The EWN scripts are very easily integrated into ones  website.
Example in aSaratoge template based website: http://www.weerstation-sauwerd.nl/wxfrc-ewn.php?lang=en#
a home build website: http://www.weerstation-assen.nl/EWNverwachting.php
and a Leuven template based website: http://www.weerstation-wilsele.be/index.php?p=53-5&wp=MH&lang=en

After registring at the EWN site you can download the scripts and test them in stand-alone mode.
Then you use an iframe on a page of your website. in that iframe the ewn script, as tested in the stand-alone mode, can than be run.

New releases are simply installed by replacing the old folder containing the scripts with the new folder.

Wim


Offline MeteoGerena

  • Member
  • *
  • Posts: 5
    • MeteoGerena
Re: Help on EWN script?
« Reply #2 on: June 14, 2015, 09:08:13 AM »
Someone can help me to form the EWN-forecast and EWN-map http://meteogerena.es

Error forescat: http://meteogerena.es/forecast.php
Error map: http://meteogerena.es/map_only.php

My from is Spain (Sevilla)

Tkanhs

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Help on EWN script?
« Reply #3 on: June 14, 2015, 10:11:14 AM »
Someone can help me to form the EWN-forecast and EWN-map http://meteogerena.es

Error forescat: http://meteogerena.es/forecast.php
Error map: http://meteogerena.es/map_only.php

My from is Spain (Sevilla)

Tkanhs
Which version are you running? The latest download is "NEW! EWN-Forecast!  Size: 258.46 KB  Updated: 25.04.2015"

The error for forecast.php
Code: [Select]
Fatal error: Call to undefined function defcountries() in /homepages/40/d503283795/htdocs/ewn_frc/ewn_frc.php on line 16When using the latest download lines 13-17 of the ewn_frc.php script look like this:
Code: [Select]
<option value="AD" data-co="Andorra">'.defcountries("Andorra").'</option>
<option value="AL" data-co="Albania">'.defcountries("Albania").'</option>
<option value="AT" data-co="Austria">'.defcountries("Austria").'</option>
<option value="AX" data-co="Aland Islands">'.defcountries("Aland Islands").'</option>
<option value="BA" data-co="Bosnia and Herzegovina">'.defcountries("Bosnia &amp; Herzegovina").'</option>
So the error should have had line number 13, or you changed the script??

===
The errors for map_only.php can be seen using "inspect" (in Chrome or FF):
Code: [Select]
Uncaught ReferenceError: jQuery is not defined   ui_autocomplete.min.js:6
Uncaught ReferenceError: jQuery is not defined   ui_slider.min.js:6
Uncaught ReferenceError: jQuery is not defined   map_only.php:743
Uncaught ReferenceError: Modernizr is not defined   ewn_frc.js:19
Uncaught ReferenceError: $ is not defined
So I think the setting in ewn_frc/ewn_frc_config.php
Code: [Select]
$jqueryload   = false;    # Should we load JQuery? (Set to false if your site loads it by default)Should be set to true for that.

Succes, Wim

Offline MeteoGerena

  • Member
  • *
  • Posts: 5
    • MeteoGerena
Re: Help on EWN script?
« Reply #4 on: June 15, 2015, 11:14:03 AM »
The map this ok http: // meteogerena.es/wxmapas.php but the ewn-forecast I cannot form it http: // meteogerena.es/forecast.php

Offline MeteoGerena

  • Member
  • *
  • Posts: 5
    • MeteoGerena
Re: Help on EWN script?
« Reply #5 on: June 16, 2015, 02:55:06 AM »
I managed to get well the EWN - pornóstico .

Now I need this  http://meteogerena.es/wrftable.php

Who helps me

Thakns