Alternative ATOM Feed Alert Program

John,

I think the line height is spacing everything farther than what it should be. Before you adjust your CSS, do this first.
Open AtomSummary.php and find this line

print '<span style="font-size: 120%; line-height: 2em"><b>'.$a[0][2].' - '. $a[0][0]. '</b></span>
';

Replace it with this line

print '<span style="font-size: 120%"><b>'.$a[0][2].' - '. $a[0][0]. '</b></span>
';

After you do that, then the css can be adjusted if needed.

That doesn’t seem to have done anything. Where do you suggest that I make adjustments to the decoration?

Thanks,

John

John,

Looks fine here using IE8.

Michael

I’m seeing this issue using FireFox 3.0.11. I did bring it up in Internet Explorer and it shows fine.

John

John,

That line-height is still in your page

<span style="font-size: 120%; line-height: 2em"><b>Clay  Minnesota - MNZ003</b></span>

I don’t think changing the css will have any effect until line-height: 2em is removed.

You must of caught me after I re uploaded the AtomSummary.php and didn’t make the changes again. So where do you suggest that the css should be changed?

Thanks,

John

John,

Give me some time to figure this out. I’m at your site looking into it.

For those who are seeing the large space between the link and underline in the AtomSummary.php page, this can be easily fixed.
Open AtomSummary.php, find this and then delete it.

; vertical-align: top;

Curly

My isp Cron manager shot…


Chris,

Do you need to know what to place in your cron manager?

Michael

Indeed I do since this Cron stuff is all very new to me. Any and all help is appreciated!

CronJob Title: Call this whatever you want so you can identify it. (You may have more than one cron during the life of your site)
Command: Not sure exactly what your host wants here but the file to cron would be the following: http://www.cwksr.com/AtomFeed.php
Frequency: Not sure of what choices you have here in the drop down box but you probably want to Fetch the Feed every 15 minutes, Everyday of the week, 24 hours a day.
Minute: See frequency above

I know this is not much help but it should move you in the right direction. :slight_smile:

Edit: if you use GoDaddy.com as a host (i think you do) I’ve read that the Command should be
curl http://www.cwksr.com/AtomFeed.php

OK…I have it all set up (I think) the only item I can see that will not display is the “iconkey”…just gives me a blank page. I’m still searching for the cause

When you extracted the zip file, there is a folder called images. Did you upload the folder?

I did…SHould it go in the images folder or in the root?

OK, I am kind of lost on this one also. I downloaded the files and finished the main settings including the zones. (Do I enter both the area and county zones?)

I am using e-rice and from what I read, they do not do cron jobs. So I was trying the Scheduled Tasks route. I looked at this http://www.642weather.com/weather/wxblog/php-scripts/scheduled-http-request-windows-task-scheduler/ and I didn’t understand what I really needed to do. Is this getting the warnings? Does it download them and then upload them to my site?

I am running an earlier version of the template modified so it is php. I would like the main warning on my index page and the full advisories on my advisory page. (wx4.php)

Does anyone have time to walk me through this?

Thanks,
Dave

Dave,
The zones for your area are entered in $ZoneCounty array. For each zone entered on the left side of the arrow, the right side of the arrow is where the name of the location is entered. It is best to keep those names short because if you use the top advisory icon in the menu sidebar, the space is limited and uses the name you entered.

The purpose of the task scheduler is to perform a task at designated intervals. In this case, the task you want perform is it to run a file (AtomFeed.php) on your web site at 15 minute intervals. The only requirement is the computer you run this on needs to be on 24/7 such as a weather computer so the Windows task scheduler can run. Your compter doesn’t download anything as the file on the server does the work when the AtomFeed file is called.

You can set up your pages as you described and I can help you out with it. I’ll send you a pm.

I like the looks of this script, but I am almost out of space on my web host (e-rice). Deciding what I should delete off to use this script. I see that Michael has it working with the advisory script in his menu bar. Just got the advisory script that Michael has working. Had issues with it.

Chuck

Chris,

All the images should go in a folder called “images” in your root.

Example: http://www.cwksr.com/images/iconkey.png

Michael

Chuck,

This script is completely different than the one I was running. Got it going with no problems using e-rice. I am using mchallis’s Scheduled Tasks route to update the AtomFeed.php file. I’m not using psuedo-cron any longer.

Michael