[weewx-user] Re: A station map question
Perfect. Thanks, Wayne On Thursday, March 30, 2023 at 12:54:23 PM UTC-5 vince wrote: > Old inactive ones out automagically after a few weeks. The new ones > should show up pretty quickly if you have a different URL. > > > On Thursday, March 30, 2023 at 8:18:21 AM UTC-7 Wayne Rademacher wrote: > >> My station is registered and shows up on the map as expected.When I >> access the map and select my station is reports back with a variety of >> URL's. I believe this is because during the installation, setup and tuning >> of WeeWX I used multiple URL's (my bad). >> >> My question is: Does the station map purge the old/out dated URL's? If >> not, how does this get corrected? >> >> BTW, my published URL is now fixed and won't change. >> >> Wayne >> >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cfe1d54a-09b9-4d91-8f89-7a94a2ee7018n%40googlegroups.com.
[weewx-user] A station map question
My station is registered and shows up on the map as expected.When I access the map and select my station is reports back with a variety of URL's. I believe this is because during the installation, setup and tuning of WeeWX I used multiple URL's (my bad). My question is: Does the station map purge the old/out dated URL's? If not, how does this get corrected? BTW, my published URL is now fixed and won't change. Wayne -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/633b46ce-1d4e-44e3-af68-e4ffc13fa9d7n%40googlegroups.com.
[weewx-user] Re: How do I change the number of displayed decimal places?
I had previously looked through the customization guide but failed to realize the usefulness of the information.After working through this practical exercise, I revisited the customization guide and a light bulb came on!I now have a much better understanding of the weewx customization innerworkings. Perhaps this exercise will help others that are struggling with system customization. Wayne On Wednesday, March 29, 2023 at 6:51:25 PM UTC-5 gjr80 wrote: > Perhaps not in the exact words of this issue, but the Customising units > and unit group section > <http://weewx.com/docs/customizing.htm#customizing_units> in the > Customisation Guide covers pretty much everything in this thread. > > Gary > On Thursday, 30 March 2023 at 06:33:45 UTC+10:30 vince wrote: > >> Wow - I never put the pieces together in my brain before. Thanks for >> replying with what you did rather than just "solved". >> >> Anybody willing to volunteer adding a brief wiki page for this one ? It >> seems like a great example to use for mapping something to a particular >> units group, as well as editing the string format. >> >> >> On Wednesday, March 29, 2023 at 12:42:32 PM UTC-7 Wayne Rademacher wrote: >> >> Here are the required changes: >> I added this to extensions.py as suggested by an oldman and Karen K >> */usr/share/weewx/user extensions.py* >> >> *import weewx.units* >> >> *weewx.units.obs_group_dict['windBatteryStatus'] = >> ''group_volt'weewx.units.obs_group_dict['luminosity'] = 'group_illuminance'* >> >> I changed the [[stringformats]] in the belchertown skin.conf to get the >> right amount of digits. >> *[[StringFormats]]* >> *#volt = %.1f* >> *volt= %.2f* >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/92fc84ad-b91a-481f-b684-8a2983f12041n%40googlegroups.com.
Re: [weewx-user] Re: Belchertown and Tempest battery voltage
Dan, We solved the decimal point issue. Check out the conversation: How do I change the number of displayed decimal places? Wayne On Tuesday, March 28, 2023 at 9:36:51 PM UTC-5 Dan Roman wrote: > Thanks Wayne, very helpful. I had made some progress but this sped things > up for me. I have been slowly learning more about custom configuring weewx > and its skins. Info is out there, depending on what you are looking for it > can be scattered. My next step is to figure out how to change the number > of decimal points displayed for the battery voltage and to get the > lightning strike count working. > > I added lightning_strikes to the Belchertown observation list but right > now it is displaying "Invalid observation". Not sure if this is because > there are no thunderstorms or if there is a problem with the reading. I'll > wait until I get a thunderstorm and see what is displayed. I would like to > dig into the code and figure out if I can change "Invalid observation" to > "No lightning detected today" or something like that. Not sure it if is in > the skin or weewx but greping around should find it. > > Thanks again for your help. > > Dan > > > On Mon, Mar 27, 2023 at 3:54 PM Wayne Rademacher > wrote: > >> Dan, >> I have a Tempest and the Belchertown skin. >> >> All I did to get to display battery voltage was place the " >> windBatteryStatus" variable in the station observations string. I also >> added "luminosity" to the string. To use luminosity (Brightness) you >> will need to change the sensor map title from luxXX to luminosity. I >> included both the Station Observation string and my sensor map for your >> reference. Btw, you can also change the sensor titles in the weewx.conf >> file. >> >> Wayne >> >> station_observations = "barometer","dewpoint","outHumidity","rain", >> "luminosity", "UV", "cloud_cover", "windBatteryStatus" >> >> [[sensor_map]] >> outTemp = air_temperature.ST-00105xxx.obs_st >> outHumidity = relative_humidity.ST-00105xxx.obs_st >> pressure = station_pressure.ST-00105xxx.obs_st >> lightning_strikes = lightning_strike_count.ST-00105xxx.obs_st >> avg_distance = lightning_strike_avg_distance.ST-00105xxx.obs_st >> outTempBatteryStatus = battery.ST-00105xxx.obs_st >> windSpeed = wind_speed.ST-00105xxx.rapid_wind >> windDir = wind_direction.ST-00105xxx.rapid_wind >> luminosity = illuminance.ST-00105xxx.obs_st >> UV = uv.ST-00105xxx.obs_st >> rain = rain_accumulated.ST-00105xxx.obs_st >> windBatteryStatus = battery.ST-00105xxx.obs_st >> radiation = solar_radiation.ST-00105xxx.obs_st >> lightningXXX = distance.ST-00105xxx.evt_strike >> lightningYYY = energy.ST-00105xxx.evt_strike >> radiation = solar_radiation.ST-00105xxx.obs_st >> lightningXXX = distance.ST-00105xxx.evt_strike >> lightningYYY = energy.ST-001056xxx.evt_strike >> >> On Saturday, March 25, 2023 at 8:51:25 PM UTC-5 vince wrote: >> >>> You need to actually call the get_battery_status() routine too... >>> >>> Take a look at what the Seasons skin does... >>> >>> On Saturday, March 25, 2023 at 5:06:29 PM UTC-7 Dan Roman wrote: >>> >>>> I've been running stock Weewx for about a year and finally got around >>>> to trying other skins. First one I tried is Belchertown and I like it a >>>> lot. I have most things working but when I tried to update about.inc to >>>> display the Tempest battery voltage the same way I added it to the Seasons >>>> skin, it does not seem to work. Do I need to do something differently? >>>> Below is what I added to sensors.inc in the Seasons skin. I copied and >>>> pasted it into about.inc and it does not display anything. >>>> >>>> I did a little digging around in the Seasons skin to see if anything in >>>> the configuration was different and needed to be added to the >>>> configuration >>>> of Belchertown but did not see anything obvious. >>>> >>>> Thanks! >>>> >>>> ## Modified battery code for Tempest >>>> #def get_battery_status($x) >>>> #set $y = "{:.2f}".format($x) >>>> #if $x >= 2.455 >>>> OK - $y >>>> #else >>>> #if $x >=
Re: [weewx-user] Re: Belchertown and Tempest battery voltage
Dan, Be sure to checkout the other decimal display conversationwe figured out how the properly display the battery voltage and luminosity. *How do I change the number of displayed decimal places?* Wayne On Tuesday, March 28, 2023 at 9:36:51 PM UTC-5 Dan Roman wrote: > Thanks Wayne, very helpful. I had made some progress but this sped things > up for me. I have been slowly learning more about custom configuring weewx > and its skins. Info is out there, depending on what you are looking for it > can be scattered. My next step is to figure out how to change the number > of decimal points displayed for the battery voltage and to get the > lightning strike count working. > > I added lightning_strikes to the Belchertown observation list but right > now it is displaying "Invalid observation". Not sure if this is because > there are no thunderstorms or if there is a problem with the reading. I'll > wait until I get a thunderstorm and see what is displayed. I would like to > dig into the code and figure out if I can change "Invalid observation" to > "No lightning detected today" or something like that. Not sure it if is in > the skin or weewx but greping around should find it. > > Thanks again for your help. > > Dan > > > On Mon, Mar 27, 2023 at 3:54 PM Wayne Rademacher > wrote: > >> Dan, >> I have a Tempest and the Belchertown skin. >> >> All I did to get to display battery voltage was place the " >> windBatteryStatus" variable in the station observations string. I also >> added "luminosity" to the string. To use luminosity (Brightness) you >> will need to change the sensor map title from luxXX to luminosity. I >> included both the Station Observation string and my sensor map for your >> reference. Btw, you can also change the sensor titles in the weewx.conf >> file. >> >> Wayne >> >> station_observations = "barometer","dewpoint","outHumidity","rain", >> "luminosity", "UV", "cloud_cover", "windBatteryStatus" >> >> [[sensor_map]] >> outTemp = air_temperature.ST-00105xxx.obs_st >> outHumidity = relative_humidity.ST-00105xxx.obs_st >> pressure = station_pressure.ST-00105xxx.obs_st >> lightning_strikes = lightning_strike_count.ST-00105xxx.obs_st >> avg_distance = lightning_strike_avg_distance.ST-00105xxx.obs_st >> outTempBatteryStatus = battery.ST-00105xxx.obs_st >> windSpeed = wind_speed.ST-00105xxx.rapid_wind >> windDir = wind_direction.ST-00105xxx.rapid_wind >> luminosity = illuminance.ST-00105xxx.obs_st >> UV = uv.ST-00105xxx.obs_st >> rain = rain_accumulated.ST-00105xxx.obs_st >> windBatteryStatus = battery.ST-00105xxx.obs_st >> radiation = solar_radiation.ST-00105xxx.obs_st >> lightningXXX = distance.ST-00105xxx.evt_strike >> lightningYYY = energy.ST-00105xxx.evt_strike >> radiation = solar_radiation.ST-00105xxx.obs_st >> lightningXXX = distance.ST-00105xxx.evt_strike >> lightningYYY = energy.ST-001056xxx.evt_strike >> >> On Saturday, March 25, 2023 at 8:51:25 PM UTC-5 vince wrote: >> >>> You need to actually call the get_battery_status() routine too... >>> >>> Take a look at what the Seasons skin does... >>> >>> On Saturday, March 25, 2023 at 5:06:29 PM UTC-7 Dan Roman wrote: >>> >>>> I've been running stock Weewx for about a year and finally got around >>>> to trying other skins. First one I tried is Belchertown and I like it a >>>> lot. I have most things working but when I tried to update about.inc to >>>> display the Tempest battery voltage the same way I added it to the Seasons >>>> skin, it does not seem to work. Do I need to do something differently? >>>> Below is what I added to sensors.inc in the Seasons skin. I copied and >>>> pasted it into about.inc and it does not display anything. >>>> >>>> I did a little digging around in the Seasons skin to see if anything in >>>> the configuration was different and needed to be added to the >>>> configuration >>>> of Belchertown but did not see anything obvious. >>>> >>>> Thanks! >>>> >>>> ## Modified battery code for Tempest >>>> #def get_battery_status($x) >>>> #set $y = "{:.2f}".format($x) >>>> #if $x >= 2.455 >>>>
[weewx-user] Re: How do I change the number of displayed decimal places?
It works!!! Thanks everyone, Wayne Here are the required changes: I added this to extensions.py as suggested by an oldman and Karen K */usr/share/weewx/user extensions.py* *import weewx.units* *weewx.units.obs_group_dict['windBatteryStatus'] = ''group_volt'weewx.units.obs_group_dict['luminosity'] = 'group_illuminance'* I changed the [[stringformats]] in the belchertown skin.conf to get the right amount of digits. *[[StringFormats]]* *#volt = %.1f* *volt= %.2f* *[image: screen.PNG]* On Wednesday, March 29, 2023 at 1:52:23 PM UTC-5 Karen K wrote: > I guess `windBatteryStatus` is not a boolean value (i.e. true or false) > but an integer or real value. So you may want to choose another observation > group. > > The decimal places are set in section StringFormats for the > respective units (not observation groups). > > an oldman schrieb am Mittwoch, 29. März 2023 um 20:08:09 UTC+2: > >> Hi >> this is how i did it. >> using *WeeWX version: 4.10.1 Seasons version: 4.10.1 Python version: >> 3.10.10* >> *in the user dir is a file extensions.py* >> *i add* >> import weewx.units >> weewx.units.obs_group_dict['windBatteryStatus'] = 'group_boolean' >> weewx.units.obs_group_dict['luminosity'] = 'group_illuminance' >> then restart weewx >> >> hope this helps >> >> On Wednesday, March 29, 2023 at 12:14:53 PM UTC-5 vince wrote: >> >>> For this original question: >>> >>>- you're using luminosity and windBatteryStatus which are in the db >>>schema >>>- but I can't see how to determine what they map to by default >>>- so I can't suggest which [[StringFormats]] edits to make in >>>skin.conf >>> >>> This is one where there might not be a simple example documented as far >>> as I can tell. >>> >>>- how do you know which [Units] [[Groups]] category a db element is >>>mapped to by default ? >>>- how do you change which category a db element is mapped to ? >>>- how can you (can you?) add a new units group if the default units >>>don't have anything that matches your needs ? >>> >>> >>> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4d54dbd3-b1a9-47f8-b2fd-68c49bb1d6d3n%40googlegroups.com.
[weewx-user] Re: How do I change the number of displayed decimal places?
*To display the data, I simply added the observation title from my sensor map to the "station_observations" string in the weewx.conf file.* *Since I was able to change the name of the observation (i.e. luminosity to Brightness) I was hoping the data could also be formatted. I included snippets from my weewx.conf file that shows how I got the information to show up on the belchertown screen.* *Regards,* *Wayne* station_observations = "barometer","dewpoint","outHumidity","rain", " luminosity", "UV", "cloud_cover", "windBatteryStatus" [[sensor_map]] outTemp = air_temperature.ST-00105xxx.obs_st outHumidity = relative_humidity.ST-00105xxx.obs_st pressure = station_pressure.ST-00105xxx.obs_st lightning_strikes = lightning_strike_count.ST-00105xxx.obs_st avg_distance = lightning_strike_avg_distance.ST-00105xxx.obs_st outTempBatteryStatus = battery.ST-00105xxx.obs_st windSpeed = wind_speed.ST-00105xxx.rapid_wind windDir = wind_direction.ST-00105xxx.rapid_wind luminosity = illuminance.ST-00105xxx.obs_st UV = uv.ST-00105xxx.obs_st rain = rain_accumulated.ST-00105xxx.obs_st windBatteryStatus = battery.ST-00105xxx.obs_st radiation = solar_radiation.ST-00105xxx.obs_st lightningXXX = distance.ST-00105xxx.evt_strike lightningYYY = energy.ST-00105xxx.evt_strike [[[Labels]]] # Users frequently change the labels for these observation types Generic windBatteryStatus = Battery luminosity= Brightness # inHumidity = Inside Humidity On Wednesday, March 29, 2023 at 6:03:10 AM UTC-5 Karen K wrote: > @vince: That is the Belchertown skin. The area schown in the screenshot is > configured in a single entry in skin.conf, listing the observation types to > be displayed. There is no special configuration for decimal places > available. So the general configuration of WeeWX applies. > > vince schrieb am Mittwoch, 29. März 2023 um 06:21:21 UTC+2: > >> You'd have to share how you made that Brightness and Battery stuff appear >> in the skin, was there an .inc file possibly ? >> >> You might look at your skin.conf [[StringFormats]] section and add >> entries there for whatever units your Brightness and Battery are set to use >> and set the format there. >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7947810c-9314-4858-b3f0-86545beceb8cn%40googlegroups.com.
[weewx-user] How do I change the number of displayed decimal places?
Hi, I would like to know if there is a way to change the displayed decimal places of an observation. I have searched the WeeWX setup and user guides, I have also stepped through my weewx.conf file but can't seem to find out how this is done. I have attached a screen shot showing my current display. I would like to trim off (4) digits from both Brightness and Battery. I am new to this group so please let me know if I need to supply more or different information. windBatteryStatus = Battery luminosity (luxXXX) = Brightness Here is my PWS configuration: - WeatherFlow Tempest - WeeWX Ver 4.10.2 - Belchertown Skin Ver. 1.3 - Pi4 Thanks, Wayne [image: display.JPG] -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/efa8c90e-9f1f-4738-91e6-3da0eee0f904n%40googlegroups.com.
[weewx-user] Re: Belchertown and Tempest battery voltage
Dan, I have a Tempest and the Belchertown skin. All I did to get to display battery voltage was place the "windBatteryStatus" variable in the station observations string. I also added "luminosity" to the string. To use luminosity (Brightness) you will need to change the sensor map title from luxXX to luminosity. I included both the Station Observation string and my sensor map for your reference. Btw, you can also change the sensor titles in the weewx.conf file. Wayne station_observations = "barometer","dewpoint","outHumidity","rain", "luminosity", "UV", "cloud_cover", "windBatteryStatus" [[sensor_map]] outTemp = air_temperature.ST-00105xxx.obs_st outHumidity = relative_humidity.ST-00105xxx.obs_st pressure = station_pressure.ST-00105xxx.obs_st lightning_strikes = lightning_strike_count.ST-00105xxx.obs_st avg_distance = lightning_strike_avg_distance.ST-00105xxx.obs_st outTempBatteryStatus = battery.ST-00105xxx.obs_st windSpeed = wind_speed.ST-00105xxx.rapid_wind windDir = wind_direction.ST-00105xxx.rapid_wind luminosity = illuminance.ST-00105xxx.obs_st UV = uv.ST-00105xxx.obs_st rain = rain_accumulated.ST-00105xxx.obs_st windBatteryStatus = battery.ST-00105xxx.obs_st radiation = solar_radiation.ST-00105xxx.obs_st lightningXXX = distance.ST-00105xxx.evt_strike lightningYYY = energy.ST-00105xxx.evt_strike radiation = solar_radiation.ST-00105xxx.obs_st lightningXXX = distance.ST-00105xxx.evt_strike lightningYYY = energy.ST-001056xxx.evt_strike On Saturday, March 25, 2023 at 8:51:25 PM UTC-5 vince wrote: > You need to actually call the get_battery_status() routine too... > > Take a look at what the Seasons skin does... > > On Saturday, March 25, 2023 at 5:06:29 PM UTC-7 Dan Roman wrote: > >> I've been running stock Weewx for about a year and finally got around to >> trying other skins. First one I tried is Belchertown and I like it a lot. >> I have most things working but when I tried to update about.inc to display >> the Tempest battery voltage the same way I added it to the Seasons skin, it >> does not seem to work. Do I need to do something differently? Below is >> what I added to sensors.inc in the Seasons skin. I copied and pasted it >> into about.inc and it does not display anything. >> >> I did a little digging around in the Seasons skin to see if anything in >> the configuration was different and needed to be added to the configuration >> of Belchertown but did not see anything obvious. >> >> Thanks! >> >> ## Modified battery code for Tempest >> #def get_battery_status($x) >> #set $y = "{:.2f}".format($x) >> #if $x >= 2.455 >> OK - $y >> #else >> #if $x >= 2.41 >> LOW - mode 1 - $y >> #else >> #if $x >= 2.39 >> LOW - mode 2 - $y >> #else >> LOW - mode 3 - $y >> #end if >> #end if >> #end if >> #end def >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/693d4ce5-5196-47f9-ac10-0b2c8525ebcbn%40googlegroups.com.