1-letter restful services

26 views
Skip to first unread message

Invisible Man

unread,
Aug 27, 2023, 8:30:48 AM8/27/23
to weewx-user
I noticed I had this configuration line in weewx.conf. What are those services? Is that a shortcut name?

restful_services = S, d, S, a, n, R, g, y
or 
restful_services = x, x, S, d, S, a, o, n, R, g, y

I just commented the line...
It solved an exception I was getting - though I'm not sure it's totally related yet (probably indirectly), I've messed up my config trying to add the Mastodon extension...

Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__: Caught unrecoverable exception:
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****  Empty module name
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****  Traceback (most recent call last):
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****      self.loadServices(config_dict)
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1335, in get_object
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****      mod = __import__(module)
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****  ValueError: Empty module name
Aug 27 14:19:08 vegan weewx[1268] CRITICAL __main__:     ****  Exiting.
Aug 27 14:21:40 vegan weewx[1461]: Stopping weewx weather system: weewx not running....

Tom Keffer

unread,
Aug 27, 2023, 8:54:53 AM8/27/23
to weewx...@googlegroups.com
No idea where those came from. Must have been accidentally introduced into your weewx.conf file.

Perhaps the Mastadon installer messed things up...?

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4ce6451a-3465-414e-82b6-2adb5d955c54n%40googlegroups.com.

Invisible Man

unread,
Aug 27, 2023, 10:24:03 AM8/27/23
to weewx-user
Ok, never mind, I'll post in this thread if I find out who messed up this line, but for now, I'll assume it's my fault somehow :)
Reply all
Reply to author
Forward
0 new messages