[weewx-user] Json error

2023-04-05 Thread Adnan Mumtaz


I am using the belchertown script since a long time, and without any 
changes in the system all of a sudden i am seeing this error in logs and 
the skin is not uploading properly, can anyone assist

Apr 6 05:20:47 Riyadh_WS weewx[25067]: reportengine: Caught unrecoverable 
exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  No JSON object could be decoded
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  Traceback (most recent call 
last):
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/weewx/reportengine.py", line 204, in run
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  obj.start()
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/weewx/reportengine.py", line 300, in start
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  self.run()
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 160, in run
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  ngen = 
self.generate(gen_dict[section_name], self.gen_ts)
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 234, in generate
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  ngen += 
self.generate(section[subsection], gen_ts)
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 234, in generate
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  ngen += 
self.generate(section[subsection], gen_ts)
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  default_binding)
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 374, in _getSearchList
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  searchList += 
obj.get_extension_list(timespan, db_lookup)
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/share/weewx/user/belchertown.py", line 548, in get_extension_list
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  data = json.load( read_file )
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File "/usr/lib/python2.7/json/
*init*.py", line 291, in load
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  **kw)
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File "/usr/lib/python2.7/json/
*init*.py", line 339, in loads
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  return 
_default_decoder.decode(s)
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/lib/python2.7/json/decoder.py", line 364, in decode
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  obj, end = self.raw_decode(s, 
idx=_w(s, 0).end())
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  File 
"/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  raise ValueError("No JSON 
object could be decoded")
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  ValueError: No JSON object 
could be decoded
Apr 6 05:20:47 Riyadh_WS weewx[25067]:  Generator terminated

-- 
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/1a749810-9fca-4c18-bd19-18e0a4ae836dn%40googlegroups.com.


Re: [weewx-user] Strange problems using FTPgenerator just started happening.

2023-04-05 Thread Tom Keffer
Are you using secure_ftp?

On Wed, Apr 5, 2023 at 3:34 PM Peter Neilley  wrote:

> Hi! I've been using weewx on a raspberrypi for many years including
> uploading reports to an account on a cloud provider (1and1.com)  to post
> standard reports on my personal webpage.About 2 weeks ago I started
> having problems with getting the reports uploaded to the cloud via the
> weewx FTPgenerator process.  Digging through log files, I'm getting
> "connection refused" errors from the ftpGenerator process.   I didn't make
> any changes to weewx or the raspberrypi to trigger the errors, hence
> suspect something changed on provider's side.
>
> But the issue is strange and I can't figure it out hence posting here even
> though I suspect the issue is not weewx related.  Since there's lots of
> smart people here I thought I might get some ideas on how to solve it.
>  Here's some facts:
>
>  1.  95% of the products I'm trying to ftp from weewx to the cloud account
> are not getting through.  Mysteriously, a handful here and there do make it
> through.
> 2.  I upgraded my rPi kernel to 4.19.x and weewx to 4.10.2 and no
> improvement in the issue.
> 3. I can manually ftp the products using the command line ftp program
> supplied with rPi linux with no issues at all.  Same if I use sftp or scp.
> 4.  I double checked my credentials in weewx.conf to make sure nothing was
> wrong with those. But again, the fact that some products get through
> suggests credentials are not the issue.
> 3.  log files in /var/log (both system.log and messages.log) indicate the
> weewx ftpGenerator process is failing with a "connection refused" error
> messages.
> 4. I can reproduce the error if I manually start a python shell and try to
> upload the files manually using ftplib in python.  I'm using python 2.7
>
> This is telling me something about a new incompatibility between the
> python library in rPi linux and my cloud provider's FTP server is causing
> the issue.  But I haven't been able to figure it out.   So wonder if anyone
> here has any guesses and ideas.
>
> Thanks for your support.
>
> --
> 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/761a1bfa-3ba4-47a7-97e8-9096d708c06an%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/CAPq0zEDHjPP54Y5LT38Bj%3Da__%2Bdo5Qm44rWhyTM3e9FYm6cqmA%40mail.gmail.com.


