First of all, WX-HWS is a port of weather34 template designed by Brian Underdown. Brian has given his permission for his original work to maintained in three versions, Meteobridge maintained by Lightmaster, Cumulus maintained by Ken True and WeeWX by myself. The WeeWX version is closely aligned visually, functionally and in performance to the Meteobridge version as I recognised that WeeWX can do what MB can do (and much more). All three versions are under active development.
My repository is at https://github.com/steepleian/WX-HWS . As you will see, there are a lot of folders and files. Simplistically the CRT extension is used to feed the live data and report generator to feed archive data for the weather almanacs and weather charts. Forecast data is optionally captured either Dark Sky or WU 5 day forecast.
What do I want to achieve? Although I have managed to streamline the manual install somewhat, it still causes problems for some users. My ideal is a robust install which includes all required extensions etc, insert the correct mods to weewx.conf and run a settings process where users can add their api keys, webcam and other hardware.
I have read the documentation and looked at several install.py files from the very simple to the more complex. I think it will be wise to take baby steps initially by creating an install just to place files. Once that is working, the more complex functions can be added.
One more thing to add, I am not a Python coder although I can follow what a piece of code doing and adapt it.
Many thanks,
Ian
Matthew and Gary,A quick question, if I wanted the packaged skin to install some files directly into the web root rather than skin or bin/user, (a) is this possible? (b) what is the syntax? I have tried all the various path options that I can think of and install.py keeps throwing syntax errors.
That works perfectly. If I want to copy_once an entire folder containing mixed type files and sub folders, is there a syntax for that or do I have to list each wild-card file type and sub-folder?
If I want to copy_once an entire folder containing mixed type files and sub folders, is there a syntax for that or do I have to list each wild-card file type and sub-folder?
On 04 Jul 2019, at 08:56, steeple ian wrote:
Matthew,
Yes I did,
This is from the syslog: -reportengine: Caught unrecoverable exception in generator 'weewx.reportengine.CopyGenerator'Jul 4 13:40:44 DietPi weewx[7627]: **** [Errno 21] Is a directory: 'w34pages'Jul 4 13:40:44 DietPi weewx[7627]: **** Traceback (most recent call last):Jul 4 13:40:44 DietPi weewx[7627]: **** File "/home/weewx/bin/weewx/reportengine.py", line 204, in runJul 4 13:40:44 DietPi weewx[7627]: **** obj.start()Jul 4 13:40:44 DietPi weewx[7627]: **** File "/home/weewx/bin/weewx/reportengine.py", line 300, in startJul 4 13:40:44 DietPi weewx[7627]: **** self.run()Jul 4 13:40:44 DietPi weewx[7627]: **** File "/home/weewx/bin/weewx/reportengine.py", line 460, in runJul 4 13:40:44 DietPi weewx[7627]: **** shutil.copy(_file, dest_dir)Jul 4 13:40:44 DietPi weewx[7627]: **** File "/usr/lib/python2.7/shutil.py", line 119, in copyJul 4 13:40:44 DietPi weewx[7627]: **** copyfile(src, dst)Jul 4 13:40:44 DietPi weewx[7627]: **** File "/usr/lib/python2.7/shutil.py", line 82, in copyfileJul 4 13:40:44 DietPi weewx[7627]: **** with open(src, 'rb') as fsrc:Jul 4 13:40:44 DietPi weewx[7627]: **** IOError: [Errno 21] Is a directory: 'w34pages'Jul 4 13:40:44 DietPi weewx[7627]: **** Generator terminated
It seems to have choked on the fact that it was a directory!