Export Template

I am trying to get simple file written with the daily forecast. I have the following in the Export Template.

[DETAILED LOOP COUNT=1]
[DETAILED FORECAST]
[/DETAILED LOOP]

The result I get is the following.

Showers and scattered thunderstorms.  Low 44?F (7?C).  Winds N at 10 to 20 mph.  Chance of rain 60%.

Note the imbedded HTML with &nbsp and Span Class. How can those be eliminated? I wish to have just a simple TXT file with the data.

Something like this interest you?

http://img169.imageshack.us/img169/3414/wwexporthq4.png

Check these topics:

http://www.singerscreations.com/forum/v … php?t=1120

http://www.singerscreations.com/forum/v … 12&start=4

http://www.singerscreations.com/forum/v … =7852#7852

If you review the code and eliminate the HTML tags you should get the text file you desire.

hth

Close

That would be great if it were all text. As I described in my initial message, I do not have any HTML tags. The result shows the &nbsp and the reference to the SPAN CLASS. I did not insert that. That ended as part of the TXT message result

I wish to create a text file with the forecast information. I then will use that txt file for another purpose. I will not be displaying it on the internet on a web page

Thanks

Karl

kb8dm, here’s a fix:
Download Weather Watcher 5.6.23a

That fix took care of the issues … Thanks. Now I have another…

Here is the export I have put together.

[DETAILED LOOP COUNT=1]
Updated:[UPDATED DATETIME]
[CRLF]
[SEVERE ALERT]
[CRLF]
Forecast:
[DETAILED FORECAST]
[/DETAILED LOOP]

What I get when it prints in TXT format is:

Updated:5/14/07 9:00 PM MDTThe tornado warning for south central arapahoe and north central elbert counties is cancelled…Forecast: Variable clouds with scattered strong thunderstorms. Storms may produce large hail and strong winds. Low 44?F (7?C). N winds at 20 to 30 mph, diminishing to 5 to 10 mph. Chance of rain 60%.

I thought that [CRLF] would add a carriage return / line feed where indicated so the text would not all run together.

Thanks again… Getting closer to what I am looking for.

Karl

[CRLF] is only available as a Log option. Come to think of it a WW Log may be more suited to your text requirements than an Export is. Have you tried a Log?

EDp

Thanks for the suggestion to use the logging function. Unfortunately that does not produce the results I want either. Here is the coding in the template.

[DETAILED LOOP COUNT=1]
Updated:[UPDATED DATETIME]

[CRLF][SEVERE ALERT]

[CRLF]Forecast:
[DETAILED FORECAST]
[/DETAILED LOOP]

and here is the resultant output in a text file.

Updated:5/15/07 6:25 AM MDT[CRLF][CRLF]Forecast: A few showers this morning with isolated thunderstorms developing during the afternoon. High around 60?F (16?C). Winds NE at 5 to 10 mph. Chance of rain 30%.
Updated:5/15/07 6:25 AM MDT[CRLF][CRLF]Forecast: A few showers this morning with isolated thunderstorms developing during the afternoon. High around 60?F (16?C). Winds NE at 5 to 10 mph. Chance of rain 30%.
Updated:5/15/07 6:25 AM MDT[CRLF][CRLF]Forecast: A few showers this morning with isolated thunderstorms developing during the afternoon. High around 60?F (16?C). Winds NE at 5 to 10 mph. Chance of rain 30%.
Updated:5/15/07 6:25 AM MDT[CRLF][CRLF]Forecast: A few showers this morning with isolated thunderstorms developing during the afternoon. High around 60?F (16?C). Winds NE at 5 to 10 mph. Chance of rain 30%.

Note that the [CRLF] function has no effect. For testing purposes I was running the update every minute.

My ultimate goal is to get something like this. I don’t see the Logging function doing this but I will keep trying.

Today
Mostly cloudy with a 10 percent chance of rain showers early
this morning. Highs in the lower 60s.

Tonight
Mostly cloudy. A 10 percent chance of rain showers in the
evening. Lows in the mid 40s.

Wednesday
Partly sunny. A 10 percent chance of thunderstorms in the
afternoon. Highs in the upper 60s.

Wednesday Night
Mostly cloudy with a 10 percent chance of thunderstorms in
the evening…then partly cloudy after midnight. Lows in the mid
40s.

