Meteoalarm script Modded by Henkka

Thank you Henkka

Got this working with the Alt-Dashboard as well - slightly changed the settings in the warnings.css - the initial warning now appears over the page banner and when you click on the show the actual warning is displayed a bit further down the page.

Many thanks once agains

Phil

Hi guys,
i’ve installed the latest version but it doens’t show anything on my Homepage.
I’ve choiced an actual warning to test but here is the results:
http://www.meteocarmignano.it/meteo.php

Any ideas?
Regards,

Alessandro

Have you made sure the cache location is correct - with mine I had to add ./ to the front of cache setting. Also it takes about 15 mins or so to populate the two text files

Hi Phil,
like this?

# create a cache-folder and chmod it to 0777.
$EUAcacheName = "./cache/meteoalarm.txt"; // prototype for path/filename for cache file
$Sea_EUAcacheName = "cache/sea-meteoalarm.txt";
# note: $EUAcacheName will be changed to -$Lang.txt (like -en.txt) to allow languages to have unique cache files.
#
$EUArefetchSeconds = 60;  // refresh every hour

I had it without dot before…i’ll wait 15 minutes…
Thanks,

Alessandro

Thats it Alessandro - that is how mine is working

Phil

No lucky Phil :frowning:
I’ve an alarm in cache folder now, i’ve attached txt file…but no alarms on my Home:

Any ideas?

I’ve insert script like this:

Head section:

<link rel="stylesheet" type="text/css" href="warnings.css" />
<script src="jquery.comb.min.js"></script>

Body section:

<?php
$frontpage = false;
include_once 'meteo.php';
?>

Is it correct?
Regards,

Alessandro


meteoalarm-en.txt (9.48 KB)

Morning Alessandro

I added

<?php include 'meteo.php'; echo $htxt; ?>

into the Alt-Dashboard at line 360 (I suspect it should be about line 340 but I should up the Meteo rainfall radar and a webcam image first)

I also changed the warnings.css to

.malarmbox {font-family: Verdana;position:fixed;top:50px;left:260px;line-height:20px;width:865px;background-color:#FBEC88;border:1px solid #FAD42E;padding:4px;clear:both;font-size:12px;}
.malarmmore{display:none;position:fixed;center:50px;left:375px;width:745px;background-color:#FDF6C7;border-bottom:1px solid #FAD42E;border-left:1px solid #FAD42E;border-right:1px solid #FAD42E;padding:4px;clear:both;font-family: Verdana;font-size:12px;}

I know nothing about CSS but the settings work for me

Do you mind if I send you a pm about how you got the WXsim forecast embedded at the top of your webpage?

Phil

Sure! :wink:

Same problem here as Alessandro…everything seems to work properly but nothing appears :frowning:

Work in progress…stay tuned :wink:

Noted one thing when looked around n MA’s site. There may come more changes as not all warnings works even on their site yet.
For example Estonian warnings shows up on European/country map but no data on area-page, and theese worked before the changes.
Also ex. Sweden, whats on map seems to have coastal warnings, do not show up yet when compared with their SMHI-warnings.

Ciao Alessandro,
I’m tuned
but I understand nothing :? :wink:

Hi Henkka,
are you working on new version?
Because this version doesn’t work…i’ve tried all configurations but without success!
Thanks for your time,

Alessandro

@Meteomincio
Hi Paolo!!!
Stay tuned :wink: :wink: :wink: :wink: xche’ questo ora come ora non funziona :smiley: :smiley: :smiley:

Is there anyone who got the latest meteoalarm.zip files working within the

are of Ken True’s World Template? I’m struckling in getting the warning box at the top of this area: http://www.montauroux.info/meteoalarm.php and can use some expert guidance.
Noted that others are referring to $frontpage=true, which I can’t locate in the latest meteo.php. Are we mixing different versions on the current forum?
rgds
Dick

Probably doesn’t help but if you have a quick look at my website (www.carrowhawny.com) I have the metro.php working - the warning is valid until 21:00hrs so it may disappear. The formatting may be out (I use Safari ) but it is defiantly working (albeit with the wrong area of Ireland active). The only changes made to the script were the ones I have identified above.

Phil

Hi Guys,

First @ Henkka thanks for sharing another beautiful script with us. :slight_smile:
However I have a problem to get working it. When I open the onpage.php for the first time I get 2 errors:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /sites/leudalweer.nl/www/meteo.php on line 295

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /sites/leudalweer.nl/www/meteo.php on line 295

Looking in the cache dir (permission also set to 0777) seen the 2 files: meteoalarm-.txt & sea-meteoalarm-.txt ( both size 1kb)


Text in the meteoalarm-.txt

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /0/0/FI032-Varsinais-Suomi.html was not found on this server.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.meteoalarm.eu Port 80</address>
</body></html> 

And for sea-meteoalarm.txt

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /0/0/FI811-Sea_of_Archipelago.html was not found on this server.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.meteoalarm.eu Port 80</address>
</body></html>

Then when I refresh the onpage.php the above warnings does

are you working on new version? Because this version doesn't work......i've tried all configurations but without success!
Why should I?? Because it deffinitely works as it is! Have been in action with active warnings on my site since release and works perfect.

As i mentonied in my last post, there are areas what shows up with active warnings on MeteoAlarm map but has no data on area-page so it seems still be bugs/work in progress on meteoalarm.eu and those can’t we do anything about!

Henkka

@Peter

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /sites/leudalweer.nl/www/meteo.php on line 295

Its yuor webhosts settings what sucks.

Henkka

Oow Henkka did’t know that the problem would lay at my webhost. I will submit the problem there. Thanks for the tip. :slight_smile:

Peter.

Hi guys,
i’ve an alarm now (http://www.meteocarmignano.it/wxmeteoalarm.php) but blank page here: http://www.meteocarmignano.it/onpage.php
Any ideas?
Regards,

Alessandro