custom htx file not generated

98 views
Skip to first unread message

Ugo Merlini

unread,
May 6, 2012, 1:22:53 PM5/6/12
to wv...@googlegroups.com
Hi,

tried to made a custom htx file named realtime.htx

<!--stationState-->
<!--stationCity-->
<!--stationElevation-->
<!--stationLatitude-->
<!--stationLongitude-->
<!--stationType-->
<!--stationDate-->
<!--stationTime-->
<!--sunriseTime-->
<!--sunsetTime-->
<!--moonPhase-->
<!--outsideTemp-->
<!--hiOutsideTemp-->
<!--hiOutsideTempTime-->
<!--lowOutsideTemp-->
<!--lowOutsideTempTime-->
<!--outsideHumidity-->
<!--hiHumidity-->
<!--hiHumTime-->
<!--lowHumidity-->
<!--lowHumTime-->
<!--outsideDewPt-->
<!--hiDewpoint-->
<!--hiDewpointTime-->
<!--lowDewpoint-->
<!--lowDewpointTime-->
<!--windChill-->
<!--lowWindchill-->
<!--lowWindchillTime-->
<!--outsideHeatIndex-->
<!--hiHeatindex-->
<!--hiHeatindexTime-->
<!--windSpeed-->
<!--hiWindSpeed-->
<!--hiWindSpeedTime-->
<!--intervalAvgWindSpeed-->
<!--windDirectionDegrees-->
<!--windDirection-->
<!--barometer-->
<!--baromtrend-->
<!--hiBarometer-->
<!--hiBarometerTime-->
<!--lowBarometer-->
<!--lowBarometerTime-->
<!--dailyRain-->
<!--stormRain-->
<!--monthlyRain-->
<!--totalRain-->
<!--rainRate-->
<!--hiRainRate-->
<!--hiRainRateTime-->
n.d.

I also add it html-templates.conf

#
# html-templates-classic.conf - define the HTML template files to use
for HTML
# and generic generation
#
# Note: Template expansion is performed in the order the files are listed
# in this file. Thus, files to be included in other templates should
# be listed before the templates that include them.

# File Format
#
# 1) lines beginning with '#' or <blank> are ignored
#

# Column Format
#
# 1) template file name (must be in /etc/wview/html)
#

###############################################################################
### Standard Include Macros (should be generated first)
###############################################################################

header.incx
header-big.incx
nav-buttons.incx
readings.incx

###############################################################################
### RSS Feed XML Template
###############################################################################

### Standard Weather RSS feed template - file generated is wxrss.xml and
can
### be added to any html template to add an RSS feed to that page
wxrss.xtx


###############################################################################
### Home Page Templates
###############################################################################

### Standard Home Page template
#index.htx

### Day/Night Home Pages - if you want a different homepage template
based on
### day or night, uncomment these and copy your templates to
### /etc/wview/html/index-day.htx and /etc/wview/html/index-night.htx
### respectively
index-day.htx
index-night.htx


###############################################################################
### Historical Data Templates
###############################################################################

### Standard (no extra sensors) Weather Data
almanac.htx
Current.htx
Daily.htx
Weekly.htx
Monthly.htx
Yearly.htx
parameterlist.htx

###############################################################################
### Current Conditions (Table Only) Template
###############################################################################

#Current_Conditions.htx

###############################################################################
### AWEKAS Data Submission Template
###############################################################################

#awekas_wl.htx

###############################################################################
### Dati in diretta
###############################################################################

realtime.htx


but the file isnot generate, why?

Ugo

Mark B

unread,
May 7, 2012, 9:37:41 AM5/7/12
to wv...@googlegroups.com
Did you use the correct html-templates.conf file?  There are two.  the one needing editing is in /etc/wview.  Do not edit the one that exists in /etc/wview/html.

Also, did you restart wview after making the conf file change?

Graham Eddy

unread,
May 7, 2012, 9:53:00 AM5/7/12
to wv...@googlegroups.com
or /usr/local/etc/wview/html-templates.conf if you're building from source
___________
Graham Eddy

--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/YNW5zOF5Uo4J.
To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wview?hl=en.

Mark S. Teel

unread,
May 7, 2012, 9:57:03 AM5/7/12
to wv...@googlegroups.com
And be sure your new template file is in the proper templates directory so wview can find it when trying to generate.

Debian: /etc/wview/html
Source: /usr/local/etc/wview/html

Mark

Ronnie

unread,
May 26, 2012, 8:31:44 PM5/26/12
to wv...@googlegroups.com
Concur with Mark B on this. Same thing happened to me. Once I made sure I edited the correct file and restarted, it worked like a charm!

Ronnie

Marcio Malacarne

unread,
May 28, 2012, 12:54:52 PM5/28/12
to wv...@googlegroups.com
hello,
This is my first message. :)
Check which folder is your file and template...

Beste rigard,
marcio
from Brazil
2012/5/26 Ronnie <ronnie....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/Cp0NDGso9lsJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wview?hl=en.



--
De nada serve ao homem conquistar a Lua se acaba por perder a Terra.
François Mauriac
Reply all
Reply to author
Forward
0 new messages