Belcher Template

82 views
Skip to first unread message

Parsoli 69

unread,
Mar 12, 2020, 5:47:06 PM3/12/20
to weewx-user
Good Evening,

Recently put in place Weewx and have over-layed Belcher on top.  I'm having an issue getting the weewx.conf custom options to be seen and applied to the skin.  Such as

home_page_header, graphs_page_header, webpage_autorefresh, footer_copyright_text, etc...

Sure had fun figuring out indentation was important.  When I try to include these in/under [[[Extras]]], the skin.conf will override the weewx.conf.  I'm sure I have formatted something incorrectly.  I have modified the skin.conf and the changes are seen on the webpage, but trying to follow instructions so a future skin update doesn't wipe changes out.

Any thoughts?  I would love to see someones compiled weex.conf file for Belchertown if possible to see if my formatting is causing this.  Thanks in advance for your comments

[StdReport]

    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins

    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/www/html/weewx

[removed other lines between these two section]

[[Belchertown]]
        HTML_ROOT = /var/www/html/
        belchertown_debug = 1
        skin = Belchertown
        belchertown_root_url = http://weather.parsoli.net
        theme = auto
        theme_toggle_enabled = 1
        station_observations = barometer,dewpoint
        show_apptemp = 1
        highcharts_enabled = 1
        graph_page_show_all_button = 1
        graph_page_default_graphgroup = all
        webpage_autorefresh = 30000
        home_page_header = "Current Conditions"
        footer_copyright_text = "Elburn Weather"
        [[[Extras]]]
            forecast_enabled = 1
            earthquake_enabled = 1
            twitter_enabled = 1
            belchertown_locale = auto
            darksky_secret_key = "5959cc08182a07f7xxxxxxxxxxxxxx"
            site_title = "Elburn Weather"

vince

unread,
Mar 12, 2020, 6:40:59 PM3/12/20
to weewx-user
On Thursday, March 12, 2020 at 2:47:06 PM UTC-7, Parsoli 69 wrote:
Recently put in place Weewx and have over-layed Belcher on top.  I'm having an issue getting the weewx.conf custom options to be seen and applied to the skin.  Such as


It is "Belchertown"
 
Sure had fun figuring out indentation was important.  When I try to include these in/under [[[Extras]]], the skin.conf will override the weewx.conf.  I'm sure I have formatted something incorrectly.  I have modified the skin.conf and the changes are seen on the webpage, but trying to follow instructions so a future skin update doesn't wipe changes out.


Indentation is not important.

Hierarchy (ie, [[[something]]] goes under [[somethingElse]]) 'is' important

 
Any thoughts?  I would love to see someones compiled weex.conf file for Belchertown if possible to see if my formatting is causing this.  Thanks in advance for your comments



Here's mine - some of the items might be different or not used in current Belchertown, so consult the docs for details.

Basically you have a lot of stuff at the top-most level where they should be in lower level sections.


    [[Belchertown]]
        HTML_ROOT = public_html/weewx_weatherflow
        skin = Belchertown
        enable = false
        [[[Extras]]]
            #--------------- General Options -----------------------------------------
            belchertown_debug = 0    # default = 0
            belchertown_root_url = /weewx_weatherflow    # no trailing slash
            # belchertown_locale = "auto"
            # default = "light"
            # theme_toggle_enabled = 1
            # logo_image = ""                                      # absolute URL here (supersedes site_title)
            site_title = Skahan.net WF    # default = "My Weather Website"
            # station_observations = "barometer", "dewpoint", "outHumidity", "rainWithRainRate"
            manifest_name = Skahan.net WeatherFlow    # default = "My Weather Website"
            manifest_short_name = MWW
            # radar_html = (unknown what the default is)
            # show_apptemp = 0
            # show_windrun = 0
            # show_cloudbase = 0
            highcharts_enabled = 1    # default = 0
            # graph_page_show_all_button = 1
            # graph_page_default_graphgroup = "day"
            # highcharts_homepage_graphgroup = "day"
            # googleAnalyticsId = ""
            # pi_kiosk_bold = "false"
            webpage_autorefresh = 300000    # ms, (5-min to match archive period) - default=0, used if websockets is false
            # reload_hook_images = 0
            # reload_images = 300                                  # secs, -1 = disable, only if reload_hook_images=0 and websockets enabled
            # reload_images_hook_asi = -1                          # secs, -1 = disable
            # reload_images_hook_af  = -1                          # secs, -1 = disable
            # reload_images_hook_as  = -1                          # secs, -1 = disable
            show_last_updated_alert = 1    # enable alert below
            last_updated_alert_threshold = 1800    # secs before calling data stale if websockets = disabled

            #--------------- MQTT Websockets (optional) -------------------------------

            mqtt_websockets_enabled = 0    # default = 0
            mqtt_websockets_host = localhost    # default = ""
            mqtt_websockets_port = 9001    # default = 8080
            # mqtt_websockets_ssl = 0
            mqtt_websockets_topic = weather/loop    # default = ""
            # disconnect_live_website_visitor = 1800000             # ms

            #--------------- Forecast Options (optional) ------------------------------

            forecast_enabled = 1    # default = 0
            darksky_secret_key = my_long_key_goes_here_7138826387    # default = ""
            # darksky_units = "auto"
            # darksky_lang = "en"
            # forecast_stale = 3540
            forecast_alert_enabled = 1    # default = 0

            #--------------- Earthquake Options (optional) ----------------------------

            earthquake_enabled = 1    # default = 0
           # earthquake_maxradiuskm = 1000
           # earthquake_stale = 10740                              # sec

           #--------------- Social Options (optional) --------------------------------

           # facebook_enabled = 0
           # twitter_enabled = 0
           # twiter_owner = ""                                     # twitter handle to mention
           # twitter_hashtags = "weewx #weather"

        [[[Labels]]]

            [[[[Generic]]]]

                #--------------- Common labels to set -------------------------------------
                home_page_header = Current Weather Conditions    # default = "My Station Weather Conditions"
                graphs_page_header = Current Graphs    # default = "My Station Weather Conditions"
                reports_page_header = Historical Reports    # default = "My Station Weather Conditions"
                records_page_header = All-time Records    # default = "My Station Weather Conditions"
                about_page_header = About This Station    # default = "My Station Weather Conditions"
                powered_by = Powered by: <a href="https://weatherflow.com/smart-home-weather-stations/">WeatherFlow</a> and <a href="http://www.weewx.com/">WeeWX</a>    # for default, see docs
                footer_copyright_text = Vince Skahan    # "My Weather Website"
                footer_disclaimer_text = ""    # see docs for default 
Reply all
Reply to author
Forward
0 new messages