Weewxwd installation when weewx installed from deb

238 views
Skip to first unread message

Jacek Skowroński

unread,
Nov 11, 2016, 3:39:22 PM11/11/16
to weewx-user
Hi,
I have some confusion.
I'd like to install weewxwd. Previously I had installed weewx from deb.
Where should I find setup.py file in general? This is the first step in installation of the weewxwd

sudo find / -name 'setup.py'

gives nothing

Thanks for help

gjr80

unread,
Nov 11, 2016, 4:15:18 PM11/11/16
to weewx-user
Hi,

The Weewx-WD install instructions have not yet been updated to reflect the removal of the weewx extension management capabilities from setup.py and the creation of the wee_extension utilitiy at weewx v3.2.0. You can safely install Weewx-WD with wee_extension using something like:

./wee_extension --install=/path/to/weewxwd-1.0.0.tar.gz

Weewx-WD v1.0.0 has a few bugs in it that may or may not affect you. I am just putting the finishing touches to a v1.0.1 package that adresses these issues. If you could hang off installing for a week that might be advantageous.

Gary

Jacek Skowroński

unread,
Nov 11, 2016, 4:33:07 PM11/11/16
to weewx-user
thanks for info about the way of installation and about troubles
I will wait

Jacek Skowroński

unread,
Nov 11, 2016, 4:43:27 PM11/11/16
to weewx-user
by the way, the solution you gave me producess errors

pi@raspberrypi:/ $ sudo wee_extension --install= /home/pi/weewxwd-1.0.0.tar.gz
Traceback (most recent call last):
  File "/usr/bin/wee_extension", line 83, in <module>
    main()
  File "/usr/bin/wee_extension", line 62, in main
    config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/usr/share/weewx/weecfg/__init__.py", line 223, in read_config
    config_dict = configobj.ConfigObj(config_path, file_error=True)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
    raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 1.

gjr80

unread,
Nov 11, 2016, 5:00:47 PM11/11/16
to weewx-user
That error indicates that wee_extension found an error in your weewx.conf and could not parse it. I trust that your weewx.conf is located in /etc/weewx (you said you did a deb install) and that it in fact is not malformed? If everything is fine you might want to tell wee_extension exactly where weewx.conf is rather than have it guessing. You could try:

wee_extension --config=/etc/weewx/weewx.conf --install=/home/pi/weewxwd-1.0.0.tar.gz

Gary

Jacek Skowroński

unread,
Nov 12, 2016, 2:17:30 AM11/12/16
to weewx...@googlegroups.com
Yes file is in the standard location. Weewx is working without any warn on start so It's crazy to have problems with config.
Could i send You a file to chceck? Maybe there is something with program wee_extension
Regards
Jacek

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/EJxwFGpcu60/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gjr80

unread,
Nov 12, 2016, 2:35:49 AM11/12/16
to weewx-user
Did you try explicitly setting the --config option as per my last? I also note you ran wee_extension from the / directory. You might want to try changing into the /usr/share/weewx folder and then running it again, it could be a path issue.

Gary

Jacek Skowroński

unread,
Nov 12, 2016, 5:02:25 AM11/12/16
to weewx-user
thx
finally this works

pi@raspberrypi:/usr/share/weewx $ sudo wee_extension --config=/etc/weewx/weewx.conf --install=/home/pi/weewxwd-1.0.0.tar.gz
Request to install '/home/pi/weewxwd-1.0.0.tar.gz'
Extracting from tar archive /home/pi/weewxwd-1.0.0.tar.gz
Saving installer file to /usr/share/weewx/user/installer/Weewx-WD
Saved configuration dictionary. Backup copy at /etc/weewx/weewx.conf.20161112110131
Finished installing extension '/home/pi/weewxwd-1.0.0.tar.gz'

Jacek Skowroński

