Looking for simulator.py

53 views
Skip to first unread message

DR

unread,
May 2, 2026, 8:18:53 PM (9 days ago) May 2
to 'Jon Fear' via weewx-user
I am following the documentation on developing a custom driver and the
author suggests studying fileparse.py which I can find easily enough,
but then also says simulator.py is a great way to begin and understand
what the WeeWx program expects from a driver.


I cannot find that file on my RaspOS  system, running 5.2 Weewx.

I've looked in the weewx-data area under examples and also in the venv
area. I looked for guidance in the WeeWx Where to find things Location
of WeeWx components, which using the nominal values, which I've poked
around in and still don't seem to find that code to study.


Can someone help me jump through the block I'm having at where to look
at for this file to examine and use as a guide to learn more?

Dale

Greg Troxel

unread,
May 2, 2026, 8:27:47 PM (9 days ago) May 2
to DR, 'Jon Fear' via weewx-user
DR <daleea...@gmail.com> writes:

> I am following the documentation on developing a custom driver and the
> author suggests studying fileparse.py which I can find easily enough,
> but then also says simulator.py is a great way to begin and understand
> what the WeeWx program expects from a driver.
>
> I cannot find that file on my RaspOS  system, running 5.2 Weewx.

You should check out the sources from git, and look there, rather than
looking in your installed system. Even if you can find it installed.

$ git remote -v
origin g...@github.com:weewx/weewx.git (fetch)
origin g...@github.com:weewx/weewx.git (push)

$ find . -name simulator.py
./src/weewx/drivers/simulator.py

Vince Skahan

unread,
May 2, 2026, 8:35:57 PM (9 days ago) May 2
to weewx-user
Brute force way:
       sudo find / -type f -name simulator.py -print

For a pip install the drivers are in your weewx-venv directory under lib/python3.NN/site-packages/weewx/drivers

For a dpkg installation "dpkg -L weewx | grep simulator" will show it is in /usr/share/weewx/weewx/drivers



Tom Keffer

unread,
May 2, 2026, 8:41:06 PM (9 days ago) May 2
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-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/a5d2b01d-9c48-4cd4-a00e-34d224087b53%40gmail.com.

DR

unread,
May 2, 2026, 8:44:01 PM (9 days ago) May 2
to weewx...@googlegroups.com
Thank  you.  I'm not familiar enough to have found it without your help.


I'm sort of in need of a break the rest of tonight and super appreciate
your pointing to them for me.

Dale


DR

unread,
May 2, 2026, 8:45:23 PM (9 days ago) May 2
to weewx...@googlegroups.com
Thank you.

I was just assuming the driver was somewhere in examples, etc. Somehow
when the choice of the 8 or so drivers with the core installation  the
configuration know how and where to find them, and I couldn't.

Thank  you very much!  Dale


Vince Skahan

unread,
May 2, 2026, 9:37:41 PM (9 days ago) May 2
to weewx-user
Don't overthink things.

If you run the dpkg then 'dpkg -L weewx' will report what is installed where with the exception of a couple things the installer puts into place programmatically.

If you run a pip installation everything is similarly in your weewx-venv or weewx-data directories.
Reply all
Reply to author
Forward
0 new messages