[weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread vhel...@gmail.com
Hi,

Plug the USB serial converter with weatherstation plugged to your RPI5.
Check from linux terminal command: ls /dev/ to see is your logger there.
Paste the results of: ls /dev/ here.

-Ville-


keskiviikko 21. helmikuuta 2024 klo 14.38.36 UTC+2 Dave McCreath kirjoitti:

> Recently acquired an RPi 5 and decided this morning to migrate WeeWX over 
> to it from an up to date RPi 4.
>
> Three attempts, all failed with the same errors.  I have tried with both 
> the USB serial connector inserted and without.  I'm running the RPi 
> headless over VNC and nothing else plugged into it at all apart from the 
> power lead.
>
> *Log:*
>
>  2024-02-21T12:15:44.944885+00:00 WeeWX weectl[2869]: INFO weectllib: 
> Initializing weectl version 5.0.2
> 2024-02-21T12:15:44.945066+00:00 WeeWX weectl[2869]: INFO weectllib: 
> Command line: /usr/share/weewx/weectl.py station reconfigure 
> --config=/etc/weewx/weewx.conf --driver=weewx.drivers.vantage 
> --units=metric --location=Leverington --latitude=52.693 --longitude=0.147 
> --altitude=3,meter --register=y --station-url=
> https://www.wunderground.com/dashboard/pws/ICAMBSLE2 --no-prompt 
> --no-backup
> 2024-02-21T12:15:44.945101+00:00 WeeWX weectl[2869]: ERROR 
> weeutil.startup: Cannot load user extensions: No module named 'user'
> 2024-02-21T12:15:44.974672+00:00 WeeWX weectl[2869]: INFO weectl-station: 
> Using Vantage version 3.6.2 (weewx.drivers.vantage)
> 2024-02-21T12:15:45.030191+00:00 WeeWX systemd[1]: Reloading.
> 2024-02-21T12:15:45.848292+00:00 WeeWX systemd[1]: Reloading.
> 2024-02-21T12:15:46.281844+00:00 WeeWX systemd[1]: Started weewx.service - 
> WeeWX.
> 2024-02-21T12:15:46.362945+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Initializing weewxd version 5.0.2
> 2024-02-21T12:15:46.363060+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
> 2024-02-21T12:15:46.371965+00:00 WeeWX weewxd[3153]: INFO __main__: Using 
> Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
> 2024-02-21T12:15:46.372032+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Located at /usr/bin/python3
> 2024-02-21T12:15:46.374175+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Platform Linux-6.1.0-rpi8-rpi-2712-aarch64-with-glibc2.36
> 2024-02-21T12:15:46.374268+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Locale: 'en_GB.UTF-8'
> 2024-02-21T12:15:46.374299+00:00 WeeWX weewxd[3153]: INFO __main__: Entry 
> path: /usr/share/weewx/weewxd.py
> 2024-02-21T12:15:46.374324+00:00 WeeWX weewxd[3153]: INFO __main__: 
> WEEWX_ROOT: /etc/weewx
> 2024-02-21T12:15:46.374352+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Configuration file: /etc/weewx/weewx.conf
> 2024-02-21T12:15:46.374376+00:00 WeeWX weewxd[3153]: INFO __main__: User 
> module: /etc/weewx/bin/user
> 2024-02-21T12:15:46.374401+00:00 WeeWX weewxd[3153]: INFO __main__: Debug: 
> 0
> 2024-02-21T12:15:46.374584+00:00 WeeWX weewxd[3153]: INFO weewx.engine: 
> Loading station type Vantage (weewx.drivers.vantage)
> 2024-02-21T12:15:46.379577+00:00 WeeWX weewxd[3153]: ERROR weewx.engine: 
> Import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 
> 2] No such file or directory: '/dev/ttyUSB0' ( 'serial.serialutil.SerialException'>)
> 2024-02-21T12:15:46.382885+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   Traceback (most recent call last):
> 2024-02-21T12:15:46.384033+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine: File 
> "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open
> 2024-02-21T12:15:46.384085+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   self.fd = os.open(self.portstr, os.O_RDWR | 
> os.O_NOCTTY | os.O_NONBLOCK)
> 2024-02-21T12:15:46.384112+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:    
>  ^^
> 2024-02-21T12:15:46.384136+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   FileNotFoundError: [Errno 2] No such file or 
> directory: '/dev/ttyUSB0'
> 2024-02-21T12:15:46.384173+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   
> 2024-02-21T12:15:46.384196+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   During handling of the above exception, another 
> exception occurred:
> 2024-02-21T12:15:46.384219+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   
> 2024-02-21T12:15:46.384240+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   Traceback (most recent call last):
> 2024-02-21T12:15:46.384261+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine: File "/usr/share/weewx/weewx/engine.py", line 
> 115, in setupStation
> 2024-02-21T12:15:46.384285+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   self.console = loader_function(config_dict, 
> self)
> 2024-02-21T12:15:46.384311+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:  
> ^^
> 2024-02-21T12:15:46.384339+00:00 