Re: [weewx-user] Weird error with days_ago in 3.8.0

2023-04-05 Thread Tom Keffer
Definitely. I had assumed it was some weird Sofaskin thing, but maybe no.

On Wed, Apr 5, 2023 at 11:05 AM jterr...@gmail.com 
wrote:

> No sure if this is related to your errors, but it looks like the tag 
> *$days_ago($days_ago=$n).dateTime.raw
> *is not correct.
>
> According to weewx documentation, ($days_ago=x)  should be used with the
> *day* aggregation period   : *$day($days_ago=$n).dateTime.raw *
>
> See  http://www.weewx.com/docs/customizing.htm#general_aggregation_periods
>
>
> --
> 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/b54f8ea2-f21e-4a46-bf46-6fe0cceb7fc1n%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/CAPq0zECU%2Bb5w9MFbOBCRqaMEuA2%2BSfTFmuKf-4Nbw10vziWoPQ%40mail.gmail.com.


[weewx-user] Strange problems using FTPgenerator just started happening.

2023-04-05 Thread Peter Neilley
Hi! I've been using weewx on a raspberrypi for many years including 
uploading reports to an account on a cloud provider (1and1.com)  to post 
standard reports on my personal webpage.About 2 weeks ago I started 
having problems with getting the reports uploaded to the cloud via the 
weewx FTPgenerator process.  Digging through log files, I'm getting 
"connection refused" errors from the ftpGenerator process.   I didn't make 
any changes to weewx or the raspberrypi to trigger the errors, hence 
suspect something changed on provider's side.  

But the issue is strange and I can't figure it out hence posting here even 
though I suspect the issue is not weewx related.  Since there's lots of 
smart people here I thought I might get some ideas on how to solve it.  
 Here's some facts:

 1.  95% of the products I'm trying to ftp from weewx to the cloud account 
are not getting through.  Mysteriously, a handful here and there do make it 
through.
2.  I upgraded my rPi kernel to 4.19.x and weewx to 4.10.2 and no 
improvement in the issue.
3. I can manually ftp the products using the command line ftp program 
supplied with rPi linux with no issues at all.  Same if I use sftp or scp.
4.  I double checked my credentials in weewx.conf to make sure nothing was 
wrong with those. But again, the fact that some products get through 
suggests credentials are not the issue.
3.  log files in /var/log (both system.log and messages.log) indicate the 
weewx ftpGenerator process is failing with a "connection refused" error 
messages.
4. I can reproduce the error if I manually start a python shell and try to 
upload the files manually using ftplib in python.  I'm using python 2.7

This is telling me something about a new incompatibility between the python 
library in rPi linux and my cloud provider's FTP server is causing the 
issue.  But I haven't been able to figure it out.   So wonder if anyone 
here has any guesses and ideas.

Thanks for your support.

-- 
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/761a1bfa-3ba4-47a7-97e8-9096d708c06an%40googlegroups.com.


[weewx-user] Re: Belchertown / Graphs

2023-04-05 Thread Parsoli 69
Thank you Sir.  Instructions I was following said to be on at least 3.9.  
I'll perform the upgrade and see how she goes!  Again thank you

On Wednesday, April 5, 2023 at 11:59:44 AM UTC-5 jterr...@gmail.com wrote:

> It appears that you are running weewx 3.9.2.  
> The error you have shows that the new  belchertown.py (v1.3) script want 
> to access to functions in  weewx.xtypes , which does not exists in version 
> 3.9.2
>
> You will need to install weewx 4.0 or higher to avoid this error.
>
> Le mardi 4 avril 2023 à 14:54:46 UTC+2, Parsoli 69 a écrit :
>
>> FYI, I am getting updated graph data at https://elburnweather.org/weewx 
>> in the native weewx skin.  However my Belchertown skin is accessed via 
>> https://elburnweather.org/
>> Is the skin supposed to grab the .png data at /weewx and pull that into 
>> the Graphs folder at the root of /var/www/html ?  Or some symobolic link to 
>> it?
>>
>> On Tuesday, April 4, 2023 at 7:28:00 AM UTC-5 Parsoli 69 wrote:
>>
>>> Since I've received no replies, figured I'd paste my weewx.conf data 
>>> below to see if that gives someone a thought on where I should go with this.
>>> My main content is at /var/www/html
>>> There is a /var/www/html/weewx folder as well
>>>
>>>
>>>
>>> # WEEWX CONFIGURATION FILE
>>> #
>>> # Copyright (c) 2009-2019 Tom Keffer 
>>> # See the file LICENSE.txt for your rights.
>>>
>>>
>>> ##
>>>
>>> #
>>> #
>>> #
>>> #
>>> #https://www.elburn.il.us/wp-content/uploads/2018/04/EburnFooterLogo-e1525036460870.png
>>> ">
>>>
>>> # This section is for general configuration information.
>>>
>>> # Set to 1 for extra debug info, otherwise comment it out or set to zero
>>> #debug = 1
>>>
>>> # Root directory of the weewx data file hierarchy for this station
>>> WEEWX_ROOT = /
>>>
>>> # Whether to log successful operations
>>> log_success = True
>>>
>>> # Whether to log unsuccessful operations
>>> log_failure = True
>>>
>>> # How long to wait before timing out a socket (FTP, HTTP) connection
>>> socket_timeout = 20
>>>
>>> # Do not modify this. It is used when installing and updating weewx.
>>> version = 3.9.2
>>> loop_on_init = True
>>>
>>>
>>> ##
>>>
>>> [StdReport]
>>>
>>> # Where the skins reside, relative to WEEWX_ROOT
>>> SKIN_ROOT = /etc/weewx/skins
>>>
>>> # Where the generated reports should go, relative to WEEWX_ROOT
>>> HTML_ROOT = /var/www/html/weewx
>>> # The database binding indicates which data should be used in 
>>> reports.
>>> data_binding = wx_binding
>>>
>>> # Whether to log a successful operation
>>> log_success = True
>>>
>>> # Whether to log an unsuccessful operation
>>> log_failure = False
>>>
>>> # Each of the following subsections defines a report that will be 
>>> run.
>>> # See the customizing guide to change the units, plot types and line
>>> # colors, modify the fonts, display additional sensor data, and other
>>> # customizations. Many of those changes can be made here by 
>>> overriding
>>> # parameters, or by modifying templates within the skin itself.
>>>
>>> [[SeasonsReport]]
>>> # The SeasonsReport uses the 'Seasons' skin, which contains the
>>> # images, templates and plots for the report.
>>> skin = Seasons
>>> enable = true
>>>
>>> [[SmartphoneReport]]
>>> # The SmartphoneReport uses the 'Smartphone' skin, and the 
>>> images and
>>> # files are placed in a dedicated subdirectory.
>>> skin = Smartphone
>>> enable = false
>>> HTML_ROOT = /var/www/html/weewx/smartphone
>>>
>>> [[MobileReport]]
>>> # The MobileReport uses the 'Mobile' skin, and the images and 
>>> files
>>> # are placed in a dedicated subdirectory.
>>> skin = Mobile
>>> enable = false
>>> HTML_ROOT = /var/www/html/weewx/mobile
>>>
>>> [[StandardReport]]
>>> # This is the old "Standard" skin. By default, it is not enabled.
>>> skin = Standard
>>> enable = false
>>>
>>> [[Belchertown]]
>>> HTML_ROOT = /var/www/html/
>>> belchertown_debug = 1
>>> skin = Belchertown
>>> enable = true
>>>
>>> [[[Extras]]]
>>> logo_image = "
>>> https://www.elburn.il.us/wp-content/uploads/2018/04/EburnFooterLogo-e1525036460870.png
>>> "
>>> earthquake_enabled = 1
>>> twitter_enabled = 1
>>> belchertown_locale = auto
>>> #darksky_secret_key = "REDACTED"
>>> forecast_alert_enabled = 1
>>> #STEVE ADDED FORECAST DATA APR 23#
>>> forecast_enabled = 1
>>> forecast_provider = aeris
>>> forecast_api_id = REDACTED
>>> forecast_api_secret = REDACTED
>>> forecast_units = us
>>> forecast_lang = en
>>> forecast_stale = 3540
>>>

