I got it to work. Had to reinstall PHP.

I extended my database to include :
schema_extended = schemas.wview.schema + [('appTemp', 'REAL'), ('windrun', 
'REAL'), ('lightning_strikes', 'REAL'), ('avg_distance', 'REAL'), 
('maxSolarRad', 'REAL'),('lightningYYY', 'REAL'), ('lightningZZZ', 'REAL')]

I followed all of the instructions here:
https://github.com/poblabs/weewx-belchertown/wiki/Adding-a-new-observation-type-to-the-WeeWX-database

Now i get this error:

Any ideas?

Traceback (most recent call last):
  File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
    obj.start()
  File "/usr/share/weewx/weewx/reportengine.py", line 280, in start
    self.run()
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 150, in run
    ngen = self.generate(gen_dict[section_name], self.gen_ts)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 220, in generate
    ngen += self.generate(section[subsection], gen_ts)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 220, in generate
    ngen += self.generate(section[subsection], gen_ts)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 309, in generate
    default_binding)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 376, in 
_getSearchList
    searchList += obj.get_extension_list(timespan, db_lookup)
  File "/usr/share/weewx/user/belchertown.py", line 836, in 
get_extension_list
    obs_output = getattr(current, obs)
  File "/usr/share/weewx/weewx/tags.py", line 457, in __getattr__
    vt = weewx.xtypes.get_scalar(obs_type, self.record, db_manager)
  File "/usr/share/weewx/weewx/xtypes.py", line 71, in get_scalar
    return xtype.get_scalar(obs_type, record, db_manager)
  File "/usr/share/weewx/weewx/wxservices.py", line 252, in get_scalar
    return getattr(self, method_name)(obs_type, record, db_manager)
  File "/usr/share/weewx/weewx/wxservices.py", line 274, in calc_cloudbase
    if 'outTemp' not in data or 'outHumidity' not in data:
TypeError: argument of type 'NoneType' is not iterable






On Tuesday, 12 May 2020 13:59:47 UTC-4, Ron Sell wrote:
>
> I am trying to re create my Weewx on a new server. I am having the hardest 
> time. When I make changes to the weewx.conf, restart service and run sudo 
> weewx_reports none of my changes take affect. What am I missing?
>
> [[Belchertown]]
>
>         HTML_ROOT = /var/www/html
>
>         skin = Belchertown
>
>         [[[Extras]]]
>
>             belchertown_root_url = http://10.0.0.1 <http://10.0.0.32/>81
>
>           # footer_copyright_text = BelchertownWeather.com
>
>             forecast_enabled = 1
>
>             forecast_api_id = xxxxx
>
>             forecast_api_secret = xxxxx
>
>             forecast_units = "us"
>
>             forecast_stale = forecast_stale
>
>             earthquake_enabled = 0
>
>             twitterenabled = 0
>
>             webpage_autorefresh = 200000
>
>           #    mqtt_websockets_enabled = 1
>
>            #   mqtt_websockets_host = "10.0.0.32"
>
>            #   mqtt_websockets_port = 9001
>
>            #   mqtt_websockets_topic = "weather/#"
>
>             disconnect_live_website_visitor = 0
>
>             show_apptemp = 1
>
>           #  show_windrun = 1
>
>             station_observations = barometer, dewpoint, outHumidity, 
> cloudbase, rainWithRainRate, UV, radiation
>
>             theme = auto
>
>             reload_hook_images = 1
>
>             reload_images_hook_af = 60
>
>             show_last_updated_alert = 1
>
>             last_updated_alert_threshold = 1800
>
>             footer_disclaimer_text = "Weather"
>
>             footer_copyright_text = " "
>
>             powered_by = "WeatherFlow"
>
>             about_page_header = "About"
>
>             home_page_header = "Weather Conditions"
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ce6b2c10-5350-48e8-93a1-bfbf49c5df9e%40googlegroups.com.

Reply via email to