unread,
Nov 12, 2016, 5:12:55 AM11/12/16
to weewx-user
it work's more or less.
pi@raspberrypi:/usr/share/weewx $ tail -f /var/log/syslog
Nov 12 11:01:48 raspberrypi weewx[18627]: engine: Daily summaries up to date.
Nov 12 11:01:48 raspberrypi weewx[18627]: restx: StationRegistry: Registration not requested.
Nov 12 11:01:48 raspberrypi weewx[18627]: restx: Wunderground-RF: Data for station IWOJEWDZ56 will be posted
Nov 12 11:01:48 raspberrypi weewx[18627]: restx: PWSWeather: Data for station YACENTY2 will be posted
Nov 12 11:01:48 raspberrypi weewx[18627]: restx: CWOP: Posting not enabled.
Nov 12 11:01:48 raspberrypi weewx[18627]: restx: WOW: Data for station 976406001 will be posted
Nov 12 11:01:48 raspberrypi weewx[18627]: restx: AWEKAS: Data will be uploaded for user yacenty
Nov 12 11:01:48 raspberrypi weewx[18627]: engine: Starting up weewx version 3.6.2
Nov 12 11:01:48 raspberrypi weewx[18627]: engine: Clock error is 1.74 seconds (positive is fast)
Nov 12 11:01:48 raspberrypi weewx[18627]: engine: Starting main packet loop.
Nov 12 11:05:15 raspberrypi weewx[18627]: manager: added record 2016-11-12 11:05:00 CET (1478945100) to database 'weewx.sdb'
Nov 12 11:05:15 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Nov 12 11:05:45 2016 [try http://www.rsyslog.com/e/2007 ]
Nov 12 11:05:15 raspberrypi weewx[18627]: manager: added record 2016-11-12 11:05:00 CET (1478945100) to daily summary in 'weewx.sdb'
Nov 12 11:05:15 raspberrypi weewx[18627]: manager: added record 2016-11-12 11:05:00 CET (1478945100) to database 'weewxwd.sdb'
Nov 12 11:05:15 raspberrypi weewx[18627]: manager: added record 2016-11-12 11:05:00 CET (1478945100) to daily summary in 'weewxwd.sdb'
Nov 12 11:05:15 raspberrypi weewx[18627]: restx: AWEKAS: Published record 2016-11-12 11:05:00 CET (1478945100)
Nov 12 11:05:16 raspberrypi weewx[18627]: restx: PWSWeather: Published record 2016-11-12 11:05:00 CET (1478945100)
Nov 12 11:05:16 raspberrypi weewx[18627]: restx: WOW: Published record 2016-11-12 11:05:00 CET (1478945100)
Nov 12 11:05:19 raspberrypi weewx[18627]: cheetahgenerator: Generated 14 files for report StandardReport in 4.29 seconds
Nov 12 11:05:20 raspberrypi weewx[18627]: genimages: Generated 12 images for StandardReport in 0.62 seconds
Nov 12 11:05:20 raspberrypi weewx[18627]: reportengine: copied 9 files to /var/www/html/weewx
Nov 12 11:05:28 raspberrypi weewx[18627]: cheetahgenerator: Generated 1 files for report wdTesttags in 7.44 seconds
Nov 12 11:05:28 raspberrypi weewx[18627]: cheetahgenerator: Generated 1 files for report wdPWS in 0.15 seconds
Nov 12 11:05:32 raspberrypi weewx[18627]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Nov 12 11:05:32 raspberrypi weewx[18627]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Clientraw/clientrawextra.txt.tmpl
Nov 12 11:05:32 raspberrypi weewx[18627]: cheetahgenerator: **** Reason: cannot find 'split' while searching for 'split'
Nov 12 11:05:32 raspberrypi weewx[18627]: ****  Traceback (most recent call last):
Nov 12 11:05:32 raspberrypi weewx[18627]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 315, in generate
Nov 12 11:05:32 raspberrypi weewx[18627]: ****      print >> _file, text
Nov 12 11:05:32 raspberrypi weewx[18627]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Nov 12 11:05:32 raspberrypi weewx[18627]: ****      rc = getattr(self, mainMethName)()
Nov 12 11:05:32 raspberrypi weewx[18627]: ****    File "_etc_weewx_skins_Clientraw_clientrawextra_txt_tmpl.py", line 164, in respond
Nov 12 11:05:32 raspberrypi weewx[18627]: ****  NotFound: cannot find 'split' while searching for 'split'
Nov 12 11:05:32 raspberrypi weewx[18627]: cheetahgenerator: Generated 3 files for report wdClientraw in 4.28 seconds
Nov 12 11:05:32 raspberrypi weewx[18627]: reportengine: Caught unrecoverable exception in generator user.imageStackedWindRose3.ImageStackedWindRoseGenerator
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****  cannot open resource
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****  Traceback (most recent call last):
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 238, in run
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****      obj.start()
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 271, in start
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****      self.run()
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****    File "/usr/share/weewx/user/imageStackedWindRose3.py", line 55, in run
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****      self.genImages(self.gen_ts)
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****    File "/usr/share/weewx/user/imageStackedWindRose3.py", line 303, in genImages
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****      self.plotFont = ImageFont.truetype(self.windrose_font_path, self.windrose_plot_font_size)
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****    File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 240, in truetype
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****      return FreeTypeFont(font, size, index, encoding)
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****    File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 137, in __init__
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****      self.font = core.getfont(font, size, index, encoding)
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****  IOError: cannot open resource
Nov 12 11:05:32 raspberrypi weewx[18627]:         ****  Generator terminated
Nov 12 11:05:33 raspberrypi weewx[18627]: cheetahgenerator: Generated 1 files for report wdSteelGauges in 0.40 seconds
Nov 12 11:05:45 raspberrypi weewx[18627]: reportengine: ftp'd 41 files in 12.53 seconds

Now I have few questions.
If FTP service is on and all files from pi are sent to www serwer, does it mean that all files located in weewx/WD folder should go to the ftp server? Or do I have to prepare other service called FTPWD to send WD files?
Any hint how to fix the mentioned errors?


On Saturday, November 12, 2016 at 8:35:49 AM UTC+1, gjr80 wrote:

Andrew Milner

unread,
Nov 12, 2016, 7:20:37 AM11/12/16
to weewx-user
FTP uploads from $HTML_ROOT according to the user guide.

gjr80

unread,
Nov 12, 2016, 7:57:10 AM11/12/16
to weewx-user
On Saturday, 12 November 2016 20:12:55 UTC+10, Jacek Skowroński wrote:
Any hint how to fix the mentioned errors?

I did warn you.....

Weewx-WD v1.0.0 has a few bugs in it that may or may not affect you. I am just putting the finishing touches to a v1.0.1 package that adresses these issues. If you could hang off installing for a week that might be advantageous.

The wind rose font issue is easily worked around. As per the Weewx-WD docs installing the GNU FreeFont truetype fonts will fix the problem:
 
sudo apt-get install fonts-freefont-ttf

The next version gracefully handles the lack of the GNU FreeFont truetype fonts.

The other issue is more complex but I suspect it can be avoided by installing pyephem (I say avoided becasue the issue is still there, it is just that Weewx-WD 1.0.0 handles sunrise and sunset times a little differently if pyephem is installed):

sudo apt-get install python-dev
sudo apt
-get install python-pip
sudo pip install pyephem

Even with these workarounds I am not certain you will have no more issues. As I said this morning, I recommend you give me a few days to get the next version finalised.

Gary

Jacek Skowroński

unread,
Nov 12, 2016, 8:31:18 AM11/12/16
to weewx-user
thx

Jacek Skowroński

unread,
Nov 12, 2016, 8:34:17 AM11/12/16
to weewx-user
Thanks for warn I do not blame You, I like the risk sometimes.
I did what You pointed.
Still there is some problem. But I do not care at this moment - data are on my webpage - weewx and saratoga also they are sent to the WU

Here is an error log - maybe it would help You in development of very nice plugin.

Nov 12 14:30:20 raspberrypi weewx[18627]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Nov 12 14:30:20 raspberrypi weewx[18627]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Clientraw/clientrawextra.txt.tmpl
Nov 12 14:30:20 raspberrypi weewx[18627]: cheetahgenerator: **** Reason: cannot find 'split' while searching for 'split'
Nov 12 14:30:20 raspberrypi weewx[18627]: ****  Traceback (most recent call last):
Nov 12 14:30:20 raspberrypi weewx[18627]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 315, in generate
Nov 12 14:30:20 raspberrypi weewx[18627]: ****      print >> _file, text
Nov 12 14:30:20 raspberrypi weewx[18627]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Nov 12 14:30:20 raspberrypi weewx[18627]: ****      rc = getattr(self, mainMethName)()
Nov 12 14:30:20 raspberrypi weewx[18627]: ****    File "_etc_weewx_skins_Clientraw_clientrawextra_txt_tmpl.py", line 164, in respond
Nov 12 14:30:20 raspberrypi weewx[18627]: ****  NotFound: cannot find 'split' while searching for 'split'
Nov 12 14:30:20 raspberrypi weewx[18627]: cheetahgenerator: Generated 3 files for report wdClientraw in 1.09 seconds
Nov 12 14:30:20 raspberrypi weewx[18627]: imageStackedWindRose: Generated 1 images for wdStackedWindRose in 0.10 seconds
Nov 12 14:30:20 raspberrypi weewx[18627]: cheetahgenerator: Generated 1 files for report wdSteelGauges in 0.09 seconds
Nov 12 14:30:30 raspberrypi weewx[18627]: reportengine: ftp'd 33 files in 10.30 seconds

Once more, thanks for help and good plugin
Regards
Jacek
Reply all
Reply to author
Forward
0 new messages