Re: [weewx-user] Re: Neowx skin sample site

2023-09-05 Thread vhel...@gmail.com
Hi Rory,

Have you had time to change the index.html.tmpl so that you can release it?
Your site looks great!

-Ville-


perjantai 18. marraskuuta 2022 klo 12.07.14 UTC+2 Rory Gillies kirjoitti:

Head over to this GitHub repository: 
https://github.com/seehase/neowx-material you'll find many of the 
enhancements there including the history page and the wind direction graph. 
Some of the additions are my own, such as the Windy forecast and satellite 
cards, I'll attach them here once I change the default index.html.tmpl 
(mine has many changes from the default which won't be applicable to most).

Best,

Rory

On Thursday, November 17, 2022 at 12:06:49 PM UTC Artvd wrote:

@Rory
 I also have installed Neowx materials skin but it does not work as good as 
on your site. I have contacted the developper but he does not react. Like 
Rainer i would be interest in getting the relevant files. This is my site 
https://tinyurl.com/a12312223

Op woensdag 16 november 2022 om 18:39:13 UTC+1 schreef kawa...@gmail.com:

Hallo ich schreibe einmal auf deutsch und dann die übersetzung ins 
Englische.
Ich habe nicht gewusst das man in der weewx.conf das so wie oben 
beschrieben rein schreiben muss.
Darum habe ich es so wie in meiner weewx.conf ausgeführt.
Mittlerweile funktioniert es auch mit neowx.
Ebenso bin ich kein Forum oder Gruppen Kenner darum habe ich keinen neuen 
Thread gemacht.
Ich entschuldige mich für die Umstände und danke für die Hilfe!

Danke sehr Günther


Hello I write once on german and then the translation into English.
I didn't know that you have to write in the weewx.conf as described above.
That's why I ran it as in my weewx.conf.
Meanwhile, it also works with neowx.
Likewise, I'm not a forum or group connoisseur so I didn't make a new 
thread.
I apologize for the inconvenience and thank you for the help!

Thank you very much Günther
lang@googlemail.com schrieb am Montag, 14. November 2022 um 22:45:54 
UTC+1:

I don't know why you couldn't change or add the neowx-material skin to your 
weewx installation.
Probably because you didn't install the skin - or at least didn't modify 
weewx.conf accordingly.
That's what your weewx.conf is saying - there is no proper entry for the 
neowx-material skin in the [StdReport] stanza.

What you have obviously done is to mix up skins - made a neowx-material 
entry inside the [[Seasons]] stanza - which won't work.
What you are trying to do is to convert a Mercedes car into a BMW car by 
changing the name on the car tail.

What you need to have are the following entries in weewx.conf:

 -- start excerpt weewx.conf [StdReport] stanza --

[[neowx]]
skin = neowx-material
enable = true
HTML_ROOT = /var/www/html/weewx/neowx

[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = true

 -- end excerpt weewx.conf [StdReport] stanza --

Then you can have the seasons skin with 
http://IP-address/weewx
and the neowx-material skin with
http://IP-address/weewx/neowx


On 14.11.2022 22:28, Günther Wrana wrote:

Hi 

I have the .conf and a little bit from the syslog file send.

Why could i not my skin canch to neowx?

Thank you for all your help

Günther Wrana schrieb am Donnerstag, 12. März 2020 um 07:40:18 UTC+1:


 Hello this is my page http://guentherwrana.ddns.net/weewx/ but for me no 
values ​​are shown on the curves.
I would also be interested in how I change the language.
Could you give me a tip?
On the weewx.com site I have not yet figured out how to change the language 
of the skins.
Thanks Günther


Am Mittwoch, 30. Januar 2019 13:39:34 UTC+1 schrieb Alan Jackson: 

I just installed it. http://www.ajackson.org/weewx

-- 
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/91db6e74-6d3c-4f1a-989a-dd21517ea972n%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/7055343e-5e2f-48f1-a522-3b55abab74c5n%40googlegroups.com.


[weewx-user] Re: WeatherCat import Vs Daylight Savings Time

2022-08-27 Thread vhel...@gmail.com
Hello,

I have succesfully imported Weathercat data from about 7 years. That was 
about year and half ago. I remember, that I didn't have any problems with 
daylight saving. And In Finland we have summer time , which is +1 hour. 

I have data logged in 1 minute intervals, and I used X minutes option in 
import config.

torstai 25. elokuuta 2022 klo 16.54.11 UTC+3 kurand kirjoitti:

> Thanks for confirming what I understood from weeimport.py and 
> weathercatimport.py.
>
> I am using "derived' for the import because I originally configured 
> WeatherCat with Adaptive interval set true so I have data logged at 
> varying  rates from 1 minute all the way up to 30+ minute intervals. 
>
> I think in this case, weathercatimport.py needs to use timezone aware 
> date-time objects during its construction of dateTime else data will become 
> misplaced and DST changes will fail as noted. Once this is accomplished, 
> then something needs to get added to deal with the apparent bug in 
> WeatherCat where transitioning from standard time to daylight saving time 
> in spring causes it to skip an extra hour forward sometimes. It looks to me 
> like this can all be isolated in weathercatimport.py's getRawData function. 
>
> I'm curious to know if anyone else has run into this problem, or if it is 
> something specific to my WeatherCat data. Or perhaps WeatherCat import has 
> been used in anger. 
>
> On Thursday, August 25, 2022 at 11:59:34 AM UTC+1 gjr80 wrote:
>
>> If you are using 'derive' to derive the archive interval from the 
>> imported data then the imported records must be in ascending 
>> timestamp/date-time order. This is because the derived archive interval is 
>> calculated by taking the difference between the timestamp of the current 
>> record and the timestamp of the previous record. If the calculated interval 
>> is negative it indicates the records being imported are not in timestamp 
>> order and the calculated archive interval cannot be trusted. The import 
>> will abort.
>>
>> This should not present a problem at the start of a daylight saving 
>> period where clocks jump forward (though the archive interval would be 
>> incorrectly calculated for the first record after daylight saving begins). 
>> It would certainly cause a problem at the end of a period of daylight 
>> saving where clocks jump back in time.
>>
>> So what to do? WeeWX date-time objects are timezone naive 
>>  
>> so managing daylight saving is near impossible. I would suggest removing 
>> the data to be imported with the duplicate date-times (which set of 
>> duplicates I leave up to you) and re-trying the import. You might also want 
>> to consider using a fixed interval (if your data does indeed have a fixed 
>> interval) rather than deriving it from the data. FWIW, the vantage driver 
>> has a similar issue in that each year when daylight saving ends the driver 
>> receives archive records with duplicate timestamps, in this case the 
>> situation is handled slightly more gracefully in that WeeWX ignores the 
>> duplicate timestamped records with a 'PRIMARY KEY must be unique' error. 
>> wee_import is somewhat less forgiving.
>>
>> Gary
>> On Thursday, 25 August 2022 at 00:45:13 UTC+10 kurand wrote:
>>
>>> Has anyone successfully imported data from WeatherCat for months where 
>>> Daylight Savings Time starts or ends? 
>>>
>>> When I have tried this, I get the following type of error (example for 
>>> Oct-2017):
>>>
>>> Cannot derive 'interval' for record timestamp: 2017-10-29 01:00:00 BST 
>>> (1509235200).
>>>
>>>  Raw data is not in ascending date time order.
>>>
>>> Looking at the 7 years of data I have logged by WeatherCat, it appears 
>>> that WeatherCat does not really handle DST transitions very well. Data is 
>>> generally logging in local time.
>>>
>>> For spring DST changes (in March for my UK based timezone), it seems 
>>> usually to jump forward by two hours at 0100 going to 0300 rather than just 
>>> one hour as you'd expect. It then tack on an hours worth of data for day 01 
>>> at the end of the month. This gives rise to the above error when the end of 
>>> the month's data is processed. However, for some reason, in my data for 
>>> 2014, it does only jump forward one hour as expected and there was no extra 
>>> data logged at the end of the month. 
>>>
>>> For autumn DST changes (in October in UK timezone), it seems to jump 
>>> back an hour at 0200, so it repeats log entries for hour 0100 again. This 
>>> gives rise to the above error.
>>>
>>> It's all a bit of a mess really; I'm not sure if its just my WeatherCat 
>>> data, or the way I configured it with Adaptive interval set true or 
>>> something else. 
>>>
>>> Does anyone have a fix for this, or do I need to work something out.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving 

Re: [weewx-user] Re: Upgrade debian 11 bullseye

2022-02-25 Thread vhel...@gmail.com
That error does not have anythink to do with Weewx, you should google with 
error or try to disable that brotli compression and then upgrade.

torstai 24. helmikuuta 2022 klo 12.21.07 UTC+2 didier@gmail.com 
kirjoitti:

> Hi
>
> During the first upgrade (10.4 to 10.10), I have an error:
>
> invoke-rc.d: initscript apache2, action "restart" failed.
> ● apache2.service - The Apache HTTP Server
>Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor 
> preset: enabled)
>Active: failed (Result: exit-code) since Wed 2022-02-23 18:55:55 CET; 
> 12ms ago
>  Docs: https://httpd.apache.org/docs/2.4/
>   Process: 17929 ExecStart=/usr/sbin/apachectl start (code=exited, 
> status=1/FAILURE)
>
> févr. 23 18:55:55 meteo systemd[1]: Starting The Apache HTTP Server...
> févr. 23 18:55:55 meteo apachectl[17929]: AH00526: Syntax error on line 4 
> of /etc/apache2/mods-enabled/brotli.conf:
> févr. 23 18:55:55 meteo apachectl[17929]: Invalid command 
> 'BrotliCompressionLevel', perhaps misspelled or defined by a module not 
> included in the server configuration
> févr. 23 18:55:55 meteo apachectl[17929]: Action 'start' failed.
> févr. 23 18:55:55 meteo apachectl[17929]: The Apache error log may have 
> more information.
> févr. 23 18:55:55 meteo systemd[1]: apache2.service: Control process 
> exited, code=exited, status=1/FAILURE
> févr. 23 18:55:55 meteo systemd[1]: apache2.service: Failed with result 
> 'exit-code'.
> févr. 23 18:55:55 meteo systemd[1]: Failed to start The Apache HTTP Server.
>
> May be due to brotli, I check brotli.conf (but I think it's correct...)
>
> 
>   # Compression
>   ## BrotliCompressionLevel: 0-11 (default: 11)
>   BrotliCompressionLevel 10
>   ## BrotliWindowSize: 10-24 (default: 22)
>   BrotliWindowSize 22
>   # Logging
>   # Filter note
>   BrotliFilterNote Input  brotli_in
>   BrotliFilterNote Output brotli_out
>   BrotliFilterNote Ratio  brotli_ratio
>   #LogFormat '"%r" %{brotli_out}n/%{brotli_in}n (%{brotli_ratio}n)' brotli
>   #CustomLog ${APACHE_LOG_DIR}/brotli_access.log brotli
>   # Output filter
>   AddOutputFilterByType BROTLI text/html text/plain text/css text/xml
>   AddOutputFilterByType BROTLI text/css
>   AddOutputFilterByType BROTLI application/x-javascript 
> application/javascript
>   AddOutputFilterByType BROTLI application/rss+xml
>   AddOutputFilterByType BROTLI application/xml
>   AddOutputFilterByType BROTLI application/json
>   # Global output filer if necessary.
>   # SetOutputFilter BROTLI
>   # SetEnvIfNoCase Request_URI \.txt$ no-br
> 
>
> Le jeu. 24 févr. 2022 à 10:29, vhel...@gmail.com  a 
> écrit :
>
>> Hi,
>>
>> You can upgrade to Debian 11. Here's one howto: 
>> https://www.linuxtechi.com/how-to-upgrade-debian-10-to-debian-11/
>> Since you are using VMware, take a snapshot before upgrade, and maybe 
>> also copy important weewx files to somewhere safe too.
>> It should be flawless, but you newer know... :) 
>>
>>
>>
>> keskiviikko 23. helmikuuta 2022 klo 18.21.14 UTC+2 didier@gmail.com 
>> kirjoitti:
>>
>>> Thanks for your answer
>>> I have not a raspberry, this is a virtual machine 64bits on a 
>>> vmware server, but I think that the upgrade is similar.
>>>
>>> Le mer. 23 févr. 2022 à 16:21, Aslak Vaa  a écrit :
>>>
>>>> It is possible to make an upgrade from Raspbian OS Buster to Bullseye 
>>>> as long as you do not change from 32 bits to 64 bits version or vice versa.
>>>> You will find instructions on how to make an upgrade by searching the 
>>>> net with keywords "Raspbian OS Buster to Bullseye Raspberry Pi". 
>>>> The only issue is that you will have to keep buster in the 
>>>> file /etc/apt/sources.list.d/weewx.list. It will not work when you replace 
>>>> buster with bullseye in that file.
>>>>
>>>> I have a Raspberry Pi 4 Model B with 4 GB of RAM. I previously ran 
>>>> Buster in 32 bits version, and I wanted Bullseye in 64 bits version,.
>>>> I started with a fresh installation of Bullseye 64 bits, and I made a 
>>>> full installation of weewx with extensions and all prerequisits. After 
>>>> transferring configuration,  database and other changed files from old 
>>>> Buster setup and starting up weewx, everything worked just fine.
>>>> If you have 4 GB RAM or more in your Raspberry Pi, I will recommend 
>>>> that you go for the 64 bits version. 
>>>> With older RPis 32 bits Bullseye will be the only option even if RPi 3 
>>>> is able to run the 64 bits vers

Re: [weewx-user] Re: Upgrade debian 11 bullseye

2022-02-24 Thread vhel...@gmail.com
Hi,

You can upgrade to Debian 11. Here's one howto: 
https://www.linuxtechi.com/how-to-upgrade-debian-10-to-debian-11/
Since you are using VMware, take a snapshot before upgrade, and maybe also 
copy important weewx files to somewhere safe too.
It should be flawless, but you newer know... :) 