Re: [weewx-user] Re: Steel Series Gauges - Graphs

2023-04-05 Thread ewhain...@gmail.com
I guess it took a little while to update, working properly now.

Thanks for the help!!!

On Wednesday, April 5, 2023 at 9:57:36 AM UTC-4 ewhain...@gmail.com wrote:

> So now I have most of the hover-over graphs showing in imperial. The 
> oddball is the temperature - the text shows correct and changes if I change 
> the radio button but the graph itself does not change from C.
> [image: Screenshot 2023-04-05 at 9.54.15 AM.png]
>
>
> On Tuesday, April 4, 2023 at 9:00:36 PM UTC-4 Ed Hainsworth wrote:
>
> Yes, those graphs. Thank you, I’ll give that a try
>
> Ed Hainsworth 
> ewhain...@gmail.com
>
> Sent from my iPhone
>
> On Apr 4, 2023, at 06:48, gjr80  wrote:
>
> By 'SteelSeries gauges graphs' I presume you mean the graphs that appear 
> when you mouseover the gauge faces. If so you should be able to change the 
> units used in the plots by changing the unit group settings in weewx.conf 
> [StdReport] [[SteelSeries]]. The default settings should look something 
> like:
>
>
> [StdReport]
> 
> [[SteelSeries]]
> 
> [[[Units]]]
> Groups
> group_altitude = foot  # foot or meter
> group_pressure = hPa   # hPa, inHg or mbar
> group_rain = mm# mm or inch
> group_rainRate = mm_per_hour   # mm_per_hour or 
> inch_per_hour
> group_speed = km_per_hour  # km_per_hour, 
> mile_per_hour,
># meter_per_second or knot
> group_temperature = degree_C   # degree_C or degree_F
>
> To change the temperature to display in Fahrenheit change degree_C to 
> degree_F, save the file and on the next report cycle the temperature 
> based plots should change to display Fahrehnheit. You can change any of 
> the unit group settings to suit, but note the SteelSeries gauges only 
> support a limited subset of the available WeeWX units.
>
> Note that change to these unit groups will also change the units appearing 
> in the gauge-data.txt file used by the SteelSeries gauges, this is fine 
> but you will find the default unit displayed on the gauges will be as set 
> above (which probably suits).
>
> Gary
> On Monday, 3 April 2023 at 23:24:20 UTC+10 ewhain...@gmail.com wrote:
>
> I don't know why I haven't noticed this before but my SteeleSeries gauges 
> graphs are showing metric data instead of imperial. 
>
> I have tried switching the radio buttons with no effect.
>
> How/where do I chnge these?
>
> Thanks
>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/n3g_ihfsjBo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/375b2be9-7ecc-4a94-b94e-f351e63b0a47n%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/6b80b014-eb8f-4717-af70-eafb2b5d62d0n%40googlegroups.com.


Re: [weewx-user] Weird error with days_ago in 3.8.0

2023-04-05 Thread jterr...@gmail.com
No sure if this is related to your errors, but it looks like the tag 
*$days_ago($days_ago=$n).dateTime.raw 
*is not correct.

According to weewx documentation, ($days_ago=x)  should be used with the 
*day* aggregation period   : *$day($days_ago=$n).dateTime.raw *

See  http://www.weewx.com/docs/customizing.htm#general_aggregation_periods


-- 
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/b54f8ea2-f21e-4a46-bf46-6fe0cceb7fc1n%40googlegroups.com.


[weewx-user] Re: Belchertown / Graphs

2023-04-05 Thread jterr...@gmail.com
It appears that you are running weewx 3.9.2.  
The error you have shows that the new  belchertown.py (v1.3) script want to 
access to functions in  weewx.xtypes , which does not exists in version 
3.9.2

