Installing weewx without root access

102 views
Skip to first unread message

Matthew Fields

unread,
Aug 9, 2023, 12:06:21 PM8/9/23
to weewx-user
Might seem like an odd request, but I'm trying to find some guidance on installing weewx as a normal user on a shared linux host without root access.

I'll be using websockets to get weather station data (Tempest Weatherflow), so I don't need serial or USB access on the server. My goal is to have weewx run on a shared cloud webserver (hosted by Bluehost). As a shared server, I do not have root access so I have to run it as a normal user.

I have access to the compiler, so I've been trying to install with the python installation instructions. I manage to get everything installed, though I keep running into a lot of fun trying getting weewx to run. I'm sure it has to be configuration settings I need to make, missing python modules, etc.

Rather than beating my head endlessly, has anyone installed weewx in a shared environment without root access (like bluehost)? Anyone know of any installation guidance for such an environment?

Graham Eddy

unread,
Aug 9, 2023, 10:26:11 PM8/9/23
to WeeWX User
read up on python ‘virtual environment’ (venv) to get your libraries etc in place.
running it while not logged in - best way depends upon your o/s (eg user mode of systemd)
⊣GE⊢

--
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/4272f256-db69-4a31-ae68-956f2ba6a6dcn%40googlegroups.com.

vince

unread,
Aug 9, 2023, 11:50:44 PM8/9/23
to weewx-user
If you're willing to do so, the easiest way is to install the v5 beta via 'pip' within a python virtual environment, as that defaults to running without any privileges required.   Getting it to startup on boot might be your only issue that I can think of.  I suppose you could write yourself a crontab entry that runs as you on boot as one approach you might try.

Matthew Fields

unread,
Aug 10, 2023, 1:52:21 PM8/10/23
to weewx-user
Thanks. Will see if that route works a bit better... Was definitely figuring I'd have to do something with cron to get it running on boot.
Reply all
Reply to author
Forward
0 new messages