Hi Phil This was a difficult one and came from Pat and I discussing what to do about that fact that both inc files are overwritten during an upgrade. My initial suggestion was to keep them outside the install package so any customisation wasn't lost, I guess if there was a copy on Github but not in the archive file then that may work too? Only trouble is then you have to go there to find them rather than everything being in the one archive file. Certainly any thoughts on a good way to handle that will be appreciated by Pat. Another thought would be 2 archive files, one initial install and one upgrade, but again could get confusing or the new user could maybe get the wrong one and means 2 packages for Pat to manage.
Colin On Mon, Sep 3, 2018 at 1:47 PM Philip Kutzenco <[email protected]> wrote: > Pat, > Ah. When I downloaded the skin from GitHub this afternoon (US Eastern > time), I also printed out a copy of the README.md. It's listed as being > created 3 days ago. That version has a section called "Customizing About > Page and Records Page" which says create (or edit) the about.inc and > records.inc files. > > It looks like I printed that shortly before you updated it :-). The > section in the new version is called "Creating About Page and Records Page" > and has a line that says in version 0.6+ you need to create these files if > you are installing the skin for the first time. > > I'll create those files. BTW, I know you suggest looking at > www.BelchertownWeather.com for examples of what they can contain. You may > want to post starter files on GitHub, though, for those just starting out > to download and use. > > Thanks. > Phil > > On Sunday, September 2, 2018 at 7:30:21 PM UTC-4, Pat wrote: >> >> Looks like you may have skipped this step >> <https://github.com/poblabs/weewx-belchertown#customizing-about-page-and-records-page> >> . >> >> On Sunday, September 2, 2018 at 5:05:54 PM UTC-4, Philip Kutzenco wrote: >>> >>> Pat, >>> >>> I finally got a chance to install your skin (V 0.6). And I'm seeing >>> errors: What have I done wrong? >>> >>> Phil >>> >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:35:00 EDT (1535920500) to database 'weewx.sdb' >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:35:00 EDT (1535920500) to daily summary in 'weewx.sdb' >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:40:00 EDT (1535920800) to database 'weewx.sdb' >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: forecast: ZambrettiThread: >>> Zambretti: generated 1 forecast record >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: forecast: ZambrettiThread: >>> Zambretti: saved 1 forecast records >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: forecast: ZambrettiThread: >>> Zambretti: deleted forecasts prior to 1535316382 >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:40:00 EDT (1535920800) to daily summary in 'weewx.sdb' >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:45:00 EDT (1535921100) to database 'weewx.sdb' >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:45:00 EDT (1535921100) to daily summary in 'weewx.sdb' >>> Sep 2 16:46:22 WeeWX-pi weewx[24513]: engine: Starting main packet loop. >>> Sep 2 16:49:31 WeeWX-pi systemd[1]: Started Session c31 of user pi. >>> Sep 2 16:50:14 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:50:00 EDT (1535921400) to database 'weewx.sdb' >>> Sep 2 16:50:15 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:50:00 EDT (1535921400) to daily summary in 'weewx.sdb' >>> Sep 2 16:50:37 WeeWX-pi weewx[24513]: cheetahgenerator: Generated 14 >>> files for report StandardReport in 22.19 seconds >>> Sep 2 16:50:41 WeeWX-pi weewx[24513]: imagegenerator: Generated 12 >>> images for StandardReport in 4.05 seconds >>> Sep 2 16:50:41 WeeWX-pi weewx[24513]: copygenerator: copied 14 files to >>> /home/weewx/public_html >>> Sep 2 16:50:42 WeeWX-pi weewx[24513]: copygenerator: copied 6 files to >>> /home/weewx/public_html/ss >>> Sep 2 16:50:46 WeeWX-pi weewx[24513]: cheetahgenerator: Generated 2 >>> files for report SteelSeries in 4.88 seconds >>> Sep 2 16:50:50 WeeWX-pi weewx[24513]: imagegenerator: Generated 11 >>> images for SteelSeries in 3.94 seconds >>> Sep 2 16:51:07 WeeWX-pi weewx[24513]: cheetahgenerator: Generated 12 >>> files for report forecast in 16.67 seconds >>> Sep 2 16:51:07 WeeWX-pi weewx[24513]: copygenerator: copied 87 files to >>> /home/weewx/public_html/forecast >>> Sep 2 16:51:08 WeeWX-pi weewx[24513]: Belchertown Extension: version 0.6 >>> Sep 2 16:55:16 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:55:00 EDT (1535921700) to database 'weewx.sdb' >>> Sep 2 16:55:16 WeeWX-pi weewx[24513]: manager: Added record 2018-09-02 >>> 16:55:00 EDT (1535921700) to daily summary in 'weewx.sdb' >>> Sep 2 16:55:16 WeeWX-pi weewx[24513]: engine: Launch of report thread >>> aborted: existing report thread still running >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: cheetahgenerator: Generate failed >>> with exception '<type 'exceptions.OSError'>' >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: cheetahgenerator: **** Ignoring >>> template /home/weewx/skins/Belchertown/about/index.html.tmpl >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: cheetahgenerator: **** Reason: >>> [Errno 2] No such file or directory: >>> '/home/weewx/skins/Belchertown/about.inc' >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** Traceback (most recent call >>> last): >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** File >>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** print >> _file, >>> compiled_template >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** File >>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in >>> __str__ >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** rc = getattr(self, >>> mainMethName)() >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** File >>> "_home_weewx_skins_Belchertown_about_index_html_tmpl.py", line 181, in >>> respond >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** File >>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1597, in >>> _handleCheetahInclude >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** nestedTemplateClass = >>> compiler.compile(source=source, file=file) >>> Sep 2 16:58:01 WeeWX-pi weewx[24513]: **** File >>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py" >>> ... >> >> -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
