And according to units.py the observation type wetbulb temperature is called outWetbulb and not wetbulb_t.
Consider that in MQTT output the underscore is used to separate the observation type name from the unit name. Tom Keffer schrieb am Sonntag, 29. Oktober 2023 um 12:23:38 UTC+1: > If you followed the directions at the top of your file, you're almost > there. Now you need to make sure your new type is put in the archive > record. Do this by adding it to the list of types under [StdWXCalculate]: > > [StdWXCalculate] > [[Calculations]] > # How to calculate derived quantities. Possible values are: > # hardware - use the value provided by hardware > # software - use the value calculated by weewx > # prefer_hardware - use value provide by hardware if available, > # otherwise use value calculated by weewx > > wetbulb_t = software > ... > > For details, see the section *Including in loop packets and archive > records > <https://github.com/weewx/weewx/wiki/xtypes#including-in-loop-packets-and-archive-records>* > in > the wiki entry. > > One other thing: the spelling is "wetbulb", not "wetbulp". > > > On Sun, Oct 29, 2023 at 2:57 AM Meteo Oberwallis <[email protected]> > wrote: > >> Hello everyone >> I have implemented the wetbulp.py file in my weewx. But now I have >> noticed that after creating the column in the database, the value is not >> saved. Could it be that this line is missing in "wetbulb.py"? If so, what >> would it have to look like for it to work? >> Thx >> [email protected] schrieb am Donnerstag, 17. Dezember 2020 um 22:09:09 >> UTC+1: >> >>> thank you, i will do this in database. >>> >>> gjr80 schrieb am Donnerstag, 17. Dezember 2020 um 21:26:28 UTC+1: >>> >>>> Yes, that will be it. Loading and calculating for a day will be >>>> straightforward, though it will involve a lot of complex calculations >>>> being >>>> done each time you call the aggregate (and this will occur each time you >>>> run the report, so potentially every archive interval minutes). On the >>>> other hand, adding wet bulb to the database will involve one complex >>>> calculation every archive interval and any time you use an aggregate it is >>>> a simple hit on the database. In this case I think it may be better to add >>>> wet bulb to the database. >>>> >>>> Gary >>>> >>>> On Friday, 18 December 2020 at 06:14:05 UTC+10 [email protected] wrote: >>>> >>>>> No, i just adjustet the vaporpressure.py example. >>>>> >>>>> But i see what you mean, i have to calculate it by my own, this means >>>>> i have to load all data for a day and calculate it. >>>>> im not shure i can do this. >>>>> i quess its easyer and better to do this in the database. >>>>> >>>>> gjr80 schrieb am Donnerstag, 17. Dezember 2020 um 20:37:57 UTC+1: >>>>> >>>>>> Hi, >>>>>> >>>>>> When you wrote your xtype extension what methods did you implement? >>>>>> Did you implement get_aggregate()? >>>>>> >>>>>> Gary >>>>>> >>>>>> On Friday, 18 December 2020 at 02:41:34 UTC+10 [email protected] >>>>>> wrote: >>>>>> >>>>>>> Hi >>>>>>> i made a xtype extension for a wetbulp temperaur. this worsks fine >>>>>>> with the $current tag and the image generator. >>>>>>> >>>>>>> with tag $day.wetbulp_t.min the chetagenerator rise no error but >>>>>>> whrites $day.wetbulp_t.min in the file... >>>>>>> >>>>>>> do i have do add wetbulp_t in database for get this to work? >>>>>>> >>>>>> -- >> > 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/f75db5a1-631b-42b6-ba93-40c6701f2de3n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/f75db5a1-631b-42b6-ba93-40c6701f2de3n%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/f58483da-d45b-48f6-a9b7-720ad8fd0dd3n%40googlegroups.com.