keskiviikko 23. helmikuuta 2022 klo 18.21.14 UTC+2 didier@gmail.com 
kirjoitti:

> Thanks for your answer
> I have not a raspberry, this is a virtual machine 64bits on a 
> vmware server, but I think that the upgrade is similar.
>
> Le mer. 23 févr. 2022 à 16:21, Aslak Vaa  a écrit :
>
>> It is possible to make an upgrade from Raspbian OS Buster to Bullseye as 
>> long as you do not change from 32 bits to 64 bits version or vice versa.
>> You will find instructions on how to make an upgrade by searching the net 
>> with keywords "Raspbian OS Buster to Bullseye Raspberry Pi". 
>> The only issue is that you will have to keep buster in the 
>> file /etc/apt/sources.list.d/weewx.list. It will not work when you replace 
>> buster with bullseye in that file.
>>
>> I have a Raspberry Pi 4 Model B with 4 GB of RAM. I previously ran Buster 
>> in 32 bits version, and I wanted Bullseye in 64 bits version,.
>> I started with a fresh installation of Bullseye 64 bits, and I made a 
>> full installation of weewx with extensions and all prerequisits. After 
>> transferring configuration,  database and other changed files from old 
>> Buster setup and starting up weewx, everything worked just fine.
>> If you have 4 GB RAM or more in your Raspberry Pi, I will recommend that 
>> you go for the 64 bits version. 
>> With older RPis 32 bits Bullseye will be the only option even if RPi 3 is 
>> able to run the 64 bits version of OS. 
>>
>> On Wednesday, February 23, 2022 at 2:08:21 PM UTC+1 didier@gmail.com 
>> wrote:
>>
>>> Hi
>>>
>>> Today I have a debian 10, weewx 4.6.2 and Belchertown skin 1.3b1 
>>> (working perfectly)
>>> Is it possible to upgarde debian to next release 11 bullseye ?
>>>
>>> If yes, what is the procedure?
>>>
>>> Many thanks
>>>
>>> -- 
>> 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/78ac619e-bdb8-411f-9764-cbf260f4d346n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Quel temps fait-il à Auffargis  ?
>