You will need to install weewx 4.0 or higher to avoid this error.

Le mardi 4 avril 2023 à 14:54:46 UTC+2, Parsoli 69 a écrit :

> FYI, I am getting updated graph data at https://elburnweather.org/weewx 
> in the native weewx skin.  However my Belchertown skin is accessed via 
> https://elburnweather.org/
> Is the skin supposed to grab the .png data at /weewx and pull that into 
> the Graphs folder at the root of /var/www/html ?  Or some symobolic link to 
> it?
>
> On Tuesday, April 4, 2023 at 7:28:00 AM UTC-5 Parsoli 69 wrote:
>
>> Since I've received no replies, figured I'd paste my weewx.conf data 
>> below to see if that gives someone a thought on where I should go with this.
>> My main content is at /var/www/html
>> There is a /var/www/html/weewx folder as well
>>
>>
>>
>> # WEEWX CONFIGURATION FILE
>> #
>> # Copyright (c) 2009-2019 Tom Keffer 
>> # See the file LICENSE.txt for your rights.
>>
>>
>> ##
>>
>> #
>> #
>> #
>> #
>> #https://www.elburn.il.us/wp-content/uploads/2018/04/EburnFooterLogo-e1525036460870.png
>> ">
>>
>> # This section is for general configuration information.
>>
>> # Set to 1 for extra debug info, otherwise comment it out or set to zero
>> #debug = 1
>>
>> # Root directory of the weewx data file hierarchy for this station
>> WEEWX_ROOT = /
>>
>> # Whether to log successful operations
>> log_success = True
>>
>> # Whether to log unsuccessful operations
>> log_failure = True
>>
>> # How long to wait before timing out a socket (FTP, HTTP) connection
>> socket_timeout = 20
>>
>> # Do not modify this. It is used when installing and updating weewx.
>> version = 3.9.2
>> loop_on_init = True
>>
>>
>> ##
>>
>> [StdReport]
>>
>> # Where the skins reside, relative to WEEWX_ROOT
>> SKIN_ROOT = /etc/weewx/skins
>>
>> # Where the generated reports should go, relative to WEEWX_ROOT
>> HTML_ROOT = /var/www/html/weewx
>> # The database binding indicates which data should be used in reports.
>> data_binding = wx_binding
>>
>> # Whether to log a successful operation
>> log_success = True
>>
>> # Whether to log an unsuccessful operation
>> log_failure = False
>>
>> # Each of the following subsections defines a report that will be run.
>> # See the customizing guide to change the units, plot types and line
>> # colors, modify the fonts, display additional sensor data, and other
>> # customizations. Many of those changes can be made here by overriding
>> # parameters, or by modifying templates within the skin itself.
>>
>> [[SeasonsReport]]
>> # The SeasonsReport uses the 'Seasons' skin, which contains the
>> # images, templates and plots for the report.
>> skin = Seasons
>> enable = true
>>
>> [[SmartphoneReport]]
>> # The SmartphoneReport uses the 'Smartphone' skin, and the images 
>> and
>> # files are placed in a dedicated subdirectory.
>> skin = Smartphone
>> enable = false
>> HTML_ROOT = /var/www/html/weewx/smartphone
>>
>> [[MobileReport]]
>> # The MobileReport uses the 'Mobile' skin, and the images and 
>> files
>> # are placed in a dedicated subdirectory.
>> skin = Mobile
>> enable = false
>> HTML_ROOT = /var/www/html/weewx/mobile
>>
>> [[StandardReport]]
>> # This is the old "Standard" skin. By default, it is not enabled.
>> skin = Standard
>> enable = false
>>
>> [[Belchertown]]
>> HTML_ROOT = /var/www/html/
>> belchertown_debug = 1
>> skin = Belchertown
>> enable = true
>>
>> [[[Extras]]]
>> logo_image = "
>> https://www.elburn.il.us/wp-content/uploads/2018/04/EburnFooterLogo-e1525036460870.png
>> "
>> earthquake_enabled = 1
>> twitter_enabled = 1
>> belchertown_locale = auto
>> #darksky_secret_key = "REDACTED"
>> forecast_alert_enabled = 1
>> #STEVE ADDED FORECAST DATA APR 23#
>> forecast_enabled = 1
>> forecast_provider = aeris
>> forecast_api_id = REDACTED
>> forecast_api_secret = REDACTED
>> forecast_units = us
>> forecast_lang = en
>> forecast_stale = 3540
>> forecast_aeris_use_metar = 1
>> forecast_interval_hours = 24
>> aqi_enabled = 1
>> site_title = "Elburn Weather"
>> belchertown_root_url = https://elburnweather.org
>> # default = auto
>> theme = auto
>> theme_toggle_enabled = 1
>> station_observations = barometer,

