[weewx-user] "First Light", working, but with some problems

2023-09-30 Thread Craig Young
After writing a new driver for my station and configuring weewx to support 
its  data stream I was able to run weewx live for a few minutes, then shut 
it down to check SYSLOG (debug=2).
There appears to be two problems (see attached syslog excerpt):

a) The database and reports are updating on two minutes intervals.  The 
config file has this set for 1 minute intervals:
"INFO weewx.engine: Using archive interval of 60 seconds (software record 
generation)"

 Maybe there is some other setting required?

b) There are several HTTP ERROR 429: TOO MANY REQUESTS messages.  Not sure 
why this is happening.

I think I am close to a fully operational system, just need to clean up a 
few things.

Craig

-- 
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/b8903053-6813-45e1-a804-aa5b566d7bdan%40googlegroups.com.
Oct  1 16:18:42 CLOWeatherStation systemd[1]: Starting LSB: weewx weather 
system...
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: Initializing 
weewx version 4.10.2
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: Using Python 
3.7.3 (default, Jun 29 2023, 18:03:57) #012[GCC 8.3.0]
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: Located at 
/bin/python3
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: Platform 
Linux-5.10.103-v7l+-armv7l-with-debian-10.13
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: Locale is 
'en_NZ.UTF-8'
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: Using 
configuration file /etc/weewx/weewx.conf
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: Debug is 2
Oct  1 16:18:43 CLOWeatherStation weewx[12853] INFO __main__: PID file is 
/var/run/weewx.pid
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG __main__: Initializing 
engine
Oct  1 16:18:43 CLOWeatherStation weewx[12857] INFO weewx.engine: Loading 
station type FileParse (weewx.drivers.fileparse)
Oct  1 16:18:43 CLOWeatherStation weewx[12857] INFO weewx.drivers.fileparse: 
Polling interval is 60.0
Oct  1 16:18:43 CLOWeatherStation weewx[12857] INFO weewx.drivers.fileparse: 
Label map is {'batteryStatus1': 'BattV', 'batteryStatus2': 'PTemp', 
'luminosity': 'SlrFD', 'rain': 'Rain', 'signal3': 'RainDaily', 
'lightning_strike_count': 'Strikes', 'lightning_distance': 'Dist', 'windSpeed': 
'WS', 'windDir': 'WindDir', 'windGust': 'MaxWS', 'outTemp': 'AirT', 'pressure': 
'VP', 'barometer': 'BP', 'outHumidity': 'RH', 'extraTemp1': 'RHT', 'signal1': 
'TiltNS', 'signal2': 'TiltWE', 'signal4': 'PyrgMv', 'signal5': 'PyrgSTRat', 
'signal6': 'PyrgLWi'}
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Loading 
service weewx.engine.StdTimeSynch
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdTimeSynch
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Loading 
service weewx.engine.StdConvert
Oct  1 16:18:43 CLOWeatherStation weewx[12857] INFO weewx.engine: StdConvert 
target unit is 0x11
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdConvert
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Loading 
service weewx.engine.StdCalibrate
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdCalibrate
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Loading 
service weewx.engine.StdQC
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdQC
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.engine: Loading 
service weewx.wxservices.StdWXCalculate
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.wxservices: 
Calculations for LOOP packets: {'pressure': 'hardware', 'altimeter': 
'hardware', 'appTemp': 'hardware', 'barometer': 'software', 'cloudbase': 
'hardware', 'dewpoint': 'software', 'ET': 'hardware', 'heatindex': 'hardware', 
'humidex': 'hardware', 'inDewpoint': 'hardware', 'maxSolarRad': 'hardware', 
'rainRate': 'software', 'windchill': 'hardware', 'windrun': 'hardware', 
'windDir': 'software', 'windGustDir': 'software'}
Oct  1 16:18:43 CLOWeatherStation weewx[12857] DEBUG weewx.wxservices: 
Calculations for archive records: {'pressure': 'hardware', 'altimeter': 
'hardware', 'appTemp': 'hardware', 'barometer': 'software', 'cloudbase': 
'hardware', 'dewpoint': 'software', 'ET': 'hardware', 'heatindex': 'hardware', 
'humidex': 'hardware', 'inDewpoint': 'hardware', 'maxSolarRad': 'hardware', 
'rainRate': 'software', 'windchill': 'hardware', 'windrun': 'hardware', 
'windDir': 'software', 'windGustDir': 'software'}
Oct  1 16:18:43 CLOWeatherStation weewx[12857] INFO weewx.wxservices: 
StdWX