-- 
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/17e83413-b901-42b2-a804-d7483403af3bn%40googlegroups.com.


[weewx-user] Re: WeeWX on UNraid

2022-02-07 Thread vhel...@gmail.com
Hi,

Just install Debian/Ubuntu vm and then install WeeWX to there. 
Or use weewx docker image, search through these user groups to find it, I 
cannot remember the post.

lauantai 5. helmikuuta 2022 klo 20.58.37 UTC+2 christia...@gmail.com 
kirjoitti:

> Hey Guys ist there any way / tutorial to use it on a Unraid server ?

-- 
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/d7d2ccc9-ea27-4807-ae54-88f656464784n%40googlegroups.com.


[weewx-user] Re: Wrong year in Seasons year graph?

2021-09-05 Thread vhel...@gmail.com
I just changed them on and run wee_reports and though that they are 
generated also.
But that was user error. :) All fine now, thx Gary!
sunnuntai 5. syyskuuta 2021 klo 16.33.02 UTC+3 gjr80 kirjoitti:

> Those plots are 16.5 hours old and look like they are still using 
> month/day format labels. When did you make the change? Have the plots been 
> re-generated since you made the change? The year plots are only generated 
> every 24hours. You can either wait for 24 hours to elapse and they will 
> come good or you can force re-generation by deleting the plots from your 
> WeeWX machine.
>
> Gary
> On Sunday, 5 September 2021 at 22:56:25 UTC+10 vhel...@gmail.com wrote:
>
>> Hi,
>>
>> Changed my Seasons skin year graph to: x_label_format = %m/%y. 
>> But now it says that it's from 9/01 to 9/01, should this be from 9/00 to 
>> 9/01?
>> See here: https://kauttua.net/seasons/
>>
>> -Ville-
>>  
>>
>

