wee_database

68 views
Skip to first unread message

Mark Fraser

unread,
Nov 8, 2022, 4:24:17 AM11/8/22
to weewx...@googlegroups.com
I'm planning on renaming 2 columns in my weewx database using
wee_database --rename-column --to-name.

Before I do this is it recommended that I stop weewx first?

Tom Keffer

unread,
Nov 8, 2022, 7:30:47 AM11/8/22
to weewx...@googlegroups.com
For any mutating change you should not only stop weewx, but backup the database.

--
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/e9f83d1b-ae07-f160-8800-74a1c84cab00%40gmail.com.

Mark Fraser

unread,
Nov 8, 2022, 7:33:59 AM11/8/22
to weewx...@googlegroups.com
On 08/11/2022 12:30, Tom Keffer wrote:
> For any mutating change you should not only stop weewx, but backup the
> database.
>
> On Tue, Nov 8, 2022 at 1:24 AM Mark Fraser <mfr...@gmail.com
> <mailto:mfr...@gmail.com>> wrote:
>
> I'm planning on renaming 2 columns in my weewx database using
> wee_database --rename-column --to-name.
>
> Before I do this is it recommended that I stop weewx first?

Yes, I was planning on doing a backup too. So I think my plan is:
1) Edit weewx.conf
2) Stop weewx
3) Back up database
4) Rename columns
5) Restart weewx


Tom Keffer

unread,
Nov 8, 2022, 7:45:57 AM11/8/22
to weewx...@googlegroups.com
Don't know why you'd have to edit weewx.conf, but that looks reasonable.

--
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.

Mark Fraser

unread,
Nov 8, 2022, 7:53:19 AM11/8/22
to weewx...@googlegroups.com
On 08/11/2022 12:45, Tom Keffer wrote:
> Don't know why you'd have to edit weewx.conf, but that looks reasonable.
>
> On Tue, Nov 8, 2022 at 4:33 AM Mark Fraser <mfr...@gmail.com
> <mailto:mfr...@gmail.com>> wrote:
>
> On 08/11/2022 12:30, Tom Keffer wrote:
> > For any mutating change you should not only stop weewx, but
> backup the
> > database.
> >
> > On Tue, Nov 8, 2022 at 1:24 AM Mark Fraser <mfr...@gmail.com
> <mailto:mfr...@gmail.com>
> > <mailto:mfr...@gmail.com <mailto:mfr...@gmail.com>>> wrote:
> >
> >     I'm planning on renaming 2 columns in my weewx database using
> >     wee_database --rename-column --to-name.
> >
> >     Before I do this is it recommended that I stop weewx first?
>
> Yes, I was planning on doing a backup too. So I think my plan is:
> 1) Edit weewx.conf
> 2) Stop weewx
> 3) Back up database
> 4) Rename columns
> 5) Restart weewx

I need to change the name of 2 of the sensors, hence why I'm renaming
the columns in the database.

Reply all
Reply to author
Forward
0 new messages