Unable to Run Weewx

176 views
Skip to first unread message

LanceW

unread,
Sep 16, 2019, 5:34:04 PM9/16/19
to weewx-user

Let me start by saying that I am new to Python, so please bear with me. After installing python and weewx and following the process that was laid out here: https://github.com/weewx/weewx/wiki/weewx-on-windows , I attempted to Run Weewx. I received several errors and they are as follows:

PS C:\Users\weewx> python bin\weewxd weewx.conf
Traceback (most recent call last):
File "bin\weewxd", line 64, in
weewx.engine.main(options, args)
File "C:\Users\weewx\bin\weewx\engine.py", line 891, in main
engine = engine_class(config_dict)
File "C:\Users\weewx\bin\weewx\engine.py", line 72, in init
self.setupStation(config_dict)
File "C:\Users\weewx\bin\weewx\engine.py", line 90, in setupStation
driver = config_dict[stationType]['driver']
File "C:\Python27\lib\site-packages\configobj.py", line 554, in getitem
val = dict.getitem(self, key)
KeyError: 'unspecified'


Has anyone encountered this before. Thanks in advance.


Windows 10 Pro

Python 2.7

Weewx-Windows

Davis Vantage Pro Plus

vince

unread,
Sep 16, 2019, 6:44:36 PM9/16/19
to weewx-user
Check your weewx.conf file and make sure you defined a station_type

Thomas Keffer

unread,
Sep 16, 2019, 7:05:53 PM9/16/19
to weewx-user
Two things.

1. Windows is not a supported platform. There is a branch in the GitHub repository that has been ported to Windows, but it is not updated regularly, nor will its changes be incorporated into the upcoming V4 release.

2. As Vince notes, your copy of weewx.conf has not been configured. Normally, this is done by setup.py, although it can be done either by hand, or by using the utility wee_config. Neither is supported under Windows.

-tk


--
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/24f6c3b8-c8db-4a12-892b-48af10117623%40googlegroups.com.

p q

unread,
Sep 16, 2019, 7:14:28 PM9/16/19
to weewx...@googlegroups.com
If you must run Windows, you might be able to use a virtual machine running Linux. I use Oracle Virtualbox on my main Windows PC to run Weewx. I use it as a test/dev platform for my main Weewx site on a Raspberry PI. Virtualbox is a free download. 

I would recommend you get a cheap linux box, like a Raspberry Pi ($35-$80) to run Weewx. The lower spec, older, cheaper, ones do it just fine.



--
Peter Quinn
(415)794-2264

Greg from Oz

unread,
Sep 16, 2019, 7:17:18 PM9/16/19
to weewx-user
Hi,
I don't use windows but I heard there is a windows subsystem for Linux (WSL). 

I wonder if weewx would work in that or is it limited to what i can do?

I use Linux.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Lance Wood

unread,
Sep 16, 2019, 7:17:35 PM9/16/19
to weewx-user
I'll take a look at it and define the station and anything else that I can. Thanks

Lance Wood

unread,
Sep 16, 2019, 7:20:08 PM9/16/19
to weewx-user
Appreciate all the ideas. This has become much more work that I expected. I already have a website and was hoping to get weewx working to use parts of it.

mountainbase.com is my site just for fun.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

--
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...@googlegroups.com.


--
Peter Quinn
(415)794-2264

Lance W

unread,
Sep 16, 2019, 7:36:26 PM9/16/19
to weewx-user
It didn't like what I put in for station type, I used "Davis Vantage Pro Plus". Is it looking for something else?


On Monday, September 16, 2019 at 3:44:36 PM UTC-7, vince wrote:

vince

unread,
Sep 17, 2019, 10:09:06 AM9/17/19
to weewx-user
On Monday, September 16, 2019 at 4:36:26 PM UTC-7, Lance W wrote:
It didn't like what I put in for station type, I used "Davis Vantage Pro Plus". Is it looking for something else?



You really need to read the online documentation  before you get REALLY frustrated.   Seems like you're just guessing+hoping at this point.




Cliff Kotnik

unread,
Nov 6, 2019, 6:45:23 PM11/6/19
to weewx-user
I am new to WeeWX.  I have a USB connected Davis Vantage Vue.  My goal is to make the weather data available to observatory control software which runs in Windows.  I installed WeeWX under  WSL and found it very easy to do.  It is still early days, but it seems to work just fine.  If there is interest, I can post a simple recipe of what I did.

Regards,
Cliff
Reply all
Reply to author
Forward
0 new messages