Re: [weewx-user] Historical Weather Data

2021-04-26 Thread bwal...@gmail.com
Handwritten on paper, and I will tranfer it to as .csv like:
Time, Temp, Hum, observation_text
5.5.1983 20:00, 18, 50, Today was cloudy, afternoon some rain

modify schema add text collum
then populate with weewx --import

a tag could look like
$current($timestamp=*historikal-max-time*, $data_binding=*observation_text*
).raw

or even a itteration Tag.

can this work, or is it not worth the efford?


peterq...@gmail.com schrieb am Sonntag, 25. April 2021 um 15:28:22 UTC+2:

> Handwritten like on paper? Or in a text file or spreadsheet?
>
> On Sun, Apr 25, 2021, 4:59 AM bwal...@gmail.com  wrote:
>
>> Hello
>>
>> I may have access to old hand writen weather observations.
>> Is it possiple to put text observations in Database? Is this possibel or 
>> is  there no chance for getting this to work.
>> Dit somone try this bevore?
>>
>>
>> -- 
>> 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/b61eef6d-47e7-4c14-9171-ed1909c060f0n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/b61eef6d-47e7-4c14-9171-ed1909c060f0n%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/da761f59-9f02-4562-87db-7869175414ccn%40googlegroups.com.


[weewx-user] Historical Weather Data

2021-04-25 Thread bwal...@gmail.com
Hello

I may have access to old hand writen weather observations.
Is it possiple to put text observations in Database? Is this possibel or 
is  there no chance for getting this to work.
Dit somone try this bevore?


-- 
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/b61eef6d-47e7-4c14-9171-ed1909c060f0n%40googlegroups.com.


[weewx-user] image genarator/skin.config

2021-02-01 Thread bwal...@gmail.com


Hi

 i have some problems with image genaration.

First i found out, if no font is specified or (font is not found), change 
of of fontsize has  no effekt.

 

im also not able to change line width:

sektion in skin config:

# Default colors for the plot lines. These can be overridden for

# individual lines using option 'color'

chart_line_width = 3, 1, 1

chart_line_colors = "#4282b4", "#b44242" , "#42b442"

 

"chart_line_colors" as hex should be in quotes, unlike in the decription of 
imagegenerator.

 

an an other wired thing:

uv plot weekly  could be more than 16?
not shure whats going on there...

 by the way no errors in logfile.

Raspi 4B

Davis vantage2 with uv sensor.

weewx 4.3.0

-- 
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/98cfa1f8-b5b4-425f-beda-54aba3c9c20en%40googlegroups.com.
###
# $Id: skin.conf 2749 2014-11-29 18:15:24Z tkeffer $  #
# Copyright (c) 2010 Tom Keffer#
# SOFA SKIN (c) 2015 Sven Reifschneider #
# Niculskin (c) 2016-2020 Nico Gulden #
# NICULSKIN CONFIGURATION FILE#
###

[Extras]
# Extra tags for NeoWX

# Description of your weather site.
# This is used in the meta tag.
description = "Wetter in Ischgl"

# Your name for the footer copyright
you = "Wiart´s Benni"

# Maps
# Please comment out every map you don't use.
# Otherwise you may see some white, empty boxes.

map_1_image_url = 
"https://lawine.tirol.gv.at/data/grafiken/540/standard/dreitage/nachtweide.png;
map_1_link_url  = "https://www.lawis.at/station/;

map_2_image_url = 
"https://lawine.tirol.gv.at/data/grafiken/540/standard/dreitage/pischgraben.png;
map_2_link_url  = "https://www.lawis.at/station/;

# Here you have even more maps if you need them.
#map_3_image_url = "http://images.blitzortung.org/Images/image_b_de.png;
#map_3_link_url = ""
#map_4_image_url = ""
#map_4_link_url  = ""

[[Translation]]
# Here you find all text strings from the template.
# You just need to adjust these, not the template files
language  = "de"

# Page titles
title_suffix  = "Wetter"
title_current = "Aktuell"
title_week= "Woche"
title_month   = "Monat"
title_year= "Jahr"
title_archive = "Archiv"
title_maps= "Karten"

# Weather data
temperatures  = "Temperatur"
out_temp  = "Außen Temperatur"
out_humidity  = "Außen Luftfeuchte"
barometer = "Barometer"
baro_trend= "Trend"
wind  = "Wind"
wind_rms  = "eff."
wind_avg  = "durchs."
wind_dir  = "Wind Richtung"
wind_vector   = "Wind Vektor"
vector_avg= "Vektor durchs."
rain  = "Regen"
rain_rate = "Regen Rate"
rain_total= "Gesamt Regen"
inside_temp   = "Innen Temperatur"
inside_humid  = "Innen Luftfeuchte"
wind_chill= "Wind Chill"
dewpoint  = "Taupunkt"
heat_index= "Hitze Index"
uv= "UV Index"
radiation = "Sonnenstrahlung"
rxcheck   = "Signal Quality"
extratemp = "Pond Temperature"