-- 
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/1fb27417-07eb-47fe-9b08-9e1a70a89952n%40googlegroups.com.


[weewx-user] Wrong year in Seasons year graph?

2021-09-05 Thread vhel...@gmail.com
Hi,

Changed my Seasons skin year graph to: x_label_format = %m/%y. 
But now it says that it's from 9/01 to 9/01, should this be from 9/00 to 
9/01?
See here: https://kauttua.net/seasons/

-Ville-
 

-- 
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/2b6353f7-28ac-4909-b618-6685ab3f58e2n%40googlegroups.com.


[weewx-user] Re: Importing from WeatherCat

2020-12-30 Thread vhel...@gmail.com
Hello Gary,

I can confirm that this updated script works now! I can finally, finally 
import my data from 2013 to weewx. 
Thank you so much for making this script!

-Ville-


keskiviikko 30. joulukuuta 2020 klo 4.47.22 UTC+2 gjr80 kirjoitti:

> Hi,
>
> Thank you, there is indeed a flaw in the weathercat import code. I have 
> fixed it and it should appear in WeeWX 4.3.0. In the meantime you can carry 
> on with your importing by downloading and using the updated file as follows:
>
> 1. move aside your existing weathercatimport.py:
>
> $ sudo mv /usr/share/weewx/weeimport/weathercatimport.py 
> /usr/share/weewx/weeimport/weathercatimport_orig.py
>
> 2. download the updated weathercatimport.py:
>
> $ sudo wget -P /usr/share/weewx/weeimport 
> https://raw.githubusercontent.com/weewx/weewx/master/bin/weeimport/weathercatimport.py
>
> 3. retry your import
>
> Please let me know if there are any further errors.
>
> Gary
>
> On Monday, 28 December 2020 at 23:33:54 UTC+10 vhel...@gmail.com wrote:
>
>> Weewx is latest version 4.2.0 installed on ubuntu 20.04 via apt-get.
>>
>> -Ville-
>>
>>
>> maanantai 28. joulukuuta 2020 klo 15.31.34 UTC+2 vhel...@gmail.com 
>> kirjoitti:
>>
>>> Hi,
>>> Trying to import from weathercat monthly .cat files.
>>>
>>> I get this error:
>>>
>>> ville@weewx:~/Location1/2017$ sudo wee_import 
>>> --config=/etc/weewx/weewx.conf --import-config=/etc/weewx/import/wct.conf 
>>> --verbose
>>>
>>> Using WeeWX configuration file /etc/weewx/weewx.conf
>>>
>>> Starting wee_import...
>>>
>>> WeatherCat monthly .cat files in the '/home/ville/Location1' directory 
>>> will be imported
>>>
>>> The following options will be used:
>>>
>>>  config=/etc/weewx/weewx.conf, 
>>> import-config=/etc/weewx/import/wct.conf
>>>
>>>  from=None, to=None
>>>
>>>  dry-run=None, calc-missing=True
>>>
>>>  tranche=250, interval=derive
>>>
>>>  UV=True, radiation=True
>>>
>>> Using database binding 'wx_binding', which is bound to database 
>>> 'weewx.sdb'
>>>
>>> Destination table 'archive' unit system is '0x01' (US).
>>>
>>> Missing derived observations will be calculated.
>>>
>>> Starting import ...
>>>
>>> Records covering multiple periods have been identified for import.
>>>
>>> Period 1 ...
>>>
>>> Obtaining raw import data for period 1 ...
>>>
>>> Raw import data read successfully for period 1.
>>>
>>> Mapping raw import data for period 1 ...
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/usr/share/weewx/wee_import", line 900, in 
>>>
>>> main()
>>>
>>>   File "/usr/share/weewx/wee_import", line 830, in main
>>>
>>> source_obj.run()
>>>
>>>   File "/usr/share/weewx/weeimport/weeimport.py", line 401, in run
>>>
>>> _mapped_data = self.mapRawData(_raw_data, self.archive_unit_sys)
>>>
>>>   File "/usr/share/weewx/weeimport/weeimport.py", line 698, in mapRawData
>>>
>>> for _row in data:
>>>
>>>   File "/usr/share/weewx/weeimport/weathercatimport.py", line 332, in 
>>> getRawData
>>>
>>> _line = _clean_line.strip()
>>>
>>> UnboundLocalError: local variable '_clean_line' referenced before 
>>> assignment
>>>
>>>
>>> Checking syslog says:
>>>
>>>
>>> ville@weewx:~/Location1/2017$ tail -f /var/log/syslog
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] DEBUG 
>>> weeimport.weathercatimport:  config=/etc/weewx/weewx.conf, 
>>> import-config=/etc/weewx/import/wct.conf
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] DEBUG 
>>> weeimport.weathercatimport:  from=None, to=None
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] DEBUG 
>>> weeimport.weathercatimport:  dry-run=None, calc-missing=True
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] DEBUG 
>>> weeimport.weathercatimport:  tranche=250, interval=derive
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] DEBUG 
>>> weeimport.weathercatimport:  UV=True, radiation=True
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weathercatimport: 
>>> Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weathercatimport: 
>>> Destination table 'archive' unit system is '0x01' (US).
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: 
>>> Obtaining raw import data for period 1 ...
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: Raw 
>>> import data read successfully for period 1.
>>>
>>> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: 
>>> Mapping raw import data for period 1 ...
>>>
>>>
>>> I really don't know what to try next?
>>>
>>> Can somebody advice?
>>>
>>>
>>> -Ville-
>>>
>>>
>>>
>>>

