Meteoalarm script Modded by Henkka

Hi Ken thanks for reply.

When ./meteoalarm.txt script stops:

when
./clientraw/wd-ajax-ml/meteoalarm-.txt I have some warning texts (see att) and chmod error
or here
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wxradar5.php?force=1

so something is wrong with the relative path #-o ?


Hi Ken,
Is it possibile to use debugging tools for this page: http://www.meteocarmignano.it/wxnexstorm.php
Because this script seems to register half strikes than the real.
Regards,

Alessandro

Hi Alessandro,

Unfortunately, my remote debugging tools can look at generated HTML, CSS and JavaScript, but have no visibility to the underlying PHP, Java or Flash producing output on the page … so, I’ve no visibility as to why the script seems to register half the strikes. Sorry…

Best regards,
Ken

Hi guys!

I still have the same problem of few days ago…no warnings, despite I’m using an area where there are active warnings :frowning:
I’ve tried lot of different areas with active warnings…but no results :frowning:

The script makes always a meteoalarm-.txt file like this:

404 Not Found

Not Found

The requested URL /0/0/IT009-Toscana.html was not found on this server.


Apache/2.2.3 (CentOS) Server at meteoalarm.eu Port 80

…I’ve really tried a lot of areas, always with the same result.

That looks like an incomplete path on the request.

The URL (that works) is http://meteoalarm.eu/it_IT/0/0/IT009-Toscana.html … somehow the script is stripping off the /it_IT from the URL before doing the request.

Hi!

Look around line 127.

Change the code from:

$EUA_URL = preg_replace('|meteoalarm.eu/[^/]+/|',"meteoalarm.eu/$EUA_lang/",$EUA_URL);

to

$EUA_URL = preg_replace('|meteoalarm.eu/[^/]+/|',"meteoalarm.eu/it_IT/",$EUA_URL);

…and the script will work fine!
Regards,

Alessandro

Grazie mille Alessandro!
Yesterday I was going mad with this script, I tried every area with active warning ehehehe :slight_smile:

…grazie davvero :slight_smile:
…and also thanks Henkka for your perfect work :slight_smile:

Ok…guys I’m so sorry but I’ve got another question :smiley: :smiley: :smiley:

Is there a way to show the description of the warning in the box? not only the icon…for example: now the original meteoalarm script by Ken says “Temperature massime estreme” as a little explanation about a warning for the hot temperature in my area, is it possible to show the complete sentence in addition to the icon in the Henkka script?

thank you,
Alex.

@ Alex
credo dipenda dal servizio Meteolarm, infatti se guardi gli avvisi che ci sono sul mio sito http://meteomincio.altervista.org ci sono delle striminzite descrizioni dell’ avviso meteo, provato anche in Veneto ed

Hi all,

There have been some issues with

-tags in the script, in some cases it worked OK, in some cases it messed up the site with too many/too less
's.
Anyhow, seems to work on my site now. The zip is updated with that version.

Regarding cUrl-issue… That failing tag can be removed pretty saftely i think. Its just so it follows possible redirects if exists (The snippet was a copy/paste from that i use in NWN masterscript) :slight_smile:

Henkka

I downloaded the new zip file but it does not show the description of the warning in the box :frowning:


[quote author=Meteomincio link=topic=52982.msg451427#msg451427 date=1343919198]
@ Alex
credo dipenda dal servizio Meteolarm, infatti se guardi gli avvisi che ci sono sul mio sito http://meteomincio.altervista.org ci sono delle striminzite descrizioni dell’ avviso meteo, provato anche in Veneto ed

I have finally got this to work after reading through this post. And everything is fine except I don’t have the name of the area following the warning in the dropdown. www.mad-weather.com Also when I add two areas they are not underneath each other, but slightly offset. Maybe a css issue?
Would it be possible to have 3 areas? We are a small island that has now been divided into three areas by MeteoAlarm.


As there were some warnings in Finland I set this up using two Finnish areas and it worked perfectly.
I then changed the area to one in Switzerland and the only issue I have is the region area does not show in the dropdown box. I’m sure this is only something minor but a little beyond me.
Great script though and I will continue fiddling until I can fathom how to make it work for me.


Hi

Can anyone help me.
This page does not show warnings, and we have snow warning now :slight_smile: :

This page is my meteo php link:
http://www.herlev-vejret.dk/meteoalarm/meteo.php

Link to my cache:
http://www.herlev-vejret.dk/meteoalarm/cache/meteoalarm-dk.txt
and CHMOD is 777 on cache files.

Attachet my 2 php files

Best regards
Steffen
From Denmark


meteo.php.txt (15 KB)

wxadvisory.php.txt (3.35 KB)

Hi Steffen,
your $multiwarn should =true
and on lines 119 and 122 change $EUA_lang to da_DK
Delete the cache file that has been generated, it will generate a new one. Should look like meteoalarm-.txt
I don’t use the same cache file for the advisory page as for the meteo.php script, for me it didn’t work at all.
Rosalind

Hi

I have now tried it, but it did not help :slight_smile:

Steffen

What is the text in your cache file?

Link to my cache:
http://www.herlev-vejret.dk/meteoalarm/cache/meteoalarm-dk.txt
I have set line 119 and 122 back again.

Lines 18 and 19 remove the ./ before meteoalarm. On one you have two …