Thursday
Mostly sunny in the morning…then mostly cloudy with a 20
percent chance of thunderstorms in the afternoon. Highs in the
mid 70s. Southeast winds 10 to 15 mph in the afternoon.

Thursday Night
Mostly cloudy with a 20 percent chance of thunderstorms in
the evening…then partly cloudy after midnight. Lows in the mid
40s.

Friday and Friday Night
Partly cloudy. Highs around 80. Lows around 50.

Saturday and Saturday Night
Partly cloudy. Highs in the lower 80s. Lows in the upper 40s.

Sunday and Sunday Night
Partly cloudy. A 10 percent chance of thunderstorms. Highs in
the lower 80s. Lows in the upper 40s.

Monday
Partly cloudy. A 10 percent chance of thunderstorms in the
afternoon. Highs 72 to 80.

:-s I’ve never worked with the Log option before but I can confirm that the [CRLF] tag doesn’t work with it any better than the Export option. :sad:

This template got me a little closer to your goal;

[code][DETAILED LOOP COUNT=1]
Updated:[UPDATED DATETIME]

[SEVERE ALERT]

Forecast: [DETAILED FORECAST]
[/DETAILED LOOP]
--------------------------------------------------------[/code]
but still not 100% and certainly not multidays. Which made me think of yet another option. The WW Detailed Forecast view. It shows more what you want and you can print it and/or print it to a file. If you don’t like the format you can change the wtp file.

The Splendid Detailed wtp file is quite complex but the version in the Classic skin isn’t (and is what I use in my Stone Soup skin), it should be easier for you to tweak to your needs.

What do ya think of this idea?

BTW Having a Retrieve Weather button on the Log and Export Option tabs would sure be convenient when playing with templates. Or make it an automatic part of the Apply buttons.

Ed,

Yep thats as close as I have been as well. Problem I see is not being able to put a CRLF behind a line to move to the next line.

I am trying to automate a weather bulletin to be sent out via Packet radio. These messages are only in text format. Using the example that I showed before, I am copying and pasting the data into the bulletin. Thats fine when I am around the keyboard to do that. If I am not, then notthing gets created.

Because the bulletins are all text based I cannot use anthing that would require a webpage to view.

Karl

Well line breaks certainly help readability but how does that make the radio sound better? I have 0 experience with Packet radio and am assuming it is similar to regular radio ie it’s audio.

Does the input to Packet radio understand escape codes like \n? Or hex codes for CR and LF?

ED,

Nope no audio. Just data… here is an example of a packet bulletin

Message # : 6491
Title : TENNESEE WX FORECAST 0508

Path: !N9PMO!N2BQF!KD4GCA!N1UAN!W1GMF!
From: W1GMF@W1GMF.#EMA.MA.USA.NOAM
To : WX@NETN

MORRISTOWN AREA ZONE FORECASTS
NATIONAL WEATHER SERVICE MORRISTOWN TN
304 AM EDT TUE MAY 8 2007

VAZ001-002-005-006-008-082000-
LEE-WISE-SCOTT-RUSSELL-WASHINGTON-
INCLUDING THE CITIES OF…JONESVILLE…WISE…GATE CITY…
ENTER = continue, A = Abort, N = Next, C = cancel paging →
LEBANON…ABINGDON
304 AM EDT TUE MAY 8 2007