-- 
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/a74b6b0f-6e83-44ef-826b-c4d9b2ab07f5n%40googlegroups.com.


[weewx-user] Re: Importing from WeatherCat

2020-12-28 Thread vhel...@gmail.com
Weewx is latest version 4.2.0 installed on ubuntu 20.04 via apt-get.

-Ville-


maanantai 28. joulukuuta 2020 klo 15.31.34 UTC+2 vhel...@gmail.com 
kirjoitti:

> Hi,
> Trying to import from weathercat monthly .cat files.
>
> I get this error:
>
> ville@weewx:~/Location1/2017$ sudo wee_import 
> --config=/etc/weewx/weewx.conf --import-config=/etc/weewx/import/wct.conf 
> --verbose
>
> Using WeeWX configuration file /etc/weewx/weewx.conf
>
> Starting wee_import...
>
> WeatherCat monthly .cat files in the '/home/ville/Location1' directory 
> will be imported
>
> The following options will be used:
>
>  config=/etc/weewx/weewx.conf, import-config=/etc/weewx/import/wct.conf
>
>  from=None, to=None
>
>  dry-run=None, calc-missing=True
>
>  tranche=250, interval=derive
>
>  UV=True, radiation=True
>
> Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
>
> Destination table 'archive' unit system is '0x01' (US).
>
> Missing derived observations will be calculated.
>
> Starting import ...
>
> Records covering multiple periods have been identified for import.
>
> Period 1 ...
>
> Obtaining raw import data for period 1 ...
>
> Raw import data read successfully for period 1.
>
> Mapping raw import data for period 1 ...
>
> Traceback (most recent call last):
>
>   File "/usr/share/weewx/wee_import", line 900, in 
>
> main()
>
>   File "/usr/share/weewx/wee_import", line 830, in main
>
> source_obj.run()
>
>   File "/usr/share/weewx/weeimport/weeimport.py", line 401, in run
>
> _mapped_data = self.mapRawData(_raw_data, self.archive_unit_sys)
>
>   File "/usr/share/weewx/weeimport/weeimport.py", line 698, in mapRawData
>
> for _row in data:
>
>   File "/usr/share/weewx/weeimport/weathercatimport.py", line 332, in 
> getRawData
>
> _line = _clean_line.strip()
>
> UnboundLocalError: local variable '_clean_line' referenced before 
> assignment
>
>
> Checking syslog says:
>
>
> ville@weewx:~/Location1/2017$ tail -f /var/log/syslog
>
> Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
> config=/etc/weewx/weewx.conf, import-config=/etc/weewx/import/wct.conf
>
> Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
> from=None, to=None
>
> Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
> dry-run=None, calc-missing=True
>
> Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
> tranche=250, interval=derive
>
> Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
> UV=True, radiation=True
>
> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weathercatimport: 
> Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
>
> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weathercatimport: 
> Destination table 'archive' unit system is '0x01' (US).
>
> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: 
> Obtaining raw import data for period 1 ...
>
> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: Raw 
> import data read successfully for period 1.
>
> Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: Mapping 
> raw import data for period 1 ...
>
>
> I really don't know what to try next?
>
> Can somebody advice?
>
>
> -Ville-
>
>
>
>

