You're going to have to be more specific about what you're trying to accomplish. What database? The main WeeWX database? Or, something else?
If it's the main WeeWX database, you will need to add it to the schema, then arrange for the value to be put in the archive record, perhaps by using a WeeWX service. Then it will be automatically included. On Fri, Sep 20, 2024 at 12:10 PM vigilance wx <[email protected]> wrote: > i just want to save the daily value in seconds for example 230 to a > database i have already crated > > On Friday, September 20, 2024 at 5:00:39 PM UTC+1 Tom Keffer wrote: > >> It sounds like you're using an existing skin which is displaying >> something like >> >> 230 seconds less than yesterday >> >> >> and you want it to say >> >> 3 minutes 50 seconds less than yesterday >> >> >> Is that correct? If so, you may not have seen the release note *Breaking >> changes for skins that use delta times >> <https://www.weewx.com/docs/5.1/upgrade/#breaking-changes-for-skins-that-use-delta-times>.* >> This >> involves adding the suffix ".long_form" to get it to display time using >> minutes and seconds instead of just seconds. >> >> Or, are you asking about something else? >> >> -tk >> >> On Fri, Sep 20, 2024 at 8:27 AM vigilance wx <[email protected]> wrote: >> >>> hi sorry for not being clear >>> >>> i would like to log the daily change in the number of seconds for >>> daylight interval changes. >>> its is displayed on the weewx index page as "XYZ" seconds less/more >>> than yesterday >>> >>> not wanting to cause any issues within the weewx structure. i originally >>> made my own standalone script not using any of the weewx architecture, but >>> for some reason i am getting strange times >>> >>> therefore i would like to know how i can log the "XYZ" variable that is >>> displayed on the index page. i didnt want to start messing around blindly >>> within the weewx structure for fear of causing other problems >>> >>> >>> >>> >>> On Friday, September 20, 2024 at 3:28:40 PM UTC+1 Tom Keffer wrote: >>> >>>> I'm not really understanding your question. You have a Python script >>>> that calculates a delta time and you want to display it? Or, you want to >>>> know how to accurately do the calculation? >>>> >>>> -tk >>>> >>>> On Fri, Sep 20, 2024 at 5:02 AM vigilance wx <[email protected]> >>>> wrote: >>>> >>>>> From the weewx index page Its it possible to capture the valuve xyz >>>>> seconds less/more than yesterday >>>>> >>>>> “Today has 12 hours, 18 minutes, and 52 seconds of daylight, >>>>> 230 seconds less than yesterday” >>>>> >>>>> >>>>> >>>>> I have tried to make my own python scripts to log sunrise sunset times >>>>> and subtract them but they don’t seem as accurate as the weewx calculation >>>>> >>>>> >>>>> >>>>> How can I log this figure? >>>>> >>>>> >>>>> >>>>> Thanks for any advice >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/weewx-user/8d805477-8602-4c41-98c8-c2f3ac3180b2n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/weewx-user/8d805477-8602-4c41-98c8-c2f3ac3180b2n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>> 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 [email protected]. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/29287063-086d-4f70-98f3-5f82d8b88a72n%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/29287063-086d-4f70-98f3-5f82d8b88a72n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/32ac0f6b-d9c3-446d-8953-43d614f6a0b9n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/32ac0f6b-d9c3-446d-8953-43d614f6a0b9n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEBetTfKK4BXsjzh8MXZaQTwOeoFLXENSh-9SNUpqyTA4w%40mail.gmail.com.