Re: [weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread vince
Yes - thanks

Here's my 4GB RAM pi4 speeds writing to SD card...
Sep 30 20:35:18 pi4 weewx[29063] INFO weewx.cheetahgenerator: Generated 8 
files for report SeasonsReport in 1.99 seconds
Sep 30 20:35:19 pi4 weewx[29063] INFO weewx.imagegenerator: Generated 17 
images for report SeasonsReport in 0.81 seconds
Sep 30 20:35:19 pi4 weewx[29063] INFO weewx.reportengine: Copied 0 files to 
/home/pi/weewx-data/public_html/Seasons

And your Quadro's speeds from your logs...
Sep 30 17:55:19 inovato weewx[5282] INFO weewx.cheetahgenerator: Generated 
8 files for report SeasonsReport in 3.24 seconds
Sep 30 17:55:20 inovato weewx[5282] INFO weewx.imagegenerator: Generated 10 
images for report SeasonsReport in 0.90 seconds

So your box definitely looks like a great little weewx platform for a very 
good price

-- 
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/b8cd837e-3cbe-4dd7-9261-da1f6b55abd9n%40googlegroups.com.


Re: [weewx-user] WUnderground test

2023-09-30 Thread vince
The WeatherFlowUDP driver is a nice example of one that listens for 
broadcast data and does the right thing.  You could use that perhaps as a 
basis for doing your own driver that matches your gear.  The WeatherFlowUDP 
driver is 'very' stable and reliable so it would be a great starting point 
especially if your station is broadcasting data in JSON format.

Either way, I'd recommend you go wired ethernet for your weewx system and 
(ideally) your logger if possible to avoid wifi-related missed broadcasts.

On Saturday, September 30, 2023 at 5:27:32 PM UTC-7 Craig Young wrote:

> The data logger is a broadcast type, meaning it outputs the current data 
> every 60 seconds (ie, it is not polled by the driver).  If the weewx driver 
> fails to get one or more of these data then the data base is not accurate 
> and hence any daily totals will be wrong.  For me, the most important data 
> is the daily rain amount, for agricultural reasons.  So if the weewx driver 
> fails to get one or more records on a day, it will be updated correctly 
> with the daily rain on the next successful read, assuming of course the 
> driver is not down during the span across midnight.  In which case I can 
> download the data from the data logger, run it through a conversion 
> program, then add the missing data to the database.  At the moment what I 
> am doing is letting weewx calculate the daily rain amount.  But I am also 
> display signal3 which is the daily rain from the data logger.  If there is 
> a discrepancy then I will notice it and fix it.  I will most likely stay 
> with this approach.
>
> Craig
>
> On Sunday, October 1, 2023 at 11:00:50 AM UTC+13 gjr80 wrote:
>
>> Hmm, let me throw a question back at you. Why store dayRain in the 
>> database?
>>
>> The restx uploaders will use dayRain if available in the current archive 
>> record otherwise they will manually calculate the value (dayRain does 
>> not need to be saved to database for it to be available in the current 
>> archive record). Today's rainfall (or for that matter any days rainfall) 
>> can be displayed in a report using a tag based on the rain field, again 
>> no need for historical dayRain. By all means have your driver pass 
>> dayRain through, it will save a few milliseconds or less each restx 
>> upload, but I don't see much other use for historical dayRain data.
>>
>> Gary
>>
>> On Saturday, 30 September 2023 at 15:16:22 UTC+10 craig.y...@gmail.com 
>> wrote:
>>
>>> Thanks Gary, this helping a lot to understand the intricate details of 
>>> weewx.  Given this I will update my driver to pass the daily rain as 
>>> 'dayRain' and then store that as a new field in the database for later use.
>>>
>>> On Saturday, September 30, 2023 at 5:41:12 PM UTC+13 gjr80 wrote:
>>>
 On Saturday, 30 September 2023 at 13:29:28 UTC+10 craig.y...@gmail.com 
 wrote:

 If I set the WU password to an invalid value then any posts from weewx 
 to WU will fail, but debug = 2 will show me the URL in the log.  That will 
 work for testing and eliminate any erroneous values showing up in the WU 
 graphs.


 You would think you would be pretty safe doing this, though with WU's 
 history nothing would surprise me. I would put a dummy station ID in as 
 well.

 Gary

>>>

-- 
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/04009603-e6b4-49dd-9cec-2be3140b0908n%40googlegroups.com.


[weewx-user] Re: A low level priority question: A question about multi-instances of WeeWx and a more powerful processor on the horizon

2023-09-30 Thread vince
A pi4 can run quite a lot very easily especially if you dockerize your 
weewx setups.  The new v5 as Tom mentioned would make it much simpler as 
well if you wanted to go that way (one installation of 'code' and different 
trees for data/skins/config files) although you would need to cook up your 
own startup file setup.

Really comes down to whether your current weewx installations 
hypothetically need to attach to the same physical serial/usb port or 
network port.  If there's no contention there, should be easy to do.

On Saturday, September 30, 2023 at 6:08:34 PM UTC-7 DR wrote:

> I have three different RaspPi units running WeeWx from some of my 
> stations (like most with this hobby, some obsessions like more than one 
> seems somewhat common).
>
> I know it has been said that neither WeeWx was designed to do, nor is 
> easy to accomplish, multiple instances running on a single RaspPi.
>
> I also just heard that there is a new version of Rasp Pi coming, a 5, 
> sometimes towards the end of the year, with between 2 and 4 times the 
> computing ability of the Pi4.  4 is no slouch, and runs fine, but Ihave 
> three of them sitting on the shelf doing their solitary thing.
>
> I have my versions pretty well tweaked, but still have a lot of work to 
> do for my attempt at a very simple driver, I am dreaming of maybe a nice 
> end-of-year present of a new RaspPi 5 and WeeWx 5, and having all the 
> stations running off one computer.
>
>
> Are any of the changes to the upcoming WeeWx 5 likely making it easier 
> to run it in what I call  multiple instances (probably the wrong use of 
> the word) on the same computer?
>
> Dale
>
>

-- 
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/6f3c2b29-1cb7-4cb3-9247-9fc3496f2e6an%40googlegroups.com.


Re: [weewx-user] A low level priority question: A question about multi-instances of WeeWx and a more powerful processor on the horizon

2023-09-30 Thread Tom Keffer
One v5 change that makes it easier to run multiple instances is that all
station data has now been cleanly separated from the "code." So you can put
skins, configuration files, and even extensions in a separate place for
each station. That makes it a lot easier to keep track of what instance is
using which configuration file and skin.

As far as compute power is concerned, unless you're running some very
intensive reports, I would think an RPi 4 would have no trouble running 3
instances.

I run 3 instances on a 15 year old fit-PC with 512MB of memory and a 32-bit
AMC Geode processor running at 500 MHz and it has no problem.

On Sat, Sep 30, 2023 at 6:08 PM DR  wrote:

> I have three different RaspPi units running WeeWx from some of my
> stations (like most with this hobby, some obsessions like more than one
> seems somewhat common).
>
> I know it has been said that neither WeeWx was designed to do, nor is
> easy to accomplish, multiple instances running on a single RaspPi.
>
> I also just heard that there is a new version of Rasp Pi coming, a 5,
> sometimes towards the end of the year, with between 2 and 4 times the
> computing ability of the Pi4.  4 is no slouch, and runs fine, but Ihave
> three of them sitting on the shelf doing their solitary thing.
>
> I have my versions pretty well tweaked, but still have a lot of work to
> do for my attempt at a very simple driver, I am dreaming of maybe a nice
> end-of-year present of a new RaspPi 5 and WeeWx 5, and having all the
> stations running off one computer.
>
>
> Are any of the changes to the upcoming WeeWx 5 likely making it easier
> to run it in what I call  multiple instances (probably the wrong use of
> the word) on the same computer?
>
> Dale
>
> --
> 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/54e82588-e484-403f-9556-303e03d402d7%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/CAPq0zEDtWTGMixBc79dS2aDiJ7Au9r4hA6s6wS5v_16SXduRQw%40mail.gmail.com.


Re: [weewx-user] A low level priority question: A question about multi-instances of WeeWx and a more powerful processor on the horizon

2023-09-30 Thread p q
I haven't been following the story of having multiple Weewx on a single
computer. What's the problem? Performance - then having a faster computer
would help? Instances relying on the same resources to do the same thing?
Having more compute power won't help that, but it might make it more
practical to use containers or some other virtualization technology that
was previously limited by the hardware.

On Sat, Sep 30, 2023 at 6:08 PM DR  wrote:

> I have three different RaspPi units running WeeWx from some of my
> stations (like most with this hobby, some obsessions like more than one
> seems somewhat common).
>
> I know it has been said that neither WeeWx was designed to do, nor is
> easy to accomplish, multiple instances running on a single RaspPi.
>
> I also just heard that there is a new version of Rasp Pi coming, a 5,
> sometimes towards the end of the year, with between 2 and 4 times the
> computing ability of the Pi4.  4 is no slouch, and runs fine, but Ihave
> three of them sitting on the shelf doing their solitary thing.
>
> I have my versions pretty well tweaked, but still have a lot of work to
> do for my attempt at a very simple driver, I am dreaming of maybe a nice
> end-of-year present of a new RaspPi 5 and WeeWx 5, and having all the
> stations running off one computer.
>
>
> Are any of the changes to the upcoming WeeWx 5 likely making it easier
> to run it in what I call  multiple instances (probably the wrong use of
> the word) on the same computer?
>
> Dale
>
> --
> 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/54e82588-e484-403f-9556-303e03d402d7%40gmail.com
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM23SzgzN8UfGOqNRkaAxyB9nr%3DgNGqw4uYQeJcKzJHv%2Btw%40mail.gmail.com.


[weewx-user] A low level priority question: A question about multi-instances of WeeWx and a more powerful processor on the horizon

2023-09-30 Thread DR
I have three different RaspPi units running WeeWx from some of my 
stations (like most with this hobby, some obsessions like more than one 
seems somewhat common).


I know it has been said that neither WeeWx was designed to do, nor is 
easy to accomplish, multiple instances running on a single RaspPi.


I also just heard that there is a new version of Rasp Pi coming, a 5, 
sometimes towards the end of the year, with between 2 and 4 times the 
computing ability of the Pi4.  4 is no slouch, and runs fine, but Ihave 
three of them sitting on the shelf doing their solitary thing.


I have my versions pretty well tweaked, but still have a lot of work to 
do for my attempt at a very simple driver, I am dreaming of maybe a nice 
end-of-year present of a new RaspPi 5 and WeeWx 5, and having all the 
stations running off one computer.



Are any of the changes to the upcoming WeeWx 5 likely making it easier 
to run it in what I call  multiple instances (probably the wrong use of 
the word) on the same computer?


Dale

--
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/54e82588-e484-403f-9556-303e03d402d7%40gmail.com.


Re: [weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread kd4e
I hope this worked and is useful to you ...

On Saturday, September 30, 2023 at 5:52:22 PM UTC-7 kd4e wrote:

> Log is running. It says at least for 5 minutes?
>
> On Saturday, September 30, 2023 at 8:28:41 PM UTC-4 vince wrote:
>
>> Wow that is a very interesting little pi killer for $35 or so.
>> I'd be interested in some data from your syslog re: how long it takes to 
>> generate the html from the skins templates when it runs them...
>>
>> On Saturday, September 30, 2023 at 5:04:42 PM UTC-7 kd4e wrote:
>>
>> Being able to devote an inovato Quadra to the project keeps the setup 
>> neater.
>>
>>  
>>
>

-- 
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/62031b7f-d1fc-434e-be30-5d5007337f1an%40googlegroups.com.


mylog
Description: Binary data


Re: [weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread kd4e
Log is running. It says at least for 5 minutes?

On Saturday, September 30, 2023 at 8:28:41 PM UTC-4 vince wrote:

> Wow that is a very interesting little pi killer for $35 or so.
> I'd be interested in some data from your syslog re: how long it takes to 
> generate the html from the skins templates when it runs them...
>
> On Saturday, September 30, 2023 at 5:04:42 PM UTC-7 kd4e wrote:
>
> Being able to devote an inovato Quadra to the project keeps the setup 
> neater.
>
>  
>

-- 
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/bcf92485-f881-437f-8dd7-ee13d171b321n%40googlegroups.com.


Re: [weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread vince
Wow that is a very interesting little pi killer for $35 or so.
I'd be interested in some data from your syslog re: how long it takes to 
generate the html from the skins templates when it runs them...

On Saturday, September 30, 2023 at 5:04:42 PM UTC-7 kd4e wrote:

Being able to devote an inovato Quadra to the project keeps the setup 
neater.

 

-- 
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/07239fa2-5469-47e0-a740-da3c0d059831n%40googlegroups.com.


Re: [weewx-user] WUnderground test

2023-09-30 Thread Craig Young
The data logger is a broadcast type, meaning it outputs the current data 
every 60 seconds (ie, it is not polled by the driver).  If the weewx driver 
fails to get one or more of these data then the data base is not accurate 
and hence any daily totals will be wrong.  For me, the most important data 
is the daily rain amount, for agricultural reasons.  So if the weewx driver 
fails to get one or more records on a day, it will be updated correctly 
with the daily rain on the next successful read, assuming of course the 
driver is not down during the span across midnight.  In which case I can 
download the data from the data logger, run it through a conversion 
program, then add the missing data to the database.  At the moment what I 
am doing is letting weewx calculate the daily rain amount.  But I am also 
display signal3 which is the daily rain from the data logger.  If there is 
a discrepancy then I will notice it and fix it.  I will most likely stay 
with this approach.

Craig

On Sunday, October 1, 2023 at 11:00:50 AM UTC+13 gjr80 wrote:

> Hmm, let me throw a question back at you. Why store dayRain in the 
> database?
>
> The restx uploaders will use dayRain if available in the current archive 
> record otherwise they will manually calculate the value (dayRain does not 
> need to be saved to database for it to be available in the current archive 
> record). Today's rainfall (or for that matter any days rainfall) can be 
> displayed in a report using a tag based on the rain field, again no need 
> for historical dayRain. By all means have your driver pass dayRain 
> through, it will save a few milliseconds or less each restx upload, but I 
> don't see much other use for historical dayRain data.
>
> Gary
>
> On Saturday, 30 September 2023 at 15:16:22 UTC+10 craig.y...@gmail.com 
> wrote:
>
>> Thanks Gary, this helping a lot to understand the intricate details of 
>> weewx.  Given this I will update my driver to pass the daily rain as 
>> 'dayRain' and then store that as a new field in the database for later use.
>>
>> On Saturday, September 30, 2023 at 5:41:12 PM UTC+13 gjr80 wrote:
>>
>>> On Saturday, 30 September 2023 at 13:29:28 UTC+10 craig.y...@gmail.com 
>>> wrote:
>>>
>>> If I set the WU password to an invalid value then any posts from weewx 
>>> to WU will fail, but debug = 2 will show me the URL in the log.  That will 
>>> work for testing and eliminate any erroneous values showing up in the WU 
>>> graphs.
>>>
>>>
>>> You would think you would be pretty safe doing this, though with WU's 
>>> history nothing would surprise me. I would put a dummy station ID in as 
>>> well.
>>>
>>> Gary
>>>
>>

-- 
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/63f973c3-4a20-4586-af3e-c1538ac1adf9n%40googlegroups.com.


Re: [weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread kd4e
OK. Clean install with careful model settings, etc. Working 100% 
Awesomeness!
Thanks for this - I've been wanting to use it for years but always some 
distraction. I've referred many others to WeeWx.
Being able to devote an inovato Quadra to the project keeps the setup 
neater.
The HTML page looks nice.
On Saturday, September 30, 2023 at 4:42:08 PM UTC-7 kd4e wrote:

> OK, I had already upgraded to v5 - so I just switched to a second inovato 
> Quadra box with a clean install.
>
> I'll install V4.10.2, run it, and post a good log.
>
> It will take just a few minutes ...
>
> On Saturday, September 30, 2023 at 4:02:40 PM UTC-7 Tom Keffer wrote:
>
>> Let's stick with V4.10.2.
>>
>> If you're not getting any graphs, the first thing you need to do is show 
>> us the log. See the Wiki article *Help! Posting to weewx-user 
>> * for 
>> how to get a good log.
>>
>> On Sat, Sep 30, 2023 at 3:30 PM kd4e  wrote:
>>
>>> How would I force the Beta v5.0 to download and overwrite whatever 
>>> version I have installed, please?
>>>
>>> On Saturday, September 30, 2023 at 6:15:53 PM UTC-4 kd4e wrote:
>>>
 I'm setting up WeeWx on an inovato Quadra with an Acu-Rite weather 
 station (label says Model 01536 but lsusb says Chaney Instrument Model 
 01036 weather sensor).

 I'm getting no chart or graph - just the looped data.

 @Tom Keefer the current version of WeeWX, v4.10.2, as well as the beta 
 version of v5.0, have the fix. 

 It's a brand new download and install of WeeWx using wget - would that 
 have grabbed the most recent version?

 I'm not sure how to find the version info.
>>>
>>> -- 
>>> 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/41895556-34f5-4bed-a959-c3497248294dn%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/ca30981b-7d3f-4ddf-824b-7c4140c712ban%40googlegroups.com.


Re: [weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread kd4e
OK, I had already upgraded to v5 - so I just switched to a second inovato 
Quadra box with a clean install.

I'll install V4.10.2, run it, and post a good log.

It will take just a few minutes ...

On Saturday, September 30, 2023 at 4:02:40 PM UTC-7 Tom Keffer wrote:

> Let's stick with V4.10.2.
>
> If you're not getting any graphs, the first thing you need to do is show 
> us the log. See the Wiki article *Help! Posting to weewx-user 
> * for 
> how to get a good log.
>
> On Sat, Sep 30, 2023 at 3:30 PM kd4e  wrote:
>
>> How would I force the Beta v5.0 to download and overwrite whatever 
>> version I have installed, please?
>>
>> On Saturday, September 30, 2023 at 6:15:53 PM UTC-4 kd4e wrote:
>>
>>> I'm setting up WeeWx on an inovato Quadra with an Acu-Rite weather 
>>> station (label says Model 01536 but lsusb says Chaney Instrument Model 
>>> 01036 weather sensor).
>>>
>>> I'm getting no chart or graph - just the looped data.
>>>
>>> @Tom Keefer the current version of WeeWX, v4.10.2, as well as the beta 
>>> version of v5.0, have the fix. 
>>>
>>> It's a brand new download and install of WeeWx using wget - would that 
>>> have grabbed the most recent version?
>>>
>>> I'm not sure how to find the version info.
>>
>> -- 
>> 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/41895556-34f5-4bed-a959-c3497248294dn%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/5212860f-604b-43c4-b7be-cf848f990210n%40googlegroups.com.


Re: [weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread Tom Keffer
Let's stick with V4.10.2.

If you're not getting any graphs, the first thing you need to do is show us
the log. See the Wiki article *Help! Posting to weewx-user
* for how
to get a good log.

On Sat, Sep 30, 2023 at 3:30 PM kd4e  wrote:

> How would I force the Beta v5.0 to download and overwrite whatever version
> I have installed, please?
>
> On Saturday, September 30, 2023 at 6:15:53 PM UTC-4 kd4e wrote:
>
>> I'm setting up WeeWx on an inovato Quadra with an Acu-Rite weather
>> station (label says Model 01536 but lsusb says Chaney Instrument Model
>> 01036 weather sensor).
>>
>> I'm getting no chart or graph - just the looped data.
>>
>> @Tom Keefer the current version of WeeWX, v4.10.2, as well as the beta
>> version of v5.0, have the fix.
>>
>> It's a brand new download and install of WeeWx using wget - would that
>> have grabbed the most recent version?
>>
>> I'm not sure how to find the version info.
>
> --
> 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/41895556-34f5-4bed-a959-c3497248294dn%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/CAPq0zEDbut6zFCgC%3DdngGakbhy%2BLDotj_AV2n43UeGT0mjd2LA%40mail.gmail.com.


Re: [weewx-user] Belchertown weekly graph

2023-09-30 Thread Lorin Tremblay
Well I commented out in skin.conf of the highchart

# Highcharts week json data
#[[[WeekJSON]]]
#template = json/week.json.tmpl

# Highcharts year json data
#[[[YearJSON]]]
#template = json/year.json.tmpl
 And my weekly now works!


Thanks for all the inputs, really appreciated!

> On 30 Sep 23, at 17:53, gjr80  wrote:
> 
> On Sunday, 1 October 2023 at 07:03:25 UTC+10 kidn...@gmail.com wrote:
> Ok thanks for the insight, Highchart is overwriting my week.json, but not my 
> other, day.json, month.json or year.json…. Now the question is why?
> 
> Simple, the weewx-highcharts extensions produces two json files; week.json 
> and year.json, it does not produce day.json or month.json. So that is why the 
> Belchertown day.json and month.json are not overwritten. As for why year.json 
> is not overwritten, it could be for a number of reasons. Have you disabled 
> generation of weewx-highcharts year.json? Is it being written to another 
> directory? By default weewx-highcharts places week.json and year.json in 
> /home/weewx/public_html/json or /var/www/html/weewx/json depending on your 
> WeeWX install type. I thought these would be safe, but perhaps not.
> 
> The answers will be in your config files. You have a few choices; either 
> disable the Belchertown skin or weewx-highcharts or change the location of 
> the generated Belchertown or weewx-highcharts output. You could also change 
> the names of the weewx-highcharts generated json files, but I do not 
> recommend this as it would entail editing some of the weewx-highcharts 
> javascript.
> 
> Gary 
> 
> -- 
> 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/d487f27f-ce8d-4c1e-a462-63d7581f2220n%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/B353446F-B8CC-45A5-8E05-96E0D0B5CE76%40gmail.com.


[weewx-user] Re: Getting no chart or graph - just the looped data

2023-09-30 Thread kd4e
How would I force the Beta v5.0 to download and overwrite whatever version 
I have installed, please?

On Saturday, September 30, 2023 at 6:15:53 PM UTC-4 kd4e wrote:

> I'm setting up WeeWx on an inovato Quadra with an Acu-Rite weather station 
> (label says Model 01536 but lsusb says Chaney Instrument Model 01036 
> weather sensor).
>
> I'm getting no chart or graph - just the looped data.
>
> @Tom Keefer the current version of WeeWX, v4.10.2, as well as the beta 
> version of v5.0, have the fix. 
>
> It's a brand new download and install of WeeWx using wget - would that 
> have grabbed the most recent version?
>
> I'm not sure how to find the version info.

-- 
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/41895556-34f5-4bed-a959-c3497248294dn%40googlegroups.com.


[weewx-user] Getting no chart or graph - just the looped data

2023-09-30 Thread kd4e
I'm setting up WeeWx on an inovato Quadra with an Acu-Rite weather station 
(label says Model 01536 but lsusb says Chaney Instrument Model 01036 
weather sensor).

I'm getting no chart or graph - just the looped data.

@Tom Keefer the current version of WeeWX, v4.10.2, as well as the beta 
version of v5.0, have the fix. 

It's a brand new download and install of WeeWx using wget - would that have 
grabbed the most recent version?

I'm not sure how to find the version info.

-- 
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/705877e4-f7ac-45d6-996a-05f5da0063e5n%40googlegroups.com.


Re: [weewx-user] re: "AttributeError: tuype object 'ImageDraw' has no attribute 'textsize'"

2023-09-30 Thread kd4e
I'm getting no chart or graph - just the looped data - I think I followed a 
link here from a related thread - then forgot I was elsewhere ...

I'll copy this to a new thread.
On Saturday, September 30, 2023 at 5:47:03 PM UTC-4 Tom Keffer wrote:

> kd4e, I'm not sure why you put your post under this thread. Are you 
> getting this error? If so, the current version of WeeWX, v4.10.2, as well 
> as the beta version of v5.0, have the fix. 
>
> If this is not your problem, you should really start a new thread.
>
> I'm not sure why you need genplot.py, but you will find it at 
> */usr/share/weewx/weeplot/genplot.py*.
>
> On Sat, Sep 30, 2023 at 1:55 PM kd4e  wrote:
>
>> Cool, thanks! Should a file like that have been auto-generated during 
>> install or setup? I don't find one. There is a weeplot in /usr/share/weewx
>>
>> On Saturday, September 30, 2023 at 4:25:09 PM UTC-4 vince wrote:
>>
> https://raw.githubusercontent.com/weewx/weewx/V5/bin/weeplot/genplot.py 
>>> for the latest v5 version
>>>
>>> On Saturday, September 30, 2023 at 1:22:51 PM UTC-7 kd4e wrote:
>>>
 I'm just setting up WeeWx on an inovato Quadra with an Acu-Rite weather 
 station (label says Model 01536
  but lsusb says Chaney Instrument Model 01036 weather sensor).

 Anyhow, I'm getting looped data and no chart or graph.

 Where would I find the development version of genplot.py - I don't seem 
 to be able to locate it in the installed files.

 Thanks!
 On Friday, July 14, 2023 at 6:36:49 AM UTC-4 Andrea wrote:

>
> I solved installing the new version of genplot.py from weewx files 
> that are in the developing directory.
> Some software changes and now is up and running again!
>
> Andrea
> Il giorno venerdì 14 luglio 2023 alle 08:09:08 UTC+2 Andrea ha scritto:
>
>> I've already tried this trick but with no succes.
>> Thanks
>> Andrea
>>
>> Il giorno giovedì 13 luglio 2023 alle 23:02:43 UTC+2 Tom Keffer ha 
>> scritto:
>>
>>> Look farther upthread for the solution.
>>>
>>> On Thu, Jul 13, 2023 at 1:10 PM Andrea  wrote:
>>>
 Hi 
 I received the same error. Suddenly I got this error.. while 
 running ! 
 I'm using weewx 4.7.0 with  Linux Manjaro.
 Can you help me to solve this errror?
 thanks
 Andrea

 Il giorno lunedì 3 luglio 2023 alle 02:03:46 UTC+2 Sam Finn ha 
 scritto:

> Thanks again. Backing-off to 9.4.0, and using the modified 
> sqlite.py to take care of the missing RADIAN function, has apparently 
> done 
> the trick!
>
> Best - 
>
> Sam
>
> On Sunday, July 2, 2023 at 5:50:12 PM UTC-6 Tom Keffer wrote:
>
>> Oops. Foiled by Issue #862 
>> !
>>
>> Try an even earlier version of Pillow. Say, 9.4.0.
>>
>> -tk
>>
>> On Sun, Jul 2, 2023 at 4:39 PM Sam Finn  wrote:
>>
>>> Hi Tom - 
>>>
>>> Thanks much! I was running w/Pillow 10.0. I backed-off to 9.5.0 
>>> but am not getting a different error: 
>>>
>>> *weewx* sudo bin/wee_reports weewx.conf
>>>
>>> Generating as of last timestamp in the database.
>>>
>>> Using configuration file weewx.conf
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 
>>> 197, in run
>>>
>>> obj.start()
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 
>>> 385, in start
>>>
>>> self.run()
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 
>>> 42, in run
>>>
>>> self.gen_images(self.gen_ts)
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 
>>> 114, in gen_images
>>>
>>> image = plot.render()
>>>
>>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 222, 
>>> in render
>>>
>>> self._renderDayNight(sdraw)
>>>
>>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 266, 
>>> in _renderDayNight
>>>
>>> sdraw.rectangle(((xleft,self.yscale[0]),
>>>
>>>   File "/Users/Shared/weewx/bin/weeplot/utilities.py", line 442, 
>>> in rectangle
>>>
>>> self.draw.rectangle(box_scaled, **options)
>>>
>>>   File "/Library/Python/3.9/site-packages/PIL/ImageDraw.py", 
>>> line 294, in rectangle
>>>
>>> self.draw.draw_rectangle(xy, fill, 1)
>>>
>>> ValueError: y1 must be greater than or equal to y0
>>>
>>> Are there further su

Re: [weewx-user] WUnderground test

2023-09-30 Thread gjr80
Hmm, let me throw a question back at you. Why store dayRain in the database?

The restx uploaders will use dayRain if available in the current archive 
record otherwise they will manually calculate the value (dayRain does not 
need to be saved to database for it to be available in the current archive 
record). Today's rainfall (or for that matter any days rainfall) can be 
displayed in a report using a tag based on the rain field, again no need 
for historical dayRain. By all means have your driver pass dayRain through, 
it will save a few milliseconds or less each restx upload, but I don't see 
much other use for historical dayRain data.

Gary

On Saturday, 30 September 2023 at 15:16:22 UTC+10 craig.y...@gmail.com 
wrote:

> Thanks Gary, this helping a lot to understand the intricate details of 
> weewx.  Given this I will update my driver to pass the daily rain as 
> 'dayRain' and then store that as a new field in the database for later use.
>
> On Saturday, September 30, 2023 at 5:41:12 PM UTC+13 gjr80 wrote:
>
>> On Saturday, 30 September 2023 at 13:29:28 UTC+10 craig.y...@gmail.com 
>> wrote:
>>
>> If I set the WU password to an invalid value then any posts from weewx to 
>> WU will fail, but debug = 2 will show me the URL in the log.  That will 
>> work for testing and eliminate any erroneous values showing up in the WU 
>> graphs.
>>
>>
>> You would think you would be pretty safe doing this, though with WU's 
>> history nothing would surprise me. I would put a dummy station ID in as 
>> well.
>>
>> Gary
>>
>

-- 
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/21db27ba-6f19-4644-8df5-8f83fb14484cn%40googlegroups.com.


Re: [weewx-user] Belchertown weekly graph

2023-09-30 Thread gjr80
On Sunday, 1 October 2023 at 07:03:25 UTC+10 kidn...@gmail.com wrote:

Ok thanks for the insight, Highchart is overwriting my week.json, but not 
my other, day.json, month.json or year.json…. Now the question is why?


Simple, the weewx-highcharts extensions produces two json files; week.json
 and year.json, it does not produce day.json or month.json. So that is why 
the Belchertown day.json and month.json are not overwritten. As for why 
year.json is not overwritten, it could be for a number of reasons. Have you 
disabled generation of weewx-highcharts year.json? Is it being written to 
another directory? By default weewx-highcharts places week.json and 
year.json in /home/weewx/public_html/json or /var/www/html/weewx/json depending 
on your WeeWX install type. I thought these would be safe, but perhaps not.

The answers will be in your config files. You have a few choices; either 
disable the Belchertown skin or weewx-highcharts or change the location of 
the generated Belchertown or weewx-highcharts output. You could also change 
the names of the weewx-highcharts generated json files, but I do not 
recommend this as it would entail editing some of the weewx-highcharts 
javascript.

Gary 

-- 
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/d487f27f-ce8d-4c1e-a462-63d7581f2220n%40googlegroups.com.


Re: [weewx-user] re: "AttributeError: tuype object 'ImageDraw' has no attribute 'textsize'"

2023-09-30 Thread Tom Keffer
kd4e, I'm not sure why you put your post under this thread. Are you getting
this error? If so, the current version of WeeWX, v4.10.2, as well as the
beta version of v5.0, have the fix.

If this is not your problem, you should really start a new thread.

I'm not sure why you need genplot.py, but you will find it at
*/usr/share/weewx/weeplot/genplot.py*.

On Sat, Sep 30, 2023 at 1:55 PM kd4e  wrote:

> Cool, thanks! Should a file like that have been auto-generated during
> install or setup? I don't find one. There is a weeplot in /usr/share/weewx
>
> On Saturday, September 30, 2023 at 4:25:09 PM UTC-4 vince wrote:
>
>> https://raw.githubusercontent.com/weewx/weewx/V5/bin/weeplot/genplot.py
>> for the latest v5 version
>>
>> On Saturday, September 30, 2023 at 1:22:51 PM UTC-7 kd4e wrote:
>>
>>> I'm just setting up WeeWx on an inovato Quadra with an Acu-Rite weather
>>> station (label says Model 01536
>>>  but lsusb says Chaney Instrument Model 01036 weather sensor).
>>>
>>> Anyhow, I'm getting looped data and no chart or graph.
>>>
>>> Where would I find the development version of genplot.py - I don't seem
>>> to be able to locate it in the installed files.
>>>
>>> Thanks!
>>> On Friday, July 14, 2023 at 6:36:49 AM UTC-4 Andrea wrote:
>>>

 I solved installing the new version of genplot.py from weewx files that
 are in the developing directory.
 Some software changes and now is up and running again!

 Andrea
 Il giorno venerdì 14 luglio 2023 alle 08:09:08 UTC+2 Andrea ha scritto:

> I've already tried this trick but with no succes.
> Thanks
> Andrea
>
> Il giorno giovedì 13 luglio 2023 alle 23:02:43 UTC+2 Tom Keffer ha
> scritto:
>
>> Look farther upthread for the solution.
>>
>> On Thu, Jul 13, 2023 at 1:10 PM Andrea  wrote:
>>
>>> Hi
>>> I received the same error. Suddenly I got this error.. while running
>>> !
>>> I'm using weewx 4.7.0 with  Linux Manjaro.
>>> Can you help me to solve this errror?
>>> thanks
>>> Andrea
>>>
>>> Il giorno lunedì 3 luglio 2023 alle 02:03:46 UTC+2 Sam Finn ha
>>> scritto:
>>>
 Thanks again. Backing-off to 9.4.0, and using the modified
 sqlite.py to take care of the missing RADIAN function, has apparently 
 done
 the trick!

 Best -

 Sam

 On Sunday, July 2, 2023 at 5:50:12 PM UTC-6 Tom Keffer wrote:

> Oops. Foiled by Issue #862
> !
>
> Try an even earlier version of Pillow. Say, 9.4.0.
>
> -tk
>
> On Sun, Jul 2, 2023 at 4:39 PM Sam Finn  wrote:
>
>> Hi Tom -
>>
>> Thanks much! I was running w/Pillow 10.0. I backed-off to 9.5.0
>> but am not getting a different error:
>>
>> *weewx* sudo bin/wee_reports weewx.conf
>>
>> Generating as of last timestamp in the database.
>>
>> Using configuration file weewx.conf
>>
>> Traceback (most recent call last):
>>
>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 197,
>> in run
>>
>> obj.start()
>>
>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 385,
>> in start
>>
>> self.run()
>>
>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line
>> 42, in run
>>
>> self.gen_images(self.gen_ts)
>>
>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line
>> 114, in gen_images
>>
>> image = plot.render()
>>
>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 222, in
>> render
>>
>> self._renderDayNight(sdraw)
>>
>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 266, in
>> _renderDayNight
>>
>> sdraw.rectangle(((xleft,self.yscale[0]),
>>
>>   File "/Users/Shared/weewx/bin/weeplot/utilities.py", line 442,
>> in rectangle
>>
>> self.draw.rectangle(box_scaled, **options)
>>
>>   File "/Library/Python/3.9/site-packages/PIL/ImageDraw.py", line
>> 294, in rectangle
>>
>> self.draw.draw_rectangle(xy, fill, 1)
>>
>> ValueError: y1 must be greater than or equal to y0
>>
>> Are there further suggestions?
>>
>> Again, thanks!
>>
>> Sam
>> On Sunday, July 2, 2023 at 4:10:30 PM UTC-6 Tom Keffer wrote:
>>
>>> This is a known problem caused by a change in Pillow, the
>>> imaging library used by WeeWX.
>>>
>>> If you're on a Mac, you probably installed Pillow using pip. See
>>> what version of Pillow you have by using these t

Re: [weewx-user] re: "AttributeError: tuype object 'ImageDraw' has no attribute 'textsize'"

2023-09-30 Thread kd4e
OK, after a dumb pill, or two, I renamed the existing genplot.py then got 
the linked genplot.py and copied it to /usr/share/weewx/weeplot/ then ran 
"sudo weewxd"

No joy - same loop.

Do I need to rerun "wee_config --reconfigure" or anything for it to take 
effect, please?
On Saturday, September 30, 2023 at 4:25:09 PM UTC-4 vince wrote:

> https://raw.githubusercontent.com/weewx/weewx/V5/bin/weeplot/genplot.py 
> for the latest v5 version
>
> On Saturday, September 30, 2023 at 1:22:51 PM UTC-7 kd4e wrote:
>
>> I'm just setting up WeeWx on an inovato Quadra with an Acu-Rite weather 
>> station (label says Model 01536
>>  but lsusb says Chaney Instrument Model 01036 weather sensor).
>>
>> Anyhow, I'm getting looped data and no chart or graph.
>>
>> Where would I find the development version of genplot.py - I don't seem 
>> to be able to locate it in the installed files.
>>
>> Thanks!
>> On Friday, July 14, 2023 at 6:36:49 AM UTC-4 Andrea wrote:
>>
>>>
>>> I solved installing the new version of genplot.py from weewx files that 
>>> are in the developing directory.
>>> Some software changes and now is up and running again!
>>>
>>> Andrea
>>> Il giorno venerdì 14 luglio 2023 alle 08:09:08 UTC+2 Andrea ha scritto:
>>>
 I've already tried this trick but with no succes.
 Thanks
 Andrea

 Il giorno giovedì 13 luglio 2023 alle 23:02:43 UTC+2 Tom Keffer ha 
 scritto:

> Look farther upthread for the solution.
>
> On Thu, Jul 13, 2023 at 1:10 PM Andrea  wrote:
>
>> Hi 
>> I received the same error. Suddenly I got this error.. while running 
>> ! 
>> I'm using weewx 4.7.0 with  Linux Manjaro.
>> Can you help me to solve this errror?
>> thanks
>> Andrea
>>
>> Il giorno lunedì 3 luglio 2023 alle 02:03:46 UTC+2 Sam Finn ha 
>> scritto:
>>
>>> Thanks again. Backing-off to 9.4.0, and using the modified sqlite.py 
>>> to take care of the missing RADIAN function, has apparently done the 
>>> trick!
>>>
>>> Best - 
>>>
>>> Sam
>>>
>>> On Sunday, July 2, 2023 at 5:50:12 PM UTC-6 Tom Keffer wrote:
>>>
 Oops. Foiled by Issue #862 
 !

 Try an even earlier version of Pillow. Say, 9.4.0.

 -tk

 On Sun, Jul 2, 2023 at 4:39 PM Sam Finn  wrote:

> Hi Tom - 
>
> Thanks much! I was running w/Pillow 10.0. I backed-off to 9.5.0 
> but am not getting a different error: 
>
> *weewx* sudo bin/wee_reports weewx.conf
>
> Generating as of last timestamp in the database.
>
> Using configuration file weewx.conf
>
> Traceback (most recent call last):
>
>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 197, 
> in run
>
> obj.start()
>
>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 385, 
> in start
>
> self.run()
>
>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 42, 
> in run
>
> self.gen_images(self.gen_ts)
>
>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 
> 114, in gen_images
>
> image = plot.render()
>
>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 222, in 
> render
>
> self._renderDayNight(sdraw)
>
>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 266, in 
> _renderDayNight
>
> sdraw.rectangle(((xleft,self.yscale[0]),
>
>   File "/Users/Shared/weewx/bin/weeplot/utilities.py", line 442, 
> in rectangle
>
> self.draw.rectangle(box_scaled, **options)
>
>   File "/Library/Python/3.9/site-packages/PIL/ImageDraw.py", line 
> 294, in rectangle
>
> self.draw.draw_rectangle(xy, fill, 1)
>
> ValueError: y1 must be greater than or equal to y0
>
> Are there further suggestions? 
>
> Again, thanks!
>
> Sam
> On Sunday, July 2, 2023 at 4:10:30 PM UTC-6 Tom Keffer wrote:
>
>> This is a known problem caused by a change in Pillow, the imaging 
>> library used by WeeWX.
>>
>> If you're on a Mac, you probably installed Pillow using pip. See 
>> what version of Pillow you have by using these two methods.
>>
>> *python3 -m pip list -v*
>>
>> *python3 -c "import PIL;print(PIL.__version__)"*
>>
>>
>> If it's 10.0, then this is the problem. The solution is to 
>> downgrade your copy:
>>
>> *python3 -m pip install Pillow==9.5.0*
>>
>>
>> If it's earlier than 10.0, then it's some other

Re: [weewx-user] Belchertown weekly graph

2023-09-30 Thread Kidney
Ok thanks for the insight, Highchart is overwriting my week.json, but not my other, day.json, month.json or year.json…. Now the question is why?On Sep 30, 2023, at 14:45, jterr...@gmail.com  wrote:Lorin,According to your "week" configuration, Belchertown should normally create a json file named week.json. (http://www.gestionlgt.com/Chalet/json/week.json).Your problem seems to be due to the fact that another template is overwriting  the week.json file, and that the format of this json file is not recognized bat the Belchertown _javascript_ :Here the beginning of your current week.json file :[{    "_version": "week.json.tmpl version 0.3.2",    "utcoffset": -240.0,    "timespan": {        "start": 169544160.0,        "stop": 169609860    },    "temperatureplot": {        "series":        {            "outTemp": {                "name": "Temperature",                "data": [[169544190.0, 8.4], [169544220.0, 8.3]..LIf you look for example  at your day.json, the beginning of the file is :{    "belchertown_version": "1.3.1",    "generated_timestamp": "09/30/2023 14:35:22",    "colors": "#7cb5ec, #b2df8a, #f7a35c, #8c6bb1, #dd3497, #e4d354, #268bd2, #f45b5b, #6a3d9a, #33a02c",    "chartgroup_title": "Today",    "tooltip_date_format": "LLL",    "credits": "highcharts_default",    "credits_url": "highcharts_default",    "credits_position": "highcharts_default",    "chart1": {        "series": {            "outTemp": {                "obsType": "outTemp",                "yAxis_label": "Outside Temperature (\u00b0C)",                "polar": "false",                "zIndex": 1.0,                "name": "Outside Temperature",..and the day.json is recognized and daily charts are generated.Le samedi 30 septembre 2023 à 19:41:25 UTC+2, Lorin Tremblay a écrit :Found out that I was creating the issue by running it myself, but the weewx run as root so that problem doesn't occurs when it runs by itselfSo the problem is really specific to only the week graph, every other thing work flawlessly other than the week repport.http://www.gestionlgt.com/Chalet/Running all the latest version of Weewx for raspberry PI ans belchertown skinSo back to thinking the problem is in the preference of the week graph section….[week]    # Chart Timespan Defaults    title = "This Week"    show_button = true    button_text = "Week"    time_length = 604800 # Last 7 days    tooltip_date_format = ""    aggregate_type = max    aggregate_interval = 3600 # 1 hour    gapsize = 3600 # 1 hour in secondsOr in the belchertown skinOn 30 Sep 23, at 13:29, vince  wrote:The log file pretty clearly says which file it can't write to.  So you need to fix the permissions on that file.  Pretty simple.Without any details on your setup it's hard to say more than that, other than if you're doing unusual things like writing across the network to a filesystem mounted on another computer or NAS, the possibilities of what's perhaps wrong grow a lot.Do other skins work ok ?On Friday, September 29, 2023 at 9:56:22 PM UTC-7 Lorin Tremblay wrote:Well that might be part of my problemSep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:           [Errno 13] Permission denied: '/var/www/html/weewx/json/week.json'Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:           Traceback (most recent call last):Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:             File "/usr/share/weewx/weewx/reportengine.py", line 197, in runSep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:               obj.start()Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:             File "/usr/share/weewx/weewx/reportengine.py", line 385, in startSep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:               self.run()Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:             File "/usr/share/weewx/user/belchertown.py", line 2817, in runSep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:               with open(json_filename, mode="w") as jf:Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:           PermissionError: [Errno 13] Permission denied: '/var/www/html/weewx/json/week.json'Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:           Generator terminatedWhat is the best way to correct this situation….On 29 Sep 23, at 22:50, vince  wrote:Well, I always suggest the old sysadmin credo of "when in doubt, comment it out" in working these kinds of things.  Start slowly and get 'one' chart workingand look at your syslogs.  Do yours say anything indicating a problem ?You might also save y

Re: [weewx-user] re: "AttributeError: tuype object 'ImageDraw' has no attribute 'textsize'"

2023-09-30 Thread kd4e
Cool, thanks! Should a file like that have been auto-generated during 
install or setup? I don't find one. There is a weeplot in /usr/share/weewx

On Saturday, September 30, 2023 at 4:25:09 PM UTC-4 vince wrote:

> https://raw.githubusercontent.com/weewx/weewx/V5/bin/weeplot/genplot.py 
> for the latest v5 version
>
> On Saturday, September 30, 2023 at 1:22:51 PM UTC-7 kd4e wrote:
>
>> I'm just setting up WeeWx on an inovato Quadra with an Acu-Rite weather 
>> station (label says Model 01536
>>  but lsusb says Chaney Instrument Model 01036 weather sensor).
>>
>> Anyhow, I'm getting looped data and no chart or graph.
>>
>> Where would I find the development version of genplot.py - I don't seem 
>> to be able to locate it in the installed files.
>>
>> Thanks!
>> On Friday, July 14, 2023 at 6:36:49 AM UTC-4 Andrea wrote:
>>
>>>
>>> I solved installing the new version of genplot.py from weewx files that 
>>> are in the developing directory.
>>> Some software changes and now is up and running again!
>>>
>>> Andrea
>>> Il giorno venerdì 14 luglio 2023 alle 08:09:08 UTC+2 Andrea ha scritto:
>>>
 I've already tried this trick but with no succes.
 Thanks
 Andrea

 Il giorno giovedì 13 luglio 2023 alle 23:02:43 UTC+2 Tom Keffer ha 
 scritto:

> Look farther upthread for the solution.
>
> On Thu, Jul 13, 2023 at 1:10 PM Andrea  wrote:
>
>> Hi 
>> I received the same error. Suddenly I got this error.. while running 
>> ! 
>> I'm using weewx 4.7.0 with  Linux Manjaro.
>> Can you help me to solve this errror?
>> thanks
>> Andrea
>>
>> Il giorno lunedì 3 luglio 2023 alle 02:03:46 UTC+2 Sam Finn ha 
>> scritto:
>>
>>> Thanks again. Backing-off to 9.4.0, and using the modified sqlite.py 
>>> to take care of the missing RADIAN function, has apparently done the 
>>> trick!
>>>
>>> Best - 
>>>
>>> Sam
>>>
>>> On Sunday, July 2, 2023 at 5:50:12 PM UTC-6 Tom Keffer wrote:
>>>
 Oops. Foiled by Issue #862 
 !

 Try an even earlier version of Pillow. Say, 9.4.0.

 -tk

 On Sun, Jul 2, 2023 at 4:39 PM Sam Finn  wrote:

> Hi Tom - 
>
> Thanks much! I was running w/Pillow 10.0. I backed-off to 9.5.0 
> but am not getting a different error: 
>
> *weewx* sudo bin/wee_reports weewx.conf
>
> Generating as of last timestamp in the database.
>
> Using configuration file weewx.conf
>
> Traceback (most recent call last):
>
>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 197, 
> in run
>
> obj.start()
>
>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 385, 
> in start
>
> self.run()
>
>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 42, 
> in run
>
> self.gen_images(self.gen_ts)
>
>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 
> 114, in gen_images
>
> image = plot.render()
>
>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 222, in 
> render
>
> self._renderDayNight(sdraw)
>
>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 266, in 
> _renderDayNight
>
> sdraw.rectangle(((xleft,self.yscale[0]),
>
>   File "/Users/Shared/weewx/bin/weeplot/utilities.py", line 442, 
> in rectangle
>
> self.draw.rectangle(box_scaled, **options)
>
>   File "/Library/Python/3.9/site-packages/PIL/ImageDraw.py", line 
> 294, in rectangle
>
> self.draw.draw_rectangle(xy, fill, 1)
>
> ValueError: y1 must be greater than or equal to y0
>
> Are there further suggestions? 
>
> Again, thanks!
>
> Sam
> On Sunday, July 2, 2023 at 4:10:30 PM UTC-6 Tom Keffer wrote:
>
>> This is a known problem caused by a change in Pillow, the imaging 
>> library used by WeeWX.
>>
>> If you're on a Mac, you probably installed Pillow using pip. See 
>> what version of Pillow you have by using these two methods.
>>
>> *python3 -m pip list -v*
>>
>> *python3 -c "import PIL;print(PIL.__version__)"*
>>
>>
>> If it's 10.0, then this is the problem. The solution is to 
>> downgrade your copy:
>>
>> *python3 -m pip install Pillow==9.5.0*
>>
>>
>> If it's earlier than 10.0, then it's some other problem.
>>
>> -tk
>>
>>
>> On Sun, Jul 2, 2023 at 2:30 PM Sam Finn  wrote:
>>
>

Re: [weewx-user] re: "AttributeError: tuype object 'ImageDraw' has no attribute 'textsize'"

2023-09-30 Thread vince
https://raw.githubusercontent.com/weewx/weewx/V5/bin/weeplot/genplot.py for 
the latest v5 version

On Saturday, September 30, 2023 at 1:22:51 PM UTC-7 kd4e wrote:

> I'm just setting up WeeWx on an inovato Quadra with an Acu-Rite weather 
> station (label says Model 01536
>  but lsusb says Chaney Instrument Model 01036 weather sensor).
>
> Anyhow, I'm getting looped data and no chart or graph.
>
> Where would I find the development version of genplot.py - I don't seem to 
> be able to locate it in the installed files.
>
> Thanks!
> On Friday, July 14, 2023 at 6:36:49 AM UTC-4 Andrea wrote:
>
>>
>> I solved installing the new version of genplot.py from weewx files that 
>> are in the developing directory.
>> Some software changes and now is up and running again!
>>
>> Andrea
>> Il giorno venerdì 14 luglio 2023 alle 08:09:08 UTC+2 Andrea ha scritto:
>>
>>> I've already tried this trick but with no succes.
>>> Thanks
>>> Andrea
>>>
>>> Il giorno giovedì 13 luglio 2023 alle 23:02:43 UTC+2 Tom Keffer ha 
>>> scritto:
>>>
 Look farther upthread for the solution.

 On Thu, Jul 13, 2023 at 1:10 PM Andrea  wrote:

> Hi 
> I received the same error. Suddenly I got this error.. while running ! 
> I'm using weewx 4.7.0 with  Linux Manjaro.
> Can you help me to solve this errror?
> thanks
> Andrea
>
> Il giorno lunedì 3 luglio 2023 alle 02:03:46 UTC+2 Sam Finn ha scritto:
>
>> Thanks again. Backing-off to 9.4.0, and using the modified sqlite.py 
>> to take care of the missing RADIAN function, has apparently done the 
>> trick!
>>
>> Best - 
>>
>> Sam
>>
>> On Sunday, July 2, 2023 at 5:50:12 PM UTC-6 Tom Keffer wrote:
>>
>>> Oops. Foiled by Issue #862 
>>> !
>>>
>>> Try an even earlier version of Pillow. Say, 9.4.0.
>>>
>>> -tk
>>>
>>> On Sun, Jul 2, 2023 at 4:39 PM Sam Finn  wrote:
>>>
 Hi Tom - 

 Thanks much! I was running w/Pillow 10.0. I backed-off to 9.5.0 but 
 am not getting a different error: 

 *weewx* sudo bin/wee_reports weewx.conf

 Generating as of last timestamp in the database.

 Using configuration file weewx.conf

 Traceback (most recent call last):

   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 197, 
 in run

 obj.start()

   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 385, 
 in start

 self.run()

   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 42, 
 in run

 self.gen_images(self.gen_ts)

   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 114, 
 in gen_images

 image = plot.render()

   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 222, in 
 render

 self._renderDayNight(sdraw)

   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 266, in 
 _renderDayNight

 sdraw.rectangle(((xleft,self.yscale[0]),

   File "/Users/Shared/weewx/bin/weeplot/utilities.py", line 442, in 
 rectangle

 self.draw.rectangle(box_scaled, **options)

   File "/Library/Python/3.9/site-packages/PIL/ImageDraw.py", line 
 294, in rectangle

 self.draw.draw_rectangle(xy, fill, 1)

 ValueError: y1 must be greater than or equal to y0

 Are there further suggestions? 

 Again, thanks!

 Sam
 On Sunday, July 2, 2023 at 4:10:30 PM UTC-6 Tom Keffer wrote:

> This is a known problem caused by a change in Pillow, the imaging 
> library used by WeeWX.
>
> If you're on a Mac, you probably installed Pillow using pip. See 
> what version of Pillow you have by using these two methods.
>
> *python3 -m pip list -v*
>
> *python3 -c "import PIL;print(PIL.__version__)"*
>
>
> If it's 10.0, then this is the problem. The solution is to 
> downgrade your copy:
>
> *python3 -m pip install Pillow==9.5.0*
>
>
> If it's earlier than 10.0, then it's some other problem.
>
> -tk
>
>
> On Sun, Jul 2, 2023 at 2:30 PM Sam Finn  wrote:
>
>> Hi - 
>>
>> I'm hoping someone can help me get my weewx install working 
>> again. 
>>
>> Some time ago (last April) weewx stopped updating my web page. 
>> [Many things have been going on and I am only now and able to get to 
>> this.] 
>> There might have been a Mac OS update at that time; however, I 
>>>

Re: [weewx-user] re: "AttributeError: tuype object 'ImageDraw' has no attribute 'textsize'"

2023-09-30 Thread kd4e
I'm just setting up WeeWx on an inovato Quadra with an Acu-Rite weather 
station (label says Model 01536
 but lsusb says Chaney Instrument Model 01036 weather sensor).

Anyhow, I'm getting looped data and no chart or graph.

Where would I find the development version of genplot.py - I don't seem to 
be able to locate it in the installed files.

Thanks!
On Friday, July 14, 2023 at 6:36:49 AM UTC-4 Andrea wrote:

>
> I solved installing the new version of genplot.py from weewx files that 
> are in the developing directory.
> Some software changes and now is up and running again!
>
> Andrea
> Il giorno venerdì 14 luglio 2023 alle 08:09:08 UTC+2 Andrea ha scritto:
>
>> I've already tried this trick but with no succes.
>> Thanks
>> Andrea
>>
>> Il giorno giovedì 13 luglio 2023 alle 23:02:43 UTC+2 Tom Keffer ha 
>> scritto:
>>
>>> Look farther upthread for the solution.
>>>
>>> On Thu, Jul 13, 2023 at 1:10 PM Andrea  wrote:
>>>
 Hi 
 I received the same error. Suddenly I got this error.. while running ! 
 I'm using weewx 4.7.0 with  Linux Manjaro.
 Can you help me to solve this errror?
 thanks
 Andrea

 Il giorno lunedì 3 luglio 2023 alle 02:03:46 UTC+2 Sam Finn ha scritto:

> Thanks again. Backing-off to 9.4.0, and using the modified sqlite.py 
> to take care of the missing RADIAN function, has apparently done the 
> trick!
>
> Best - 
>
> Sam
>
> On Sunday, July 2, 2023 at 5:50:12 PM UTC-6 Tom Keffer wrote:
>
>> Oops. Foiled by Issue #862 
>> !
>>
>> Try an even earlier version of Pillow. Say, 9.4.0.
>>
>> -tk
>>
>> On Sun, Jul 2, 2023 at 4:39 PM Sam Finn  wrote:
>>
>>> Hi Tom - 
>>>
>>> Thanks much! I was running w/Pillow 10.0. I backed-off to 9.5.0 but 
>>> am not getting a different error: 
>>>
>>> *weewx* sudo bin/wee_reports weewx.conf
>>>
>>> Generating as of last timestamp in the database.
>>>
>>> Using configuration file weewx.conf
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 197, in 
>>> run
>>>
>>> obj.start()
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 385, in 
>>> start
>>>
>>> self.run()
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 42, 
>>> in run
>>>
>>> self.gen_images(self.gen_ts)
>>>
>>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 114, 
>>> in gen_images
>>>
>>> image = plot.render()
>>>
>>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 222, in 
>>> render
>>>
>>> self._renderDayNight(sdraw)
>>>
>>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 266, in 
>>> _renderDayNight
>>>
>>> sdraw.rectangle(((xleft,self.yscale[0]),
>>>
>>>   File "/Users/Shared/weewx/bin/weeplot/utilities.py", line 442, in 
>>> rectangle
>>>
>>> self.draw.rectangle(box_scaled, **options)
>>>
>>>   File "/Library/Python/3.9/site-packages/PIL/ImageDraw.py", line 
>>> 294, in rectangle
>>>
>>> self.draw.draw_rectangle(xy, fill, 1)
>>>
>>> ValueError: y1 must be greater than or equal to y0
>>>
>>> Are there further suggestions? 
>>>
>>> Again, thanks!
>>>
>>> Sam
>>> On Sunday, July 2, 2023 at 4:10:30 PM UTC-6 Tom Keffer wrote:
>>>
 This is a known problem caused by a change in Pillow, the imaging 
 library used by WeeWX.

 If you're on a Mac, you probably installed Pillow using pip. See 
 what version of Pillow you have by using these two methods.

 *python3 -m pip list -v*

 *python3 -c "import PIL;print(PIL.__version__)"*


 If it's 10.0, then this is the problem. The solution is to 
 downgrade your copy:

 *python3 -m pip install Pillow==9.5.0*


 If it's earlier than 10.0, then it's some other problem.

 -tk


 On Sun, Jul 2, 2023 at 2:30 PM Sam Finn  wrote:

> Hi - 
>
> I'm hoping someone can help me get my weewx install working again. 
>
> Some time ago (last April) weewx stopped updating my web page. 
> [Many things have been going on and I am only now and able to get to 
> this.] 
> There might have been a Mac OS update at that time; however, I simply 
> don't 
> know. The weewx.log file is showing the error message 
> "AttributeError: 
> tuype object 'ImageDraw' has no attribute 'textsize'". 
>
> I've updated my weewx installation to 4.9.1 and am using the 
> vanilla weewx.conf file with the minimum system (Vantage) 
>>>

Re: [weewx-user] Belchertown weekly graph

2023-09-30 Thread jterr...@gmail.com
Lorin,

According to your "week" configuration, Belchertown should normally create 
a json file named week.json. 
(http://www.gestionlgt.com/Chalet/json/week.json).

Your problem seems to be due to the fact that another template is 
overwriting  the week.json file, and that the format of this json file is 
not recognized bat the Belchertown javascript :

Here the beginning of your current week.json file :
[{
"_version": "*week.json.tmpl version 0.3.2*",
"utcoffset": -240.0,
"timespan": {
"start": 169544160.0,
"stop": 169609860
},
"temperatureplot": {
"series":
{
"outTemp": {
"name": "Temperature",
"data": [[169544190.0, 8.4], [169544220.0, 8.3]
..L


If you look for example  at your day.json, the beginning of the file is :

{
"belchertown_version": "1.3.1",
"generated_timestamp": "09/30/2023 14:35:22",
"colors": "#7cb5ec, #b2df8a, #f7a35c, #8c6bb1, #dd3497, #e4d354, 
#268bd2, #f45b5b, #6a3d9a, #33a02c",
"chartgroup_title": "Today",
"tooltip_date_format": "LLL",
"credits": "highcharts_default",
"credits_url": "highcharts_default",
"credits_position": "highcharts_default",
"chart1": {
"series": {
"outTemp": {
"obsType": "outTemp",
"yAxis_label": "Outside Temperature (\u00b0C)",
"polar": "false",
"zIndex": 1.0,
"name": "Outside Temperature",
..

and the day.json is recognized and daily charts are generated.


Le samedi 30 septembre 2023 à 19:41:25 UTC+2, Lorin Tremblay a écrit :

> Found out that I was creating the issue by running it myself, but the 
> weewx run as root so that problem doesn't occurs when it runs by itself
>
> So the problem is really specific to only the week graph, every other 
> thing work flawlessly other than the week repport.
>
> http://www.gestionlgt.com/Chalet/
>
> Running all the latest version of Weewx for raspberry PI ans belchertown 
> skin
>
> So back to thinking the problem is in the preference of the week graph 
> section….
>
> *[week]*
> # Chart Timespan Defaults
> title = "This Week"
> show_button = true
> button_text = "Week"
> time_length = 604800 # Last 7 days
> tooltip_date_format = ""
> aggregate_type = max
> aggregate_interval = 3600 # 1 hour
> gapsize = 3600 # 1 hour in seconds
>
> Or in the belchertown skin
>
>
>
>
>
> On 30 Sep 23, at 13:29, vince  wrote:
>
> The log file pretty clearly says which file it can't write to.  So you 
> need to fix the permissions on that file.  Pretty simple.
>
> Without any details on your setup it's hard to say more than that, other 
> than if you're doing unusual things like writing across the network to a 
> filesystem mounted on another computer or NAS, the possibilities of what's 
> perhaps wrong grow a lot.
>
> Do other skins work ok ?
>
> On Friday, September 29, 2023 at 9:56:22 PM UTC-7 Lorin Tremblay wrote:
>
>> Well that might be part of my problem
>>
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine: Caught unrecoverable exception in generator 
>> 'user.belchertown.HighchartsJsonGenerator'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine:   [Errno 13] Permission denied: 
>> '/var/www/html/weewx/json/week.json'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine:   Traceback (most recent call last):
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine: File 
>> "/usr/share/weewx/weewx/reportengine.py", line 197, in run
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine:   obj.start()
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine: File 
>> "/usr/share/weewx/weewx/reportengine.py", line 385, in start
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine:   self.run()
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine: File 
>> "/usr/share/weewx/user/belchertown.py", line 2817, in run
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine:   with open(json_filename, mode="w") as 
>> jf:
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine:   PermissionError: [Errno 13] Permission 
>> denied: '/var/www/html/weewx/json/week.json'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR 
>> weewx.reportengine:   Generator terminated
>>
>>
>> What is the best way to correct this situation….
>>
>>
>> On 29 Sep 23, at 22:50, vince  wrote:
>>
>> Well, I always suggest the old sysadmin credo of "when in doubt, comment 
>> it out" in working these kinds of things.  Start slowly and get 'one' chart 
>> working..

Re: [weewx-user] Belchertown weekly graph

2023-09-30 Thread Lorin Tremblay
Found out that I was creating the issue by running it myself, but the weewx run 
as root so that problem doesn't occurs when it runs by itself

So the problem is really specific to only the week graph, every other thing 
work flawlessly other than the week repport.

http://www.gestionlgt.com/Chalet/

Running all the latest version of Weewx for raspberry PI ans belchertown skin

So back to thinking the problem is in the preference of the week graph section….

[week]
# Chart Timespan Defaults
title = "This Week"
show_button = true
button_text = "Week"
time_length = 604800 # Last 7 days
tooltip_date_format = ""
aggregate_type = max
aggregate_interval = 3600 # 1 hour
gapsize = 3600 # 1 hour in seconds

Or in the belchertown skin





> On 30 Sep 23, at 13:29, vince  wrote:
> 
> The log file pretty clearly says which file it can't write to.  So you need 
> to fix the permissions on that file.  Pretty simple.
> 
> Without any details on your setup it's hard to say more than that, other than 
> if you're doing unusual things like writing across the network to a 
> filesystem mounted on another computer or NAS, the possibilities of what's 
> perhaps wrong grow a lot.
> 
> Do other skins work ok ?
> 
> On Friday, September 29, 2023 at 9:56:22 PM UTC-7 Lorin Tremblay wrote:
>> Well that might be part of my problem
>> 
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>> Caught unrecoverable exception in generator 
>> 'user.belchertown.HighchartsJsonGenerator'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>     [Errno 13] Permission denied: 
>> '/var/www/html/weewx/json/week.json'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>     Traceback (most recent call last):
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>     obj.start()
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weewx/reportengine.py", line 385, in 
>> start
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>     self.run()
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/user/belchertown.py", line 2817, in run
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>     with open(json_filename, mode="w") as jf:
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>     PermissionError: [Errno 13] Permission denied: 
>> '/var/www/html/weewx/json/week.json'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>     Generator terminated
>> 
>> 
>> What is the best way to correct this situation….
>> 
>> 
>> 
>>> On 29 Sep 23, at 22:50, vince > wrote:
>>> 
>> 
>>> Well, I always suggest the old sysadmin credo of "when in doubt, comment it 
>>> out" in working these kinds of things.  Start slowly and get 'one' chart 
>>> workingand look at your syslogs.  Do yours say anything indicating a 
>>> problem ?
>>> 
>>> You might also save your (not working) graphs.conf file someplace and 
>>> 'copy' the graphs.conf.example file into place as graphs.conf which should 
>>> definitely work.  At a minimum it'll take your edits out of the question at 
>>> least temporarily
>>> 
>>> I don't remember for Belchertown if you should stop/restart weewx after 
>>> fiddling with graphs.conf but that might be wise in this case just in 
>>> case
>>> 
>>> 
>> 
>>> -- 
>>> 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/77309976-b444-4ade-9870-28d0690d8c44n%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/e7602824-5926-45a7-b734-9eaad403b050n%40googlegroups.com
>  
> .

-- 
You received this message becau

Re: [weewx-user] Belchertown weekly graph

2023-09-30 Thread vince
The log file pretty clearly says which file it can't write to.  So you need 
to fix the permissions on that file.  Pretty simple.

Without any details on your setup it's hard to say more than that, other 
than if you're doing unusual things like writing across the network to a 
filesystem mounted on another computer or NAS, the possibilities of what's 
perhaps wrong grow a lot.

Do other skins work ok ?

On Friday, September 29, 2023 at 9:56:22 PM UTC-7 Lorin Tremblay wrote:

> Well that might be part of my problem
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
> Caught unrecoverable exception in generator 
> 'user.belchertown.HighchartsJsonGenerator'
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>   [Errno 13] Permission denied: 
> '/var/www/html/weewx/json/week.json'
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>   Traceback (most recent call last):
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/reportengine.py", line 197, in 
> run
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>   obj.start()
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/reportengine.py", line 385, in 
> start
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>   self.run()
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
> File "/usr/share/weewx/user/belchertown.py", line 2817, in 
> run
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>   with open(json_filename, mode="w") as jf:
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>   PermissionError: [Errno 13] Permission denied: 
> '/var/www/html/weewx/json/week.json'
>
> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>   Generator terminated
>
>
> What is the best way to correct this situation….
>
>
> On 29 Sep 23, at 22:50, vince  wrote:
>
> Well, I always suggest the old sysadmin credo of "when in doubt, comment 
> it out" in working these kinds of things.  Start slowly and get 'one' chart 
> workingand look at your syslogs.  Do yours say anything indicating a 
> problem ?
>
> You might also save your (not working) graphs.conf file someplace and 
> 'copy' the graphs.conf.example file into place as graphs.conf which should 
> definitely work.  At a minimum it'll take your edits out of the question at 
> least temporarily
>
> I don't remember for Belchertown if you should stop/restart weewx after 
> fiddling with graphs.conf but that might be wise in this case just in 
> case
>
>
> -- 
> 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/77309976-b444-4ade-9870-28d0690d8c44n%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/e7602824-5926-45a7-b734-9eaad403b050n%40googlegroups.com.


Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-09-30 Thread Mks Mk
Below is NOAA file code ,how can we insert *$daylight* in it?

#errorCatcher Echo
#set $YM="%Y %m"
#set $D=" %d"
#set $M=" %b"
#set $Time=" %H:%M"
#set $NODAY=" N/A"
#set $Temp="%6.1f"
#set $Wind="%6.1f"
#set $Dir="%6.0f"
#set $Count="%6d"
#set $NONE="   N/A"
#if $unit.unit_type_dict.group_rain == "mm"
#set $Rain="%6.1f"
#else
#set $Rain="%6.2f"
#end if
   MONTHLY CLIMATOLOGICAL SUMMARY for $month_name $year_name


NAME: $station.location  
ELEV: $station.altitudeLAT: $station.latitude[0]-$station.latitude[1] 
$station.latitude[2]LONG: $station.longitude[0]-$station.longitude[1] 
$station.longitude[2]


   TEMPERATURE ($unit.label.outTemp.strip()), RAIN 
($unit.label.rain.strip()), WIND SPEED ($unit.label.windSpeed.strip())

 
  MEAN   
DAY   TEMP   HIGH   TIMELOW   TIME   

#for $day in $month.days
#if $day.outTemp.has_data or $day.rain.has_data or $day.wind.has_data
$day.dateTime.format($D, add_label=False) 
$day.outTemp.avg.format($Temp,$NONE,add_label=False) 
$day.outTemp.max.format($Temp,$NONE,add_label=False) 
$day.outTemp.maxtime.format($Time,add_label=False) 
$day.outTemp.min.format($Temp,$NONE,add_label=False) 
$day.outTemp.mintime.format($Time,add_label=False)
#else
$day.dateTime.format($D)
#end if
#end for
#if $month.outTemp.has_data or $month.rain.has_data or $month.wind.has_data

$month.outTemp.avg.format($Temp,$NONE,add_label=False) 
$month.outTemp.max.format($Temp,$NONE,add_label=False)   
 $month.outTemp.maxtime.format($D,add_label=False) 
$month.outTemp.min.format($Temp,$NONE,add_label=False)   
 $month.outTemp.mintime.format($D,add_label=False)
#end if


thank you for your help
On Saturday, September 30, 2023 at 9:18:19 AM UTC+3 Karen K wrote:

> Yes.
>
> Mks Mk schrieb am Samstag, 30. September 2023 um 03:08:55 UTC+2:
>
>> when it comes to coding the best we can do is copy and paste,  all we 
>> wanna know is if this tag (*$daylight*) actually does work within NOAA 
>> template file.
>> thank you for your help
>>
>> On Friday, September 29, 2023 at 9:13:23 PM UTC+3 Karen K wrote:
>>
>>> Mks Mk schrieb am Freitag, 29. September 2023 um 19:09:10 UTC+2:
>>>
>>> We want to add below code or similar to its action to the NOAA monthly 
>>> report file "*NOAA-%Y-%m.txt.tmpl*" but we do not know if it is 
>>> possible to do so because of the span tags?
>>>
>>>
>>>
>>> Why not trying it?
>>>
>>> If you are not sure about the $span tag, you can replace it by something 
>>> else like $ii
>>>  
>>>
>>

-- 
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/cfe23259--4f31-9bef-b7e825663d02n%40googlegroups.com.