[weewx-user] Re: Embedding weather data from Weewx into webcam snap shot

2023-04-05 Thread Gerard Cerchio
I use ImageMagik convert 
to
 
copyright my webcam. 

convert snapshot.jpg  -font FreeMono -gravity SouthEast -pointsize 16 
 -fill "#fffdc3" -annotate +10+10 "(C) Gerard Cerchio 2023" snapshot.jpg

If you run your video at 30 sec a frame that might work out for you.

On Tuesday, April 4, 2023 at 2:17:32 PM UTC-7 Jon Fear wrote:

> Hi
>
> Just seen on another group a timelapse from a webcam with the weather data 
> embedded into the video.
>
> Does anyone know how to do this and is there a "how-to"? I currently 
> gather images every 30 seconds from my webcam and create a timelapse each 
> night for upload to my web page.
>
> It seems like a really nice idea to have something like Temperature, 
> Humidity, Wind Direction and speed burned into the video...
>
> I am using Weewx 4.10.2 and Weewx-wdc skin. 
>
> Thoughts?
>
> Jon 
>
> www.wslwx.co.uk
>

-- 
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/1de88f4b-ebb6-4da3-81b9-707719988ec0n%40googlegroups.com.


Re: [weewx-user] Weird error with days_ago in 3.8.0

2023-04-05 Thread wxstor...@gmail.com
Thanks Tom for your response. I have isolated it to that line of code. The 
line works perfectly when going back 350 days (setting $n=350) but not 360 
($n = 360). I have checked the database and there is data in there 360 days 
ago. I just don't get the real number not str error. There is no string or 
text in the dateTime column. I will keep digging around.

On Tuesday, April 4, 2023 at 6:45:16 PM UTC-6 Tom Keffer wrote:

> I don't know anything about the Sofaskin, but I do know that the line you 
> posted is unlikely to be causing the error. A ".raw" value is not formatted 
> at all. It is simply passed through. Of course, some magic might be 
> happening in the first $days_ago, so it's possible I am wrong.
>
> Finding Cheetah errors can be very tough. Frequently, I have resorted to 
> binary searches through the template: Comment out half the template and see 
> if it was the half causing the error. Keep halving the offending part until 
> you can isolate the line. 
>
> On Tue, Apr 4, 2023 at 5:16 PM wxstor...@gmail.com  
> wrote:
>
>> I started getting an type error April 1st using days_ago. "Must be a real 
>> number, not str". But it is an integer that I am requesting from the 
>> database as I am requesting the raw dateTime. Now it works on some days and 
>> not others, like 357 days ago but not 360 days. Code from the template and 
>> the error is below. What am I missing here? 
>>
>> #set $n = 357
>>  
>>  Last 
>> $days_ago($days_ago=$n).dateTime.raw 
>>  
>>
>> Apr  3 17:14:21 CW9009 weewx[618] INFO weewx.manager: Added record 
>> 2023-04-03 17:14:00 MDT (1680563640) to database 'weewx.sdb'
>> Apr  3 17:14:21 CW9009 weewx[618] INFO weewx.manager: Added record 
>> 2023-04-03 17:14:00 MDT (1680563640) to daily summary in 'weewx.sdb'
>> Apr  3 17:14:21 CW9009 weewx[618] INFO user.weatherflowudp: Listening for 
>> UDP broadcasts to IP address  on port 50222, with timeout 60 and 
>> share_socket False...
>> Apr  3 17:14:22 CW9009 weewx[618] INFO weewx.restx: OWM: Published record 
>> 2023-04-03 17:14:00 MDT (1680563640)
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator: 
>> Evaluation of template /etc/weewx/skins/Sofaskin/index.html.tmpl failed 
>> with exception ''
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>> Ignoring template /etc/weewx/skins/Sofaskin/index.html.tmpl
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>> Reason: must be real number, not str
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  Traceback (most recent call last):
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  unicode_string = compiled_template.respond()
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "_etc_weewx_skins_Sofaskin_index_html_tmpl.py", line 1011, in respond
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 823, in filter
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  filtered = six.text_type(val)
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/share/weewx/weewx/tags.py", line 461, in __str__
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  return str(vh)
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/share/weewx/weewx/units.py", line 1019, in __str__
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  s = self.toString()
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/share/weewx/weewx/units.py", line 1012, in toString
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  s = self.formatter.toString(self.value_t, self.context, addLabel=addLabel,
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/share/weewx/weewx/units.py", line 698, in toString
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  s = self._to_string(val_t, context, addLabel, useThisFormat, None_string, 
>> localize)
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/share/weewx/weewx/units.py", line 774, in _to_string
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  val_str = locale.format_string(format_string, val_t[0])
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    
>>  File "/usr/lib/python3.9/locale.py", line 234, in format_string
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:  
>>  new_val.append(_format(perc.group(),
>> Apr  3 17:14:23 CW9009 weewx[618] ERROR weewx.cheetahgenerator:    

[weewx-user] Hire a genuine ethical hacker , for all hacking and recovery services today

2023-04-05 Thread daniel lamack
Swiftfoxcoder @ gmail. Com (gmail or google chat ) is a professional 
hacking team worldwide, we get your work done in less than 24 hours. We 
provide the following services and more;
* HACK INTO WHATSAPP, FACEBOOK, EMAIL BOX, INSTAGRAM, TEXT MESSAGES ETC.
* GENERAL PHONE HACKING AND SPY,
* RECOVER YOUR MONEY FROM SCAMMERS.
* FREE BITCOIN LOADING AND PAYPAL LOADING, WE SHARE ON %.
* MOBILE PHONE MONITOR/HACK.
* HACK, UPGRADE AND CHANGE UNIVERSITY GRADES.
* HACK INTO ANY BANK WEBSITE AND TRANSFER MONEY.
* HACK INTO ANY COMPANY WEBSITE DATABASE.
* HACK INTO ANY GOVERNMENT AGENCY WEBSITE DATABASE.
* HACK INTO ANY DATABASE SYSTEM AND GRANT YOU ADMIN PRIVILEGES.
* BUY HACKED PAYPAL ACCOUNT.
* HACK WORDPRESS BLOGS.
* SERVER CRASHED HACK.
* BUY VERIFIED AND GENUINE INTERNATIONAL PASSPORT OF ANY COUNTRIES OF YOUR 
CHOICE.
* WE HELP WITH MONEY LAUNDERING TO ANY COUNTRIES.
* Untraceable IP and so much more
* We can restore LOST FILES AND DOCUMENTS , no matter how long they have 
been missing.
NOTE:
SERVICES ARE NOT FREE AT ALL 
If you refer a client to us as a result of previous job done for you, you 
will stand a chance of getting any hacking of your choice done free of 
charge.
We can also teach you how to do the following with our ebook and online 
tutorials
* Hack and use Credit Card to shop online.
* Monitor any phone and email address.
* Hack Android & iPhones.
* Tap into people's call and monitor their conversations.
* Email and Text message interception.
 Contact  swiftfoxcoder today via Gmail / google chat on :  
Swiftfoxcoder @ gmail . Com
Telegram : Techfox99https://swiftfoxcoder.wixsite.com/website

-- 
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/3eddd27a-eae5-4f47-98bd-5bf160f9aca7n%40googlegroups.com.