.TODAY…SUNNY. HIGHS IN THE LOWER TO MID 70S. NORTHEAST WINDS
10 MPH OR LESS.
.TONIGHT…MOSTLY CLEAR. LOWS IN THE UPPER 40S. EAST WINDS 10 MPH
OR LESS.
.WEDNESDAY…SUNNY. HIGHS IN THE MID TO UPPER 70S. SOUTHEAST
WINDS 10 MPH OR LESS.
.WEDNESDAY NIGHT…MOSTLY CLEAR. LOWS IN THE MID 50S. SOUTHEAST
WINDS 10 MPH OR LESS.
.THURSDAY…MOSTLY SUNNY. HIGHS IN THE MID TO UPPER 70S. LIGHT
WINDS.
.THURSDAY NIGHT…PARTLY CLOUDY. LOWS IN THE LOWER TO MID 50S.
.FRIDAY…PARTLY SUNNY WITH A 20 PERCENT CHANCE OF SHOWERS AND
THUNDERSTORMS. HIGHS IN THE MID TO UPPER 70S.
.FRIDAY NIGHT…MOSTLY CLOUDY WITH A 20 PERCENT CHANCE OF SHOWERS
AND THUNDERSTORMS. LOWS IN THE MID TO UPPER 50S.
.SATURDAY…MOSTLY CLOUDY WITH A 30 PERCENT CHANCE OF SHOWERS AND
ENTER = continue, A = Abort, N = Next, C = cancel paging →
THUNDERSTORMS. HIGHS IN THE MID TO UPPER 70S.
.SATURDAY NIGHT…MOSTLY CLOUDY. A CHANCE OF SHOWERS AND
THUNDERSTORMS IN THE EVENING…THEN A SLIGHT CHANCE OF SHOWERS
AND THUNDERSTORMS AFTER MIDNIGHT. LOWS IN THE LOWER TO MID 50S.
CHANCE OF RAIN 30 PERCENT.
.SUNDAY…PARTLY SUNNY WITH A 20 PERCENT CHANCE OF SHOWERS AND
THUNDERSTORMS. HIGHS IN THE LOWER TO MID 70S.
.SUNDAY NIGHT…PARTLY CLOUDY. A 20 PERCENT CHANCE OF SHOWERS AND
THUNDERSTORMS IN THE EVENING. LOWS IN THE LOWER TO MID 50S.
.MONDAY…MOSTLY SUNNY. HIGHS IN THE LOWER TO MID 70S.

TNZ015>017-042-044-046-082000-
HANCOCK-HAWKINS-SULLIVAN-NORTHWEST GREENE-WASHINGTON TN-
NORTHWEST CARTER-
INCLUDING THE CITIES OF…SNEEDVILLE…ROGERSVILLE…KINGSPORT…
BRISTOL…GREENEVILLE…JOHNSON CITY…ELIZABETHTON
304 AM EDT TUE MAY 8 2007

.TODAY…SUNNY. HIGHS IN THE UPPER 70S. LIGHT WINDS.
ENTER = continue, A = Abort, N = Next, C = cancel paging →
.TONIGHT…MOSTLY CLEAR. LOWS IN THE UPPER 40S. LIGHT WINDS.
.WEDNESDAY…SUNNY. HIGHS AROUND 80. EAST WINDS 10 MPH OR LESS.
.WEDNESDAY NIGHT…MOSTLY CLEAR. LOWS IN THE MID 50S. LIGHT
WINDS.
.THURSDAY…MOSTLY SUNNY. HIGHS AROUND 80. LIGHT WINDS.
.THURSDAY NIGHT…PARTLY CLOUDY. LOWS IN THE MID 50S.
.FRIDAY…PARTLY SUNNY WITH A 20 PERCENT CHANCE OF SHOWERS AND
THUNDERSTORMS. HIGHS IN THE UPPER 70S TO LOWER 80S.
.FRIDAY NIGHT…MOSTLY CLOUDY WITH A 20 PERCENT CHANCE OF SHOWERS
AND THUNDERSTORMS. LOWS IN THE UPPER 50S.
.SATURDAY…MOSTLY CLOUDY WITH A 30 PERCENT CHANCE OF SHOWERS AND
THUNDERSTORMS. HIGHS IN THE UPPER 70S.
.SATURDAY NIGHT…MOSTLY CLOUDY. A CHANCE OF SHOWERS AND
THUNDERSTORMS IN THE EVENING…THEN A SLIGHT CHANCE OF SHOWERS
AND THUNDERSTORMS AFTER MIDNIGHT. LOWS IN THE MID 50S. CHANCE OF
RAIN 30 PERCENT.
.SUNDAY…PARTLY SUNNY WITH A 20 PERCENT CHANCE OF SHOWERS AND
THUNDERSTORMS. HIGHS IN THE MID TO UPPER 70S.

As you can see its pretty hard to read sometimes too. So parsing it out would be beneficial. Again…it is plain text no html etc as it gets sent digitally via radio.

kb8dm, the following build includes a fix to resolve the [CRLF] tag issue:
Download Weather Watcher 5.6.23c