-- 
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/dfc7dcee-4b5a-4d77-a694-205422f227a9n%40googlegroups.com.


[weewx-user] Importing from WeatherCat

2020-12-28 Thread vhel...@gmail.com
Hi,
Trying to import from weathercat monthly .cat files.

I get this error:

ville@weewx:~/Location1/2017$ sudo wee_import 
--config=/etc/weewx/weewx.conf --import-config=/etc/weewx/import/wct.conf 
--verbose

Using WeeWX configuration file /etc/weewx/weewx.conf

Starting wee_import...

WeatherCat monthly .cat files in the '/home/ville/Location1' directory will 
be imported

The following options will be used:

 config=/etc/weewx/weewx.conf, import-config=/etc/weewx/import/wct.conf

 from=None, to=None

 dry-run=None, calc-missing=True

 tranche=250, interval=derive

 UV=True, radiation=True

Using database binding 'wx_binding', which is bound to database 'weewx.sdb'

Destination table 'archive' unit system is '0x01' (US).

Missing derived observations will be calculated.

Starting import ...

Records covering multiple periods have been identified for import.

Period 1 ...

Obtaining raw import data for period 1 ...

Raw import data read successfully for period 1.

Mapping raw import data for period 1 ...

Traceback (most recent call last):

  File "/usr/share/weewx/wee_import", line 900, in 

