If the template is called awrs.txt.tmpl the output file from the cheetah
generator will be awrs.txt
In the same way that the html file is built up so can the txt file - by
using the tags
eg
$current.outTemp,$current.inTemp
should output
20oC,21oC
- or you can format as you wish using the formatted tags
OUTTEMP: $current.outTemp.formatted("%02.1f")
,INT=%$current.inTemp.formatted("03.2f") would output
OUTTEMP: 20.0oC ,INT=020.00oC
Following gary's suggestion see the customisation manual for setting the
timing option for the new aprs report
http://weewx.com/docs/customizing.htm#customizing_gen_time which would
permit the report to be run once per day, and thus the file only be
generated once per day
the entries in stdconvert would be applied before the data is written to
the database
So the suggestions given so far satisfy your requirements
Why not start by trying to apply the formula and checking that the database
gets the new wetness values - and then take it from there
On Sunday, 20 May 2018 09:19:02 UTC+3, [email protected] wrote:
>
> Thank you mates,
>
> i want to describe it more specific:
> Once a day (in the evening) collected data should be uploaded to the
> server. it is required to deliver a data (text) file, not a html file. data
> should be separated by a comma, decimal separator is a point. data interval
> should be 10min.
> One datasentence has therefore the following appearence
>
> YYYY-MM-DD hh:mm,TT.tt,HH.hh,RR.rr,LLL.ll
>
> date/time is in ISO-format, TT.tt = temperature, HH.hh =humidity,
> RR.rr=rain, LLL.ll=leaf wetness.
> decimals in this model are optional, if they are missing, the algorithmus
> takes integer.
>
> as far as i understand, i have to convert the leaf wetness, but this
> means, that this value is even written in the database? it´s not possible
> to keep the 0-15 values for showing them via meteotemplate on a website and
> to convert the same values for using them in the pest control program.
> the sequence should be:
> -convert leaf wetness
> -write to database
> -make data file
> -ftp this file to server
>
> this would be my approach, but right now, i´m not so familiar with weewx
> to be very confident in my skills ;-)
>
> greetings to you,
> michael
>
> Am Freitag, 18. Mai 2018 08:32:43 UTC+2 schrieb [email protected]:
>>
>>
>> Hi,
>>
>> i´m running a davis vantage pro station with soil moisture and leaf
>> wetness sensors. the data of this station should be used in a pest control
>> program in my village.
>>
>> leaf wetness is indicated with values between 1 (dry) and 15 (wet).
>>
>> but the algorithmus uses other weather stations, were the wetness range
>> is 0 (wet) and 255 (dry).
>>
>> so first, i have to convert the standard values to the appropriate
>> algorithmus values like this:
>>
>> 0 255
>> 1 238
>> 2 221
>> 3 204
>> 4 187
>> 5 170
>> 6 153
>> 7 136
>> 8 119
>> 9 102
>> 10 85
>> 11 68
>> 12 51
>> 13 34
>> 14 17
>> 15 0
>>
>> is this possible with weewx [stdconvert] ?
>>
>>
>> in the evening of each day it is necessary to upload a data file
>> according to this synthax
>> <https://lh3.googleusercontent.com/-qw0vjLwA1CM/Wv5zI_FDkFI/AAAAAAAAJTI/7k9tVKbwX6cD3c-X2_zDG9EyvpbbwvN3wCLcBGAs/s1600/vitimeteo.JPG>
>> can a generate a datafile like this with weewx?
>>
>> i appreciate any tipps and tricks, thx!
>>
>> best greetings,
>> michl
>>
>>
>>
>>
>>
--
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].
For more options, visit https://groups.google.com/d/optout.