# High / Low labels (short)
high  = "max"
low   = "min"

# Almanac
more_button  = "mehr"
moon_full= "Voll"
sun  = "Sonne"
moon = "Mond"
start_civil_twilight = "Morgendämmerung"
sunrise  = "Sonnenaufgang"
transit  = "Höchststand"
sunset   = "Sonnenuntergang"
end_civil_twilight   = "Abenddämmerung"
azimuth  = "Azimut"
altitude = "Altitude"
right_ascension  = "Rektaszesion"
declination  = "Declination"
equinox  = "Tag und Nachtgleiche"
solstice = "Sonnenwende"
rise = "Aufgang"
set  = "Untergang"
full_moon= "Vollmond"
new_moon = "Neumond"
phase= "Phase"

# Archive
archive_title = "Archiv"
archive_month = "Monats Archiv"
archive_year  = "Jahres Archiv"

# Maps
maps_title= "Karten"

## Template Extras

## Current radar animation 3 

[weewx-user] issues imagegenerator/skin.conf

2021-01-31 Thread bwal...@gmail.com
Hi

First i found out, if no font is specified or (font is not found), change 
of of fontsize has  no effekt.

im also not able to change line with:
skin config:
# Default colors for the plot lines. These can be overridden for
# individual lines using option 'color'
chart_line_width = 20, 1, 1
chart_line_colors = "#4282b4", "#b44242" , "#42b442"

chart_line_colors as hex should be in quotes, unlike in the decription of 
imagegenerator.

an an other wired thing:
uv plot weekly  could be more than 16?
in general uv in cheetagenerator seems to less

Raspi 4B
Davis vantage2 with uv sensor.
weewx 4.3.0


-- 
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/87cb368f-ebb9-4cba-9aeb-74473b4d9bc1n%40googlegroups.com.
###
# $Id: skin.conf 2749 2014-11-29 18:15:24Z tkeffer $  #
# Copyright (c) 2010 Tom Keffer#
# SOFA SKIN (c) 2015 Sven Reifschneider #
# Niculskin (c) 2016-2020 Nico Gulden #
# NICULSKIN CONFIGURATION FILE#
###

[Extras]
# Extra tags for NeoWX

# Description of your weather site.
# This is used in the meta tag.
description = "Wetter in Ischgl"

# Your name for the footer copyright
you = "Wiart´s Benni"

# Maps
# Please comment out every map you don't use.
# Otherwise you may see some white, empty boxes.

map_1_image_url = 
"https://lawine.tirol.gv.at/data/grafiken/540/standard/dreitage/nachtweide.png;
map_1_link_url  = "https://www.lawis.at/station/;

map_2_image_url = 
"https://lawine.tirol.gv.at/data/grafiken/540/standard/dreitage/pischgraben.png;
map_2_link_url  = "https://www.lawis.at/station/;

# Here you have even more maps if you need them.
#map_3_image_url = "http://images.blitzortung.org/Images/image_b_de.png;
#map_3_link_url = ""
#map_4_image_url = ""
#map_4_link_url  = ""

[[Translation]]
# Here you find all text strings from the template.
# You just need to adjust these, not the template files
language  = "de"

# Page titles
title_suffix  = "Wetter"
title_current = "Aktuell"
title_week= "Woche"
title_month   = "Monat"
title_year= "Jahr"
title_archive = "Archiv"
title_maps= "Karten"

# Weather data
temperatures  = "Temperatur"
out_temp  = "Außen Temperatur"
out_humidity  = "Außen Luftfeuchte"
barometer = "Barometer"
baro_trend= "Trend"
wind  = "Wind"
wind_rms  = "eff."
wind_avg  = "durchs."
wind_dir  = "Wind Richtung"
wind_vector   = "Wind Vektor"
vector_avg= "Vektor durchs."
rain  = "Regen"
rain_rate = "Regen Rate"
rain_total= "Gesamt Regen"
inside_temp   = "Innen Temperatur"
inside_humid  = "Innen Luftfeuchte"
wind_chill= "Wind Chill"
dewpoint  = "Taupunkt"
heat_index= "Hitze Index"
uv= "UV Index"
radiation = "Sonnenstrahlung"
rxcheck   = "Signal Quality"
extratemp = "Pond Temperature"

# High / Low labels (short)
high  = "max"
low   = "min"

# Almanac
more_button  = "mehr"
moon_full= "Voll"
sun  = "Sonne"
moon = "Mond"
start_civil_twilight = "Morgendämmerung"
sunrise  = "Sonnenaufgang"
transit  = "Höchststand"
sunset   = "Sonnenuntergang"
end_civil_twilight   = "Abenddämmerung"
azimuth  = "Azimut"
altitude = "Altitude"
right_ascension  = "Rektaszesion"
declination  = "Declination"
equinox  = "Tag und Nachtgleiche"
solstice = "Sonnenwende"
rise = "Aufgang"
set  = "Untergang"
full_moon= "Vollmond"
new_moon = "Neumond"
phase= "Phase"

# Archive
archive_title = "Archiv"
archive_month = "Monats Archiv"
archive_year  = "Jahres Archiv"

# Maps
maps_title= "Karten"

## Template Extras

## Current radar animation 3 hour loop
#radar_img = 

[weewx-user] Re: xtype tag

2020-12-17 Thread bwal...@gmail.com
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 bwal...@gmail.com 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 bwal...@gmail.com 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.minin 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/88e9787a-05d4-47cf-83c5-7e04f4145d03n%40googlegroups.com.


[weewx-user] Re: xtype tag

2020-12-17 Thread bwal...@gmail.com
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 bwal...@gmail.com 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.minin 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c9c7b1eb-6979-4c74-b8d9-36522dc99a49n%40googlegroups.com.
#
#Copyright (c) 2020 Tom Keffer 
#
#See the file LICENSE.txt for your full rights.
#
"""This example shows how to extend the XTypes system with a new type, wetbulp_t, the vapor
pressure of water.

REQUIRES WeeWX V4.2 OR LATER!

To use:
1. Stop weewxd
2. Put this file in your user subdirectory.
3. In weewx.conf, subsection [Engine][[Services]], add WetbulptemperureService to the list
"xtype_services". For example, this means changing this

[Engine]
[[Services]]
xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater

to this:

[Engine]
[[Services]]
xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, user.wetbulp.wetbulpService



4. Restart weewxd

"""
import math

import weewx
import weewx.units
import weewx.xtypes
from weewx.engine import StdService
from weewx.units import ValueTuple


class WetBulp(weewx.xtypes.XType):

def __init__(self, algorithm='simple'):
# Save the algorithm to be used.
self.algorithm = algorithm.lower()

def get_scalar(self, obs_type, record, db_manager):
# We only know how to calculate 'vapor_p'. For everything else, raise an exception UnknownType
if obs_type != 'wetbulp_t':
raise weewx.UnknownType(obs_type)

# We need outTemp in order to do the calculation.
if 'outTemp' not in record or record['outTemp'] is None:
raise weewx.CannotCalculate(obs_type)

# We have everything we need. Start by forming a ValueTuple for the outside temperature.
# To do this, figure out what unit and group the record is in ...
unit_and_group = weewx.units.getStandardUnitType(record['usUnits'], 'outTemp')
# ... then form the ValueTuple.
outTemp_vt = ValueTuple(record['outTemp'], *unit_and_group)

# Both algorithms need temperature in Celsius, so let's make sure our incoming temperature
# is in that unit. Use function convert(). The results will be in the form of a ValueTuple
outTemp_C_vt = weewx.units.convert(outTemp_vt, 'degree_C')
# Get the first element of the ValueTuple. This will be in Celsius:
outTemp_C = outTemp_C_vt[0]



# We need outHumidity in order to do the calculation.
if 'outHumidity' not in record or record['outHumidity'] is None:
raise weewx.CannotCalculate(obs_type)

# We have everything we need. Start by forming a ValueTuple for the outside humidity.
# To do this, figure out what unit and group the record is in ...
unit_and_group = weewx.units.getStandardUnitType(record['usUnits'], 'outHumidity')
# ... then form the ValueTuple.
outHumidity_vt = ValueTuple(record['outHumidity'], *unit_and_group)

# Algorithms need humidity in percent, so let's make sure our incoming humidity
# is in that unit. Use function convert(). The results will be in the form of a ValueTuple

#outHumidity_P_vt = weewx.units.convert(outTemp_vt, 'group_percent')
# Get the first element of the ValueTuple. This will be in Percent:
outHumidity_P = outHumidity_vt[0]



# Now we can use the formula. Results will be in degree celcius. Create a ValueTuple out of it:
w_b = ValueTuple(-5.809 + 0.058 * outHumidity_P + 0.697 * outTemp_C + 0.003 * outHumidity_P * outTemp_C, 'degree_C', 'group_temperature')


# We have the wetbulp temeratur as a ValueTuple. Convert it back 

[weewx-user] second y axes

2020-12-10 Thread bwal...@gmail.com

Hi!

The version 4.2 hase an interresting update:

"Added ability to label left, right or both y-axes of graphs."

That's an nice feature, but i can't find any information.
Is this doable with different Units?


-- 
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/db3d9ccb-cdb9-4f9d-a54b-910cea83e126n%40googlegroups.com.