main()

  File "/usr/share/weewx/wee_import", line 830, in main

source_obj.run()

  File "/usr/share/weewx/weeimport/weeimport.py", line 401, in run

_mapped_data = self.mapRawData(_raw_data, self.archive_unit_sys)

  File "/usr/share/weewx/weeimport/weeimport.py", line 698, in mapRawData

for _row in data:

  File "/usr/share/weewx/weeimport/weathercatimport.py", line 332, in 
getRawData

_line = _clean_line.strip()

UnboundLocalError: local variable '_clean_line' referenced before assignment


Checking syslog says:


ville@weewx:~/Location1/2017$ tail -f /var/log/syslog

Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
config=/etc/weewx/weewx.conf, import-config=/etc/weewx/import/wct.conf

Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
from=None, to=None

Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
dry-run=None, calc-missing=True

Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
tranche=250, interval=derive

Dec 28 15:26:09 weewx wee_import[52575] DEBUG weeimport.weathercatimport:  
UV=True, radiation=True

Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weathercatimport: 
Using database binding 'wx_binding', which is bound to database 'weewx.sdb'

Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weathercatimport: 
Destination table 'archive' unit system is '0x01' (US).

Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: Obtaining 
raw import data for period 1 ...

Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: Raw 
import data read successfully for period 1.

Dec 28 15:26:09 weewx wee_import[52575] INFO weeimport.weeimport: Mapping 
raw import data for period 1 ...


I really don't know what to try next?

Can somebody advice?


-Ville-



-- 
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/63ee0609-6414-4aff-be6b-2e1c26d729f3n%40googlegroups.com.
# EXAMPLE CONFIGURATION FILE FOR IMPORTING FROM WEATHERCAT
#
# Copyright (c) 2009-2020 Tom Keffer  and Gary Roderick.
# See the file LICENSE.txt for your rights.

##

# Specify our source. Available options are:
#   CSV - import obs from a single CSV format file
#   WU - import obs from a Weather Underground PWS history
#   Cumulus - import obs from a one or more Cumulus monthly log files
#   WeatherCat - import obs from a one or more WeatherCat monthly .cat files
# Format is:
#   source = (CSV | WU | Cumulus | WeatherCat)
source = WeatherCat

##

[WeatherCat]
# Parameters used when importing WeatherCat monthly .cat files
#
# Directory containing WeatherCat year folders that contain the monthly
# .cat files to be imported. Format is:
#   directory = full path without trailing /
directory = /home/ville/Location1

# When importing WeatherCat monthly .cat file data the following WeeWX
# database fields will be populated directly by the imported data:
#   barometer
#   dateTime
#   dewpoint
#   inHumidity
#   inTemp
#   outHumidity
#   outTemp
#   radiation   (if WeatherCat data available)
#   rain
#   rainRate
#   UV  (if WeatherCat data available)
#   windDir
#   windGust
#   windSpeed
#   windchill
#   extraTemp1  (if WeatherCat data available)
#   extraTemp2  (if WeatherCat data available)
#   extraTemp3  (if WeatherCat data available)