wfog not sending to wunderground

50 views
Skip to first unread message

Benny Simonsen

unread,
Dec 27, 2016, 3:39:27 PM12/27/16
to wfrog-users
Hello,

I have just installed and configured wfrog again on a Raspberry Pi.
wfrog version: 0.8.2+svn953-1

I have installed PyWeather from Git, and I can export to wunderground if I run
cd /usr/lib/wfrog/wfrender ; sudo python wfrender.py -f config/wunderground.yaml -s /etc/wfrog/settings.yaml -vd

but it does not work with wfrender.yaml
benny@sira:/usr/lib/wfrog/wfrender$ sudo python wfrender.py -f config/wfrender.yaml -s /etc/wfrog/settings.yaml -vd
Traceback (most recent call last):
  File "wfrender.py", line 131, in <module>
    result = engine.process("config/wfrender.yaml", embedded=False)
  File "wfrender.py", line 96, in process
    self.configure(embedded)
  File "wfrender.py", line 86, in configure
    self.reconfigure(options, args, embedded)
  File "wfrender.py", line 90, in reconfigure
    self.configurer.configure_engine(self,options, args, embedded, self.config_file, self.settings_file)
  File "/usr/lib/wfrog/wfrender/config.py", line 70, in configure_engine
    (config, config_context) = self.configure(options, engine, config_file, settings_file, embedded=embedded)
  File "/usr/lib/wfrog/wfcommon/config.py", line 110, in configure
    config = yaml.load( str(Template(file=file(self.config_file, "r"), searchList=[variables])))
  File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
    return loader.get_single_data()
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 39, in get_single_data
    return self.construct_document(node)
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 48, in construct_document
    for dummy in generator:
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 408, in construct_yaml_object
    state = self.construct_mapping(node)
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 208, in construct_mapping
    return BaseConstructor.construct_mapping(self, node, deep=deep)
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 124, in construct_mapping
    node.start_mark)
yaml.constructor.ConstructorError: expected a mapping node, but found scalar
  in "<string>", line 74, column 22:
                storage: !service
                         ^

If I run wfrog -R -vd I get the same error.

If I run wfrog -vd, then there are no errors, and the http render works.

The wunderground section is identical in wunderground.yaml and wfrender.yaml.

The same appears for pwsweather, works if using pwsweather.com, but not wfrender.yaml.

Any hints on what I have missed?

Br,
Benny



Reply all
Reply to author
Forward
0 new messages