Re: [weewx-user] $day($data_binding=...).wind.avg not working

2022-03-11 Thread Graham Eddy
this probably points to it. i created a database several days ago (took 7 hours 
to do calc-missing !!!) that has not been updated since and i am generating 
reports using the date of the last record in that database - debugging skin 
mods. the daily records in that database will be correctly ‘daily’ with respect 
to the reporting date, but maybe something is trying to compare to current real 
date?
⊣ Graham Eddy ⊢

> On 12 Mar 2022, at 3:17 pm, Tom Keffer  wrote:
> 
> The type 'wind' exists only in the daily summaries. In the main archive, it's 
> been flattened into windSpeed and windDir. The daily summaries can only be 
> used for aggregations over a midnight-to-midnight day, or the very last day 
> in the database, that is, midnight to the last update of the daily summaries.

-- 
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/EEA11EDB-2A82-4ACC-9A3B-155FD4B36D6F%40gmail.com.


Re: [weewx-user] $day($data_binding=...).wind.avg not working

2022-03-11 Thread Tom Keffer
If I understand correctly, the instance that archives into the gw1000 can
evaluate $day.wind.avg just fine, but the instance that imports it cannot.

I wonder if this is due to a time synchronization issue between the two
instances?

The type 'wind' exists only in the daily summaries. In the main archive,
it's been flattened into windSpeed and windDir. The daily summaries can
only be used for aggregations over a midnight-to-midnight day, or the very
last day in the database, that is, midnight to the last update of the daily
summaries.

This test could fail if the archive records don't match between the two
instances. For example, perhaps the data in the gw1000 database isn't quite
ready when the other instance needs it?

See the Customizing Guide for an example
 where
this happened.

On Thu, Mar 10, 2022 at 4:24 PM Graham Eddy  wrote:

> i hasten to clarify that those plot images are generated by the weewx
> instance that owns the gw1000 database. the other weewx instance generates
> html that only points to the existing image, but it does (try to) generate
> the text values via the tags
> ⊣ *Graham Eddy* ⊢
>
> On 11 Mar 2022, at 11:17 am, Graham Eddy  wrote:
>
> the weewx instance that owns gw1000 database reports $day.wind.avg fine:
>
> 
>
> the weewx instance that imports gw1000 database via gw1000_binding reports
> the ‘unrecognised’ error on $day($data_binding=‘gw1000_binding’).wind.avg.
> however, it is fine with $day($data_binding=‘gw1000_binding’).windSpeed etc:
>
> 
>
> this is the html template code that (successfully) imports scalar wind
> data and (unsuccessfully) vector wind data:
>   
> 
> 
>   Wind
>   Ave
>   $span($data_binding='gw1000_binding',
> $day_delta=1).windSpeed.avg
>   
>   Max
>   $span($data_binding='gw1000_binding',
> $day_delta=1).windSpeed.max
>   $span($data_binding='gw1000_binding',
> $day_delta=1).windSpeed.maxtime.format('%H:%M %d/%m')
>   Gust
>   
>   
>   
>   Max
>   $span($data_binding='gw1000_binding',
> $day_delta=1).windGust.max
>   $span($data_binding='gw1000_binding',
> $day_delta=1).windGust.maxtime.format('%H:%M %d/%m')
> 
>   
>
>   
> 
> 
>   Spd
>   Ave
>   $day($data_binding='gw1000_binding').wind.avg p>
>   
>   RMS
>   $day($data_binding='gw1000_binding').wind.rms p>
>   
>   Vec
>   Ave
>   
> $day($data_binding='gw1000_binding').wind.vecavg
>   
>   Ave
>   
> $day($data_binding='gw1000_binding').wind.vecdir
>   
> 
>   
>
>
> hopefully i’m just doing something stupid (i can fix that!)
>
> this is on RPi 64bit bullseye (i gave up on macOS operational environment
> long ago as too mutant and mutating further…)
> ⊣ *Graham Eddy* ⊢
>
> On 11 Mar 2022, at 2:16 am, Tom Keffer  wrote:
>
> I just tried it on my Mac and it worked fine. I even added it to the test
> suite (commit e907b59
> 
> ).
>
> Are you sure that the binding "gw1000_binding" has wind? That is, it needs
> a daily summary schema that includes wind.
>
>
> On Thu, Mar 10, 2022 at 3:37 AM Graham Eddy  wrote:
>
>> under 4.7.0 $day.wind.avg works fine but $day($data_binding=...).wind.avg
>> does not. is this expected?
>> (i have not tried the latter on earlier versions.)
>>
>> Mar 10 21:17:42 ironbark wee_reports[3057643] DEBUG
>> weewx.cheetahgenerator: Unrecognized:
>> $day($data_binding='gw1000_binding').wind.avg
>>
>>
>>
>>
>> --
>> 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/540CCCD8-0B87-4942-87EA-1EA2773D0F48%40gmail.com
>> 
>> .
>>
>
> --
> 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/CAPq0zECYBjR9a4eZgtVkLa8-7N6CMCsQyO87VziJ%2BgB1TLnZLQ%40mail.gmail.com
> 
> .
>
>
>
> --
> 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 

[weewx-user] Re: Weather34

2022-03-11 Thread Matthieu Devigne
Hi,
I installed weather34 a second time.
Aeris isn't running with weather34. I activate a free version of aeris.
I don't understand how activate aeris.  There is a code somewhere ?



Le samedi 5 mars 2022 à 13:28:26 UTC+1, Matthieu Devigne a écrit :

> 1) I have a difference between weewx and weather 34 :
>
> For today with weewx, I have gust wind max at 12km/hh and weather34 
>  43.2km/h.
>
> On my weather station him : 12km/k
>
> 2) All the charts are stopped for history (when I choose a date) : 
>
>
> Le vendredi 4 mars 2022 à 21:56:31 UTC+1, steep...@gmail.com a écrit :
>
>> 1) according to your realtime file, the wind is calm at the moment
>> 2) Most charts are working perfectly for me. You will need to wait for a 
>> while for the weekly reports to be run.
>>
>> Also, you need to activate a free account with Aeris Weather to get your 
>> weather warnings working correctly.
>>
>> Aeris Weather will also give far more detail for your weather forecasts 
>> compard with your current choice of Weather Underground. 
>>
>> On Friday, March 4, 2022 at 8:25:49 PM UTC matthieu89...@gmail.com wrote:
>>
>>> Yes, the data are in live. Thanks. 
>>>
>>> 1) I see that the wind gust and wind speed are not the true data. Why ?
>>>
>>> 2) And, the data history data on charts is not run (all the charts) :
>>>
>>> With a error message
>>>
>>> Le jeudi 3 mars 2022 à 22:54:08 UTC+1, steep...@gmail.com a écrit :
>>>
 You need to change the path to serverdata/w34realtime.txt

 On Thursday, March 3, 2022 at 7:53:21 PM UTC matthieu89...@gmail.com 
 wrote:

> I didn't have change the setting 
> (/var/www/html/weewx/weather34/serverdata/w34realtime.txt) : 
>
> Le mercredi 2 mars 2022 à 22:39:30 UTC+1, steep...@gmail.com a écrit :
>
>> You need to change the setting for your live data in the settings 
>> page: -
>>
>> [image: Screenshot 2022-03-02 at 21.32.47.png]
>>
>> On Wednesday, March 2, 2022 at 7:36:20 PM UTC matthieu89...@gmail.com 
>> wrote:
>>
>>> With weather 34 : www.meteo-champignyonne.fr/weather34
>>>
>>> Le mercredi 2 mars 2022 à 20:35:52 UTC+1, Matthieu Devigne a écrit :
>>>
 Hi,

 Yes, weewx is running.

 My URL : www.meteo-champignyonne.fr

 Le mercredi 2 mars 2022 à 12:19:33 UTC+1, steep...@gmail.com a 
 écrit :

> Also make sure that WeeWX is actually running after you issued the 
> restart command.
>
> On Tuesday, March 1, 2022 at 9:53:40 PM UTC Steeple Ian wrote:
>
>> Can you let me have your URL please, I need to check your 
>> realtime data. The situation in your screen shot indicates that the 
>> template is not getting live data from WeeWX.
>>
>> On Tuesday, March 1, 2022 at 7:28:01 PM UTC 
>> matthieu89...@gmail.com wrote:
>>
>>> Yes, I will watch for the file service.txt.
>>>
>>> For weewx.conf I add [Services]] section in the [Engine] 
>>> stanza. : ,*user.w34_db_backup.W34_DB_Backup*
>>> And at the end :
>>> [W34_DB_Backup] * # database path(s) seperated by , rename 
>>> this/these database(s) to match your own databases = 
>>> /home/weewx/archive/weewx.sdb,/home/weewx/archive/another.sdb # 
>>> backup 
>>> path(s) comma seperated backups = 
>>> [your_backup_path]/weewx_backup.sdb,[your_backup_path]/home/pi/another_backup.sdb
>>>  
>>> # set the daily time to backup comma seperated for multiple 
>>> databases # the 
>>> time must be set an to archive time so it runs immediately after 
>>> the 
>>> archive interval processes are complete backup_times = 00:00,00:00*
>>>
>>>
>>> Yes, sorry but the data for the pression, temperature, and windy 
>>> for weather34 are not correct.
>>> Is not the real values
>>>
>>> What is the problem ?
>>> Le lundi 28 février 2022 à 23:02:26 UTC+1, steep...@gmail.com a 
>>> écrit :
>>>
 I am glad the template is now running for you.

 Regarding the two errors: -

 1. Metar, it looks as though you did not add your X-API-Key or 
 Metar airport code when you generated your services.txt. Did you 
 follow the 
 instructions to obtain a key and find your nearest airport?
 The three relevant lines in the web services section of 
 weewx.conf should look something like this (ABCD represents the 
 airport 
 code and 123456789 represents the API Key: -
   me_url = https://api.checkwx.com/metar/ABCD/decoded
   me_header = X-API-Key:123456789
   me_interval = 3600

 2. The file should already be in place, 

[weewx-user] Re: weewx stopped logging

2022-03-11 Thread vince
Run my standalone UDP listener with the --raw option and see if your 
computer is hearing anything (github link) 


Or run wireshark if you know how to do that.  Basically sniff the 
wire/wireless.

You have the weewx driver set to "share_socket = False" so you will need to 
shut down weewx first.  FWIW, I recommend setting that True so multiple 
programs can listen for the broadcasts.

-- 
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/b5719a40-d68a-45e7-89eb-5bc97921946fn%40googlegroups.com.


Re: [weewx-user] Re: Ftp upload

2022-03-11 Thread Tom Keffer
OK, thanks for that! That's a new one for me, so it's good to add it to the
list of possibilities.

Interesting how that manifests itself as this error.

On Fri, Mar 11, 2022 at 5:18 AM Kalli Gøtze  wrote:

> Hi all,
> I was in contact whit the support from Selfhost and they say i should
> flush the Dns-Cache,i did and now is working.
> Thanks for your.
> Best regards Karl
>
> lang@googlemail.com schrieb am Donnerstag, 10. März 2022 um 17:31:55
> UTC+1:
>
>> I doubt that "it" or "everything" works.
>> Clicking on your link only provides a general page of your web hoster.
>> Something is still "fishy" - locally, on your web host or with both.
>>
>> On 10.03.2022 16:19, Kalli Gøtze wrote:
>>
>> Hi all,
>> Today i install weewx new and it works.  www.kalligotze.org
>> Thanks for your help :)
>>
>> best regards Karl
>>
>> tke...@gmail.com schrieb am Donnerstag, 10. März 2022 um 14:49:42 UTC+1:
>>
>>> In a private email, Kalli noted that the value for "path" is
>>>
>>> [[FTP]]
>>>...
>>>path = /home/weewx/public_html
>>>...
>>>
>>> Two things to note:
>>>
>>>- "path" is the *destination* directory. This is usually something
>>>like "/var/www/html" or "/weewx".
>>>- "HTML_ROOT" is the *source* directory, usually set to
>>>"/home/weewx/public_html" if you used the setup.py install method (which
>>>you did).
>>>
>>> You did not say what destination directory you expect, but it is
>>> probably not "/home/weewx/public_html". Think about where you want the
>>> files to go, and set "path" to that. Whatever it is set to, you must have
>>> write permission for the user name you supplied. Another complication is
>>> that for some FTP servers the path must be an absolute path, for others it
>>> is relative to the home directory of the supplied user. Experiment.
>>>
>>> On the other hand, maybe you did want "/home/weewx/public_html". If so,
>>> let us know and we'll go to the next step.
>>>
>>> -tk
>>>
>>>
>>>
>>> On Wed, Mar 9, 2022 at 12:23 PM Tom Keffer  wrote:
>>>
 We have seen this error before and it's very misleading. Despite the
 message, it can be caused by problems either locally or remotely.

 1. Make sure the FTP username has write permissions on the server for
 the path you specified.
 2. Make sure the password is correct. Does it include special
 characters? If so, be sure to quote the password.
 3. Does your server require FTPS?
 4. Try different variations for the path option for [FTP].

 If you are still stuck, post your [FTP] section, but be sure to
 obfuscate your password first.

 -tk

 On Wed, Mar 9, 2022 at 11:28 AM vince  wrote:

> Possibly, but why would weewx try to upload a file that is not there
> on the weewx system ?
> Or is that what that #FTPlast file does ?
>
> https://groups.google.com/g/weewx-user/c/XwQqsslGKfA suggests
> removing that file which should cause weewx to upload everything it finds.
>
> On Wednesday, March 9, 2022 at 10:11:51 AM UTC-8 kk44...@gmail.com
> wrote:
>
>> kalli...@gmail.com schrieb am Mittwoch, 9. März 2022 um 18:27:38
>> UTC+1:
>>
>>> Reason: '550 /home/weewx/public_html/monthhum.png: No such file or
>>> directory'
>>>
>>
>> I would have listened to that error message and guess, the local file
>> is missing.
>>
>>
> --
> 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/70edd677-2765-4bb2-8088-60e0cf5c09a0n%40googlegroups.com
> 
> .
>
 --
>> 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/5c916353-6bf2-421c-a380-6cf9443831e1n%40googlegroups.com
>> 
>> .
>>
>>
>> --
> 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/aa6856f7-9a97-4a35-9483-14590e84a0d3n%40googlegroups.com
> 

Re: [weewx-user] Re: Ftp upload

2022-03-11 Thread Kalli Gøtze
Hi all,
I was in contact whit the support from Selfhost and they say i should flush 
the Dns-Cache,i did and now is working.
Thanks for your.
Best regards Karl

lang@googlemail.com schrieb am Donnerstag, 10. März 2022 um 17:31:55 
UTC+1:

> I doubt that "it" or "everything" works.
> Clicking on your link only provides a general page of your web hoster.
> Something is still "fishy" - locally, on your web host or with both.
>
> On 10.03.2022 16:19, Kalli Gøtze wrote:
>
> Hi all,
> Today i install weewx new and it works.  www.kalligotze.org
> Thanks for your help :)
>
> best regards Karl
>
> tke...@gmail.com schrieb am Donnerstag, 10. März 2022 um 14:49:42 UTC+1:
>
>> In a private email, Kalli noted that the value for "path" is
>>
>> [[FTP]]
>>...
>>path = /home/weewx/public_html
>>...
>>
>> Two things to note:
>>
>>- "path" is the *destination* directory. This is usually something 
>>like "/var/www/html" or "/weewx". 
>>- "HTML_ROOT" is the *source* directory, usually set to 
>>"/home/weewx/public_html" if you used the setup.py install method (which 
>>you did). 
>>
>> You did not say what destination directory you expect, but it is probably 
>> not "/home/weewx/public_html". Think about where you want the files to go, 
>> and set "path" to that. Whatever it is set to, you must have write 
>> permission for the user name you supplied. Another complication is that for 
>> some FTP servers the path must be an absolute path, for others it is 
>> relative to the home directory of the supplied user. Experiment.
>>
>> On the other hand, maybe you did want "/home/weewx/public_html". If so, 
>> let us know and we'll go to the next step.
>>
>> -tk
>>
>>
>>
>> On Wed, Mar 9, 2022 at 12:23 PM Tom Keffer  wrote:
>>
>>> We have seen this error before and it's very misleading. Despite the 
>>> message, it can be caused by problems either locally or remotely.
>>>
>>> 1. Make sure the FTP username has write permissions on the server for 
>>> the path you specified.
>>> 2. Make sure the password is correct. Does it include special 
>>> characters? If so, be sure to quote the password.
>>> 3. Does your server require FTPS?
>>> 4. Try different variations for the path option for [FTP].
>>>
>>> If you are still stuck, post your [FTP] section, but be sure to 
>>> obfuscate your password first.
>>>
>>> -tk
>>>
>>> On Wed, Mar 9, 2022 at 11:28 AM vince  wrote:
>>>
 Possibly, but why would weewx try to upload a file that is not there on 
 the weewx system ? 
 Or is that what that #FTPlast file does ?

 https://groups.google.com/g/weewx-user/c/XwQqsslGKfA suggests removing 
 that file which should cause weewx to upload everything it finds.

 On Wednesday, March 9, 2022 at 10:11:51 AM UTC-8 kk44...@gmail.com 
 wrote:

> kalli...@gmail.com schrieb am Mittwoch, 9. März 2022 um 18:27:38 
> UTC+1:
>
>> Reason: '550 /home/weewx/public_html/monthhum.png: No such file or 
>> directory'
>>
>
> I would have listened to that error message and guess, the local file 
> is missing.
>  
>
 -- 
 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/70edd677-2765-4bb2-8088-60e0cf5c09a0n%40googlegroups.com
  
 
 .

>>> -- 
> 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/5c916353-6bf2-421c-a380-6cf9443831e1n%40googlegroups.com
>  
> 
> .
>
>
>

-- 
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/aa6856f7-9a97-4a35-9483-14590e84a0d3n%40googlegroups.com.