Re: [weewx-user] Re: can't seem to find epel-release for fedora fc38

2024-06-15 Thread Jonathan Ryshpan
On Sun, 2024-02-11 at 09:41 -0800, matthew wall wrote:
> the epel-release dependency has been removed for the redhat el8 and
> el9 packages.  this will appear in the next weewx release (probably
> 5.0.3, but perhaps 5.1).
> meanwhile, you can tell rpm to ignore that dependency, since you
> already have installed the prereqs that weewx actually uses.
> 
> rpm --nodeps
> 
> for yum/dnf, you could try the skip broken option
> yum --skip-broken

It looks like the problem remains. I am trying to upgrade weewx to
prepare for installing Fedora-40, and get the following errors (slightly
edited).. It may be a good idea to download the rpm and install it
using 
 rpm --nodeps weewx
but I am suspicious, since python3-importlib-resources is missing as
well as epel-release, and I don't want to break my weather station. 

jonrysh@OaklandWeather:~$ sudo dnf upgrade --refresh
[sudo] password for jonrysh: 
Fedora 39 - x86_64 71 kB/s | 30 kB 00:00 
Fedora 39 openh264 (From Cisco) - x86_64 8.9 kB/s | 989 B 00:00 
Fedora 39 - x86_64 - Updates 203 kB/s | 26 kB 00:00 
google-chrome 7.8 kB/s | 1.3 kB 00:00 
weewx 48 kB/s | 3.0 kB 00:00 
Dependencies resolved.

Problem: cannot install the best update candidate for package weewx-
4.10.2-1.el8.noarch
- nothing provides epel-release needed by weewx-5.0.2-1.el8.noarch from
weewx
- nothing provides python3-importlib-resources needed by weewx-5.0.2-
1.el8.noarch from weewx

=
Package Architecture Version Repository Size


Skipping packages with broken dependencies:
weewx noarch 5.0.2-1.el8 weewx 1.2 M

Transaction Summary

===
Skip 1 Package

Nothing to do.
Complete!
jonrysh@OaklandWeather:~$ sudo dnf upgrade --skip-broken 
[sudo] password for jonrysh: 
Last metadata expiration check: 0:23:39 ago on Sat 15 Jun 2024 04:19:32
PM PDT.
Dependencies resolved.

Problem: cannot install the best update candidate for package weewx-
4.10.2-1.el8.noarch
- nothing provides epel-release needed by weewx-5.0.2-1.el8.noarch from
weewx
- nothing provides python3-importlib-resources needed by weewx-5.0.2-
1.el8.noarch from weewx

==
Package Architecture Version Repository Size

==
Skipping packages with broken dependencies:
weewx noarch 5.0.2-1.el8 weewx 1.2 M

Transaction Summary

===
Skip 1 Package

Nothing to do.
Complete!

-- 
Sincerely Jonathan Ryshpan 

 Fiat justitia, ruant coelis!

-- 
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/f59606c02cbf1e3482b13ab412daf07cd986362a.camel%40pacbell.net.


Re: [weewx-user] Errors Continue [was: Weewx fails in Fedora 39]

2023-11-17 Thread Jonathan Ryshpan
On Thursday, November 16, 2023 at 11:26:44 AM UTC-8 Jonathan Ryshpan wrote:
> > > 
> > > I tried cherry picking genplot.py, which broke other things; maybe
> > > I did it wrong. Anyway I'd like to try V5. Where are instructions
> > > for downloading and installing it? The only version I can find is
> > > a .deb, and I run Fedora.

On Thu, 2023-11-16 at 17:45 -0800, Lee Holstege wrote:
> The original post was mine.  I found that removing six.py allowed the
> system to start, as you did.  Everything was working fine EXCEPT the
> graphs were not being updated and I was getting the errors you
> reported..   In my case I fixed the problem by by replacing two files
> -- genplot.py and utilities.py -  with the equivalent files from the
> v5 b15 beta.   This has been working perfectly for me for the past
> three days.  Other options like downgrading pillow DID NOT work for me
> because the downgrade failed.  YMMV, but replacing the files above is
> worth a try.  Good luck.

I have replaced genplot.py and utilities.py from the V5 beta, as you
suggest, and the error messages have ceased.

-- 
Thanks Very Much - Jonathan Ryshpan 

 A man who carries a cat by the tail learns 
 something he can learn in no other way. 
 -- Mark Twain.

-- 
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/5a72af15cafd66dc5909fb4f3b2e8e647a219aa2.camel%40pacbell.net.


Re: [weewx-user] Errors Continue [was: Weewx fails in Fedora 39]

2023-11-16 Thread Jonathan Ryshpan
On Wed, 2023-11-15 at 14:20 -0800, Tom Keffer wrote:
> This is caused by upgrading to Pillow 10, which has removed the
> attribute "textsize". There have been several email threads about
> this. For
> example, https://groups.google.com/g/weewx-user/c/F1oLMD8_3MQ/m/Gir1m-9RAgAJ
> 
> You can either downgrade Pillow to 9.x, or cherry pick the fix as
> described in the email thread, or use the beta of WeeWX V5.

I tried cherry picking genplot.py, which broke other things; maybe I did
it wrong. Anyway I'd like to try V5. Where are instructions for
downloading and installing it? The only version I can find is a .deb,
and I run Fedora.

-- 
Sincerely Jonathan Ryshpan 

 The mind is not a vessel to be filled; it is 
 a fire to be kindled. -- Plutarch 

-- 
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/6952511a8dbc0dec82226d5bdb480034b1846ce3.camel%40pacbell.net.


Re: [weewx-user] Errors Continue [was: Weewx fails in Fedora 39]

2023-11-15 Thread Jonathan Ryshpan
I have removed six.py and weewx starts and generates usable web pages.
However a new error now appears every minute, whenever the image
generator is invoked. Any ideas?

Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
Caught unrecoverable exception in generator
'weewx.imagegenerator.ImageGenerator'
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  type object 'ImageDraw' has no attribute 'textsize'
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  Traceback (most recent call last):
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
    File "/usr/share/weewx/weewx/reportengine.py", line 197,
in run
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  obj.start()
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
    File "/usr/share/weewx/weewx/reportengine.py", line 385,
in start
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  self.run()
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
    File "/usr/share/weewx/weewx/imagegenerator.py", line
42, in run
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  self.gen_images(self.gen_ts)
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
    File "/usr/share/weewx/weewx/imagegenerator.py", line
114, in gen_images
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  image = plot.render()
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  ^
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
    File "/usr/share/weewx/weeplot/genplot.py", line 212, in
render
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  self._renderBottom(draw)
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
    File "/usr/share/weewx/weeplot/genplot.py", line 404, in
_renderBottom
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  bottom_label_size = draw.textsize(self.bottom_label,
font=bottom_label_font)
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:

 ^^^
^
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
    File "/usr/share/weewx/weeplot/genplot.py", line 646, in
textsize
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  return ImageDraw.ImageDraw.textsize(self, string,
**options)
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
 
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  AttributeError: type object 'ImageDraw' has no attribute
'textsize'
Nov 15 07:04:16  python3[2233]: weewx[2233] ERROR weewx.reportengine:
  Generator terminated


On Wed, 2023-11-15 at 04:48 -0800, gary@gmail.com wrote:
> See: weewx doesn't start after upgrade to fedoar 39 (google.com)
> 
> On Wednesday, November 15, 2023 at 4:54:29 AM UTC-5 Jonathan Ryshpan
> wrote:
> > On Wed, 2023-11-15 at 01:26 -0800, Jonathan Ryshpan wrote:
> > > I have just upgraded to Fedora 39 and weewx has stopped working.
> > > Initiation fails with the following messages. Any ideas what's
> > > wrong or how to investigate?
> > > 

-- 
Sincerely Jonathan Ryshpan 

The mind is not a vessel to be filled 
but a fire to be kindled.
 -- Plutarch

-- 
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/3921f700d9a2661e91470e3806b601c59d9497b0.camel%40pacbell.net.


Re: [weewx-user] Weewx fails in Fedora 39

2023-11-15 Thread Jonathan Ryshpan
Many thanks. I was behind reading the weewx list, searched it for
fedora, and found nothing recent. Duh...

On Wed, 2023-11-15 at 04:48 -0800, gary@gmail.com wrote:
> See
> weewx doesn't start after upgrade to fedoar 39 (google.com)
> 
> On Wednesday, November 15, 2023 at 4:54:29 AM UTC-5 Jonathan Ryshpan
> wrote:
> > On Wed, 2023-11-15 at 01:26 -0800, Jonathan Ryshpan wrote:
> > > I have just upgraded to Fedora 39 and weewx has stopped working.
> > > Initiation fails with the following messages. Any ideas what's
> > > wrong or how to investigate?

-- 
Sincerely Jonathan Ryshpan 

 Eniac, Geniac, digital miracle
 Give me an answer that's truly empirical
 Professors are lost in a drawjopping daze
 Watching 6 year old seniors all grabbing off A's.
 -- Space Child's Mother Goose

-- 
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/f5515a1a8675eec438a40128306208d91165357b.camel%40pacbell.net.


Re: [weewx-user] Weewx fails in Fedora 39

2023-11-15 Thread Jonathan Ryshpan
On Wed, 2023-11-15 at 01:26 -0800, Jonathan Ryshpan wrote:
> I have just upgraded to Fedora 39 and weewx has stopped working.
> Initiation fails with the following messages. Any ideas what's wrong
> or how to investigate?
> 
The version of weewx is:
$ rpm -q weewx
weewx-4.10.2-1.el8.noarch

Sorry for not putting this in the original post.

-- 
Sincerely Jonathan Ryshpan 

Every rocky mountain slope
A corrugated washing board
Every snowflake Fuller's Soap
And the dirty land 
Scrubbed by His Hand
On the washboard of the Lord.

-- 
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/0f70272d8e81f2c1e5543d5a74c7b6b44fc03f9b.camel%40pacbell.net.


[weewx-user] Weewx fails in Fedora 39

2023-11-15 Thread Jonathan Ryshpan
I have just upgraded to Fedora 39 and weewx has stopped working.
Initiation fails with the following messages. Any ideas what's wrong or
how to investigate?

$ systemctl status weewx.service  
× weewx.service - SYSV: start and stop the weewx weather system
Loaded: loaded (/etc/rc.d/init.d/weewx; generated)
   Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: exit-code) since Wed 2023-11-15 00:31:13
PST; 44min ago
  Docs: man:systemd-sysv-generator(8)
   Process: 900 ExecStart=/etc/rc.d/init.d/weewx start (code=exited,
status=1/FAILURE)

   CPU: 151ms

Nov 15 00:31:13 OaklandWeather.localdomain weewx[916]: Traceback (most
recent call last):
Nov 15 00:31:13 OaklandWeather.localdomain weewx[916]:   File
"/usr/share/weewx/weewxd", line 22, in 
Nov 15 00:31:13 OaklandWeather.localdomain weewx[916]: import weecfg
Nov 15 00:31:13 OaklandWeather.localdomain weewx[916]:   File
"/usr/share/weewx/weecfg/__init__.py", line 21, in 
Nov 15 00:31:13 OaklandWeather.localdomain weewx[916]: from
six.moves import StringIO, input
Nov 15 00:31:13 OaklandWeather.localdomain weewx[916]:
ModuleNotFoundError: No module named 'six.moves'
Nov 15 00:31:13 OaklandWeather.localdomain weewx[900]: [FAILED]
Nov 15 00:31:13 OaklandWeather.localdomain systemd[1]: weewx.service:
Control process exited, code=exited, status=1/FAILURE

Nov 15 00:31:13 OaklandWeather.localdomain systemd[1]: weewx.service:
Failed with result 'exit-code'.

Nov 15 00:31:13 OaklandWeather.localdomain systemd[1]: Failed to start
weewx.service - SYSV: start and stop the weewx weather system.

-- 
Sincerely Jonathan Ryshpan 

 The mind is not a vessel to be filled; it is 
 a fire to be kindled. -- Plutarch 

-- 
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/235881e46984cb5d13adc029d351c502574a53a7.camel%40pacbell.net.


Re: [weewx-user] (I'm Perplexed) Resetting Rain Year Start

2023-03-13 Thread Jonathan Ryshpan
On Mon, 2023-03-13 at 16:49 -0700, Tom Keffer wrote:
> It works when I look at it. Make sure you click on the "Year" header
> under "Statistics." 
Just so. I didn't realize that Statistics, etc were live links till
today.

> Definitely not the most intuitive interface...
Just as you say.

> Wow! You've had a lot of rain this year.
We have more coming tonight and tomorrow. Probably over 40" total for
the rain year.

> On Mon, Mar 13, 2023 at 3:04 PM Jonathan Ryshpan 
> wrote:
> > I have "changed" the start of the rain year to October, but am now
> > perplexed because the rain year has always been set to start in
> > October. I have reset the start of the rain year and have deleted
> > all the files under /var/www/html/weewx but nothing has changed, as
> > you can see by looking at the web site. What am I missing?

-- 
Sincerely Jonathan Ryshpan 

 Gravitation can not be held responsible for people
 falling in love. -- Albert Einstein

-- 
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/0b13d151a6af6c2d5f67c9352e34fe36acdc7846.camel%40pacbell.net.


Re: [weewx-user] (I'm Perplexed) Resetting Rain Year Start

2023-03-13 Thread Jonathan Ryshpan
I have "changed" the start of the rain year to October, but am now
perplexed because the rain year has always been set to start in October.
I have reset the start of the rain year and have deleted all the files
under /var/www/html/weewx but nothing has changed, as you can see by
looking at the web site. What am I missing?
   
Here is the log of a reset session:
   # wee_device --set-rain-year-start=10
   Using configuration file /etc/weewx/weewx.conf
   Using Vantage driver version 3.5.2 (weewx.drivers.vantage)
   Old rain season start is 10, new one is 10.
   Old and new rain season starts are the same. Nothing done.

And an extract from weewx.conf:
   [Station]
   
      # Description of the station location
      location = "Claremont Hills Oakland, CA"
      ...
      # If you have a website, you may specify an URL
      station_url = http://oaklandweather.ddns.net
   
      # The start of the rain year (1=January; 10=October, etc.). This is
      # downloaded from the station if the hardware supports it.
      rain_year_start = 10
      ...

System info:
   Operating System: Fedora Linux 37
   KDE Plasma Version: 5.26.5
   KDE Frameworks Version: 5.103.0
   Qt Version: 5.15.8
   Kernel Version: 6.1.11-200.fc37.x86_64 (64-bit)
   Graphics Platform: Wayland
   Processors: 2 × Intel® Pentium® CPU G2030 @ 3.00GHz
   Memory: 7.6 GiB of RAM
   Graphics Processor: Mesa Intel® HD Graphics 2500
   Manufacturer: Dell Inc.
   Product Name: Inspiron 660s
   
On Mon, 2023-03-13 at 10:51 -0700, Tom Keffer wrote:
> When you start weewx, it downloads the start of the rain year from
> your console and uses that for reporting. It's not stored in the
> database. So, if you change the rain year, you'll find that rain year
> reporting will change from January to October.
> 
> Delete all your reports and let weewx regenerate them. That way,
> they'll all use the same rain year start.
> 
> On Mon, Mar 13, 2023 at 9:14 AM Jonathan Ryshpan 
> wrote:
> > Is there any reason not to change the start of the rain year on a
> > Davis Vantage View from January to October on a system that has been
> > running for a while? Will it corrupt the archive or mess up the
> > system in any other way? The weexd daemon will (of course) be
> > stopped during the change.

-- 
Sincerely Jonathan Ryshpan 

 Quantula sapientia mundus regitur.
 -- Oxenstierna

-- 
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/64bbac61b9c53fede150f207dad9d8db1937f396.camel%40pacbell.net.


[weewx-user] Resetting Rain Year Start

2023-03-13 Thread Jonathan Ryshpan
Is there any reason not to change the start of the rain year on a Davis
Vantage View from January to October on a system that has been running
for a while? Will it corrupt the archive or mess up the system in any
other way? The weexd daemon will (of course) be stopped during the
change.

-- 
Sincerely Jonathan Ryshpan 

 Never waste any time you can spend sleeping.

-- 
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/782f567bcb02cde474512550fe78700c04ebdc7f.camel%40pacbell.net.


[weewx-user] Backing up weewx.sdb

2023-03-13 Thread Jonathan Ryshpan
My weewx database, which is on OaklandWeather,  is shared via nfs with
my main system, on which key files and folders are backed up daily using
rsnapshot.  The files being backed up include weewx.sdb. I have just
noted this in the WeeWx User Manual:
   Do not make the copy of the SQLite database while in the middle of a
   transaction! Schedule the backup for immediately after an archive record
   is written, and then make sure the backup completes before the next
   archive record arrives. Alternatively, stop WeeWX, perform the backup,
   then restart WeeWX. 
   
What are the bad consequences of backing up during a transaction? Is
there just one corrupt entry, or is the whole backup corrupt? Does
anyone know a way to control the backup process so that this particular
file in not copied during a transaction?

-- 
Many Thanks - Jonathan Ryshpan 

 The best is the enemy of the good -- Voltaire

-- 
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/499136e86d8c20adb16fefc53f93786c97e0a38c.camel%40pacbell.net.


Re: [weewx-user] Re: Roughly how many weewx users are there?

2023-03-12 Thread Jonathan Ryshpan
There are (about) 1727 URLs listed in the Station Map.

On Mon, 2022-08-15 at 11:20 -0700, Karen K wrote:
> You may want to look at WeeWX station map.
> 
> WindnFog schrieb am Montag, 15. August 2022 um 20:07:26 UTC+2:
> > Do any developers have a ballpark figure of how many active
> > instances of weewx are being used worldwide?  Now and then, people
> > ask me how widely it's used.  I'd like to say "by about 1000, 5000,
> > 10,000." 

-- 
Sorry to be so late - Jonathan Ryshpan 

 The best is the enemy of the good -- Voltaire

-- 
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/79d60fd7f8a2b27ab8d871988c960725d0781e64.camel%40pacbell.net.


Re: [weewx-user] Registering my Station & Rain Year

2022-04-17 Thread Jonathan Ryshpan
My station now appears on the map, so Registering is settled. Which
leaves open the question of the Rain Year.

On Sat, 2022-04-16 at 16:11 -0700, Jonathan Ryshpan wrote:
>  * (Registering) I have just registered my station and restarted weewx.
>How long will it be before my station  shows up on the map?
>  * (Rain Year) Also changed the start of the rain year from 1 (January)
>to 10  (October) to conform to local (USA/CA) practice and restarted
>weewx. But didn't notice any change to the web site as displayed on
>my computer. Do I need to make other changes and/or resets?
> 
> System URL: http://oaklandweather.ddns.net
> 
> Running: weewx-4.7.0-1.el8.noarch
> 
> System Info:
> Operating System: Fedora 34
> KDE Plasma Version: 5.22.5
> KDE Frameworks Version: 5.85.0
> Qt Version: 5.15.2
> Kernel Version: 5.15.10-100.fc34.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 2 × Intel® Pentium® CPU G2030 @ 3.00GHz
> Memory: 7.6 GiB of RAM
> Graphics Processor: Mesa DRI Intel® HD Graphics 2500

-- 
Sincerely Jonathan Ryshpan  We are sorry, but the
number you have dialed is imaginary. Please rotate your phone 90
degrees and try again.

-- 
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/8b69a57e05296574d5470da6c614d3b95fecdc22.camel%40pacbell.net.


[weewx-user] Registering my Station & Rain Year

2022-04-16 Thread Jonathan Ryshpan
 * (Registering) I have just registered my station and restarted weewx.
   How long will it be before my station  shows up on the map?
 * (Rain Year) Also changed the start of the rain year from 1 (January)
   to 10  (October) to conform to local (USA/CA) practice and restarted
   weewx. But didn't notice any change to the web site as displayed on
   my computer. Do I need to make other changes and/or resets?

System URL: http://oaklandweather.ddns.net

Running: weewx-4.7.0-1.el8.noarch

System Info:
Operating System: Fedora 34
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.15.10-100.fc34.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Pentium® CPU G2030 @ 3.00GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 2500

-- 
Sincerely Jonathan Ryshpan  The time you enjoy
wasting is not wasted time. --Bertrand Russell

-- 
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/57c81483cc0d73aadfea2f39fee49b8a988ec6a8.camel%40pacbell.net.


[weewx-user] Missing postings

2022-02-15 Thread Jonathan Ryshpan
I'm not getting all of the postings to this list (weewx-users) in my
email inbox, in particular I have nothing from bchap... There's nothing
obvious in the Google setup for the list; the subscription in My Groups
says "Each Email".  I see every posting on the web, or at least many
more than appear in my Inbox.

Any ideas about where to start looking? Or is this normal? (I am
totally ignorant about list management.)

-- 
Sincerely Jonathan Ryshpan 

 Power tends to corrupt. Absolute power tends to
 corrupt absolutely. -- Lord Acton

-- 
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/5e0bd758f19d1f083e138aef90cef0542f94aa95.camel%40pacbell.net.


Re: [weewx-user] Re: WeeWX V4.6.1 released

2022-02-11 Thread Jonathan Ryshpan
On Fri, 2022-02-11 at 00:52 -0800, Jonathan Ryshpan wrote:
> On Thu, 2022-02-10 at 20:48 -0800, Roger L wrote:
> > Removing those lines did indeed fix the title bar. That fix
> > worked! 
> > 
> > I am still seeing this lines below. I have not seen from 'leafTemp1
> > ' onward before. 
> I think I'm seeing what Roger sees; there's some weird text at the
> top of the screen.  A screenshot is attached. 
> 
> The station is visible on the web at: http://oaklandweather.ddns.net/

The problem started after a full system upgrade, as a part of which
weewx was upgraded to version 4.6.1.

Info about the station (I forgot to include in the original posting).
Weewx Info
   WeeWX version 4.6.1
   Skin Seasons 4.6.1

System Info
   Operating System: Fedora Linux 35
   KDE Plasma Version: 5.23.5
   KDE Frameworks Version: 5.90.0
   Qt Version: 5.15.2
   Kernel Version: 5.16.7-200.fc35.x86_64 (64-bit)
   Graphics Platform: Wayland
   Processors: 2 Intel® Pentium® CPU G2030 @ 3.00GHz
   Memory: 7.6 GiB of RAM
   Graphics Processor: Mesa Intel® HD Graphics 2500

-- 
Sincerely Jonathan Ryshpan 

 The mind is not a vessel to be filled; it is 
 a fire to be kindled. -- Plutarch 

-- 
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/7eb3a7c1cebddb73fe211d9a55f3821e29add882.camel%40pacbell.net.


[weewx-user] Change to DocumentRoot has no effect

2021-12-25 Thread Jonathan Ryshpan
Trying to make my weewx website 
   http://oaklandweather/weewx/
a little easier to access, I edited 
/etc/httpd/conf/httpd.conf as described in the instructions for Fedora
systems in
   
https://netshopisp.medium.com/how-to-change-default-documentroot-directory-in-apache-linux-63939a4aa0c
changing 
   DocumentRoot "/var/www/html"
to
   DocumentRoot "/var/www/html/weewx"
which should have made the site accessible as 
http://oaklandweather
But nothing seems to have changed.  Could something be cached in my
browsers?  Advice is welcome.

System info:
   Operating System: Fedora 34
   KDE Plasma Version: 5.22.5
   KDE Frameworks Version: 5.85.0
   Qt Version: 5.15.2
   Kernel Version: 5.15.10-100.fc34.x86_64 (64-bit)
   Graphics Platform: Wayland
   Processors: 2 × Intel® Pentium® CPU G2030 @ 3.00GHz
   Memory: 7.6 GiB of RAM
   Graphics Processor: Mesa DRI Intel® HD Graphics 2500

-- 
Sincerely Jonathan Ryshpan 

 The above message, which does not represent 
 the opinion of the Berkeley Linux Team, is sold 
 by weight, not by volume. 
 Some settling of the contents may have occurred
 during shipment.

-- 
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/8a8e4d8f6f3343c62fbff3ed2704c1feb27fd994.camel%40pacbell.net.


Re: [weewx-user] Re: Slow Response Time

2021-12-15 Thread Jonathan Ryshpan
You are correct; but the gateway in question, a BGW320-500 XGS-PON
Broadband Gateway, doesn't seem to provide any way at all to edit built
in wervices like httpd; I have enabled what's provided. Or a way to
distinguish between inbound or outbound ports in the setup for custom
services like no-ip. Perhaps a discussion with ATT support would
provide more info. Do you think this is desirable?

On Wed, 2021-12-15 at 05:47 -0800, Andy wrote:
> I don't think  tcp/8245 inbound should be open. The no-ip updates are
> outbound so you do not need to open a port in. Change your port 80
> forward to tcp only, udp 80 is not needed.
> 
> Andy
> On Wednesday, December 15, 2021 at 3:47:32 AM UTC-8 kk44...@gmail.com
> wrote:
> > May be you want to try tcptraceroute to track the way of the
> > packets through your network.
> > 
> > tcptraceroute -p 80 oaklandweather.ddns.net
> > tcptraceroute -p 80 45-30-89-101.lightspeed.sntcca.sbcglobal.net
> > (tcptraceroute is not installed by default, so may be, you have to
> > install it before.)
> > 
> > And may be, there is an internal IP address of your weather server
> > that plays a role in that. It may start with 192.168

-- 
Sincerely Jonathan Ryshpan 

 Dance, as if nobody's watching,
 Love, as if you've never been hurt,
 Sing, as if no one can hear you,
 Work, as if you don't need the money,
 Live, as if heaven is on earth.
 -- Rumi

-- 
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/de5a8046a943f59924cc798639e40d24ee0608a0.camel%40pacbell.net.


Re: [weewx-user] Re: Slow Response Time

2021-12-15 Thread Jonathan Ryshpan
Here is the info you requested.

# tcptraceroute -p 80 oaklandweather.ddns.net
Running:
   traceroute -T -O info --sport=80 oaklandweather.ddns.net  
traceroute to oaklandweather.ddns.net (45.30.89.101), 30 hops max, 60
byte packets
1  45-30-89-101.lightspeed.sntcca.sbcglobal.net (45.30.89.101)  0.674
ms  0.511 ms  0.340 ms
2  45-30-89-101.lightspeed.sntcca.sbcglobal.net (45.30.89.101)
  0.896 ms  0.842 ms  0.940 ms

# tcptraceroute -p 80 45-30-89-101.lightspeed.sntcca.sbcglobal.net
Running:
   traceroute -T -O info --sport=80 45-30-89-
101.lightspeed.sntcca.sbcglobal.net  
traceroute to 45-30-89-101.lightspeed.sntcca.sbcglobal.net
(45.30.89.101), 30 hops max, 60 byte packets
1  45-30-89-101.lightspeed.sntcca.sbcglobal.net (45.30.89.101)  0.563
ms  0.280 ms  0.422 ms
2  * 45-30-89-101.lightspeed.sntcca.sbcglobal.net (45.30.89.101) 
 1.079 ms 45-30-89-101.lightspeed.sntcca.sbcglobal.net (45.30.89.101)
  1.200 ms

# host oaklandweather
oaklandweather.attlocal.net has address 192.168.1.75
oaklandweather.attlocal.net has IPv6 address fe80::2adf:cb67:d4a:65ee
oaklandweather.attlocal.net has IPv6 address 2600:1700:5f20:4d80::49
oaklandweather.attlocal.net has IPv6 address
2600:1700:5f20:4d80:a122:3027:e0dc:c399

On Wed, 2021-12-15 at 03:47 -0800, Karen K wrote:
> May be you want to try tcptraceroute to track the way of the packets
> through your network.
> 
> tcptraceroute -p 80 oaklandweather.ddns.net
> tcptraceroute -p 80 45-30-89-101.lightspeed.sntcca.sbcglobal.net
> (tcptraceroute is not installed by default, so may be, you have to
> install it before.)
> 
> And may be, there is an internal IP address of your weather server
> that plays a role in that. It may start with 192.168

-- 
Sincerely Jonathan Ryshpan 

 As our case is new, so we must think anew and 
 act anew. -- Lincoln

-- 
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/969739201651eab058915aa38f26183b80f85d48.camel%40pacbell.net.


Re: [weewx-user] Re: Slow Response Time

2021-12-14 Thread Jonathan Ryshpan
Thanks.  Extremely interesting info.  I'm glad that others can access
weewx easily, even though I can't.

But I don't understand your advice.  The page loads slowly on my
desktop, which has a wired connection to the the server running weewx
and also to the internet.  Are you telling me that if I turn off wifi
on all the phones that using my router/hotspot that the page will load
faster on my desktop?  In fact, putting my cell phone into airplane
mode makes no difference.

Sincerely Jonathan Ryshpan 

All the world's a stage and most of us are 
desperately unrehearsed.  -- Sean O'Casey

On Tue, 2021-12-14 at 06:30 -0800, Andy wrote:
> Your page loads fast for me, around 400-500 ms. The slowness from
> inside your home network may be related to NAT loopback. Turn off
> wifi on your phone and see how your page loads. 
> 
> On Monday, December 13, 2021 at 11:02:07 PM UTC-8
> jonatha...@gmail.com wrote:
> > I have a weather station that's visible on the web
> > as http://oaklandweather.ddns.net/weewx/index.html .  Response from
> > a web browser is very slow, about 25 seconds to refresh.
> > It's also visible on my local network
> > as http://oaklandweather/weewx/index.html .  Response from a web
> > browser is very fast, less than 250 ms to refresh.
> > 
> > The ping times for the two ways of accessing oaklandweather are not
> > grossly different.  Why are the response times from a browser so
> > different?  Or possibly the slow response is just on my own system.
> >  Could someone try ddns.net/weewx/... ?
> > 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/04d86b32f44dcca21858dd070d0a927dbd522773.camel%40pacbell.net.


[weewx-user] Slow Response Time

2021-12-13 Thread Jonathan Ryshpan
I have a weather station that's visible on the web
as http://oaklandweather.ddns.net/weewx/index.html .  Response from a
web browser is very slow, about 25 seconds to refresh.
It's also visible on my local network
as http://oaklandweather/weewx/index.html .  Response from a web
browser is very fast, less than 250 ms to refresh.

The ping times for the two ways of accessing oaklandweather are not
grossly different.  Why are the response times from a browser so
different?  Or possibly the slow response is just on my own system.
 Could someone try ddns.net/weewx/... ?

ping oaklandweather.ddns.net 
$ PING oaklandweather.ddns.net (45.30.89.101) 56(84) bytes of data. 
64 bytes from 45-30-89-101.lightspeed.sntcca.sbcglobal.net
(45.30.89.101): icmp_seq=1 ttl=64 time=0.318 ms 
64 bytes from 45-30-89-101.lightspeed.sntcca.sbcglobal.net
(45.30.89.101): icmp_seq=2 ttl=64 time=0.596 ms 
64 bytes from 45-30-89-101.lightspeed.sntcca.sbcglobal.net
(45.30.89.101): icmp_seq=3 ttl=64 time=0.637 ms 
...

$ ping oaklandweather 
PING oaklandweather(fe80::2adf:cb67:d4a:65ee%enp3s0
(fe80::2adf:cb67:d4a:65ee%enp3s0)) 56 data bytes 
64 bytes from fe80::2adf:cb67:d4a:65ee%enp3s0
(fe80::2adf:cb67:d4a:65ee%enp3s0): icmp_seq=1 ttl=64 time=0.224 ms 
64 bytes from fe80::2adf:cb67:d4a:65ee%enp3s0
(fe80::2adf:cb67:d4a:65ee%enp3s0): icmp_seq=2 ttl=64 time=0.258 ms 
64 bytes from fe80::2adf:cb67:d4a:65ee%enp3s0
(fe80::2adf:cb67:d4a:65ee%enp3s0): icmp_seq=3 ttl=64 time=0.189 ms 
...

-- 
Sincerely Jonathan Ryshpan 

 For I am a Bear of Very Little Brain, and 
 long words bother me. -- Winnie the Pooh

-- 
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/c732da9d26210342f20204fca200c81f3e63e471.camel%40pacbell.net.


[weewx-user] Re: weewx.conf.

2021-11-20 Thread Jonathan Ryshpan
Thanks.  It must have happened when I modified weewx.conf  using
wee_config.  Are there other wee_ programs that modify
weewx.conf in a similar way?

On Sat, 2021-11-20 at 10:04 -0800, vince wrote:
> You installed an extension or skin.  Weewx keeps backups of the file
> 'before' your change so you can easily reverse the changes if neded.
> 
> On Saturday, November 20, 2021 at 8:58:16 AM UTC-8
> jonatha...@gmail.com wrote:
> > Somewhere in the installation process the file weewx.conf.
> > was generated as a backup, like this:
> > $ ll
> > total 104
> > ... 
> > -rw-r--r--. 1 root root 25033 Sep 12 18:54 weewx.conf
> > -rw-r--r--. 1 root root 23142 Sep 12 16:37
> > weewx.conf.20210912185425
> > -rw-r--r--. 1 root root 22611 Apr  2  2021 weewx.conf.dist
> > 
> > This looks like a good system, and I'd like to continue it, but
> > I've forgotten how the file was generated.  Can someone enlighten
> > me?

-- 
Sincerely Jonathan Ryshpan 

 Fiat justitia, ruant coelis!

-- 
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/57b34ae1dde2c4d20aad3287ff7e815546ff67ee.camel%40pacbell.net.


[weewx-user] weewx.conf.

2021-11-20 Thread Jonathan Ryshpan
Somewhere in the installation process the file weewx.conf. was
generated as a backup, like this:
$ ll
total 104
... 
-rw-r--r--. 1 root root 25033 Sep 12 18:54 weewx.conf
-rw-r--r--. 1 root root 23142 Sep 12 16:37 weewx.conf.20210912185425
-rw-r--r--. 1 root root 22611 Apr  2  2021 weewx.conf.dist

This looks like a good system, and I'd like to continue it, but I've
forgotten how the file was generated.  Can someone enlighten me?

-- 
Sincerely Jonathan Ryshpan 

 Anyone can do any amount of work, provided 
 it isn't the work he is supposed to be doing.
 --Robert Benchley

-- 
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/f52dd7416746231532b4e8d655f4fb098d698204.camel%40pacbell.net.


Re: [weewx-user] WeeWx database differs from system log

2021-11-11 Thread Jonathan Ryshpan
On Wed, 2021-11-10 at 12:23 -0800, Tom Keffer wrote:
> The times in the log are a month later than the times you are showing
> from the database. I'll bet if you looked later in the database, you
> would see that the records are arriving every 30 minutes.
You are correct; the database shows records arriving every 30 minutes.

> 
> Which did you intend? 5 or 30 minutes.
I intend every 5 minutes, and am considering every minute.  Any advice?

Thanks for your help.

-- 
Sincerely Jonathan Ryshpan 

 "Never try to teach a pig to sing.
 It wastes time and annoys the pig."

-- 
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/f19de3436d9b2a29e6576411a28d5a6d86ef3859.camel%40pacbell.net.


[weewx-user] Problem with the Wiki

2021-11-11 Thread Jonathan Ryshpan
When I click on an entry in the wiki
(URL: https://github.com/weewx/weewx/wiki/) instead of getting the page
clicked for, I get the home Wiki page.
For example
 * Open https://github.com/weewx/weewx/wiki/
 * Click on What you should know about paths
 * Page produced is  https://github.com/weewx/weewx/wiki/
 * Page expected
   is https://github.com/weewx/weewx/wiki/wiki/Understanding-paths

When I type in by hand the expected page
(https://github.com/weewx/weewx/wiki/wiki/Understanding-paths), the
expected page opens.

-- 
Sincerely Jonathan Ryshpan  Those who have put out
the eyes of the people reproach them for their blindness. -- Milton

-- 
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/c1e336f98c1fa55b35a7cb04983e36c68c2694b1.camel%40pacbell.net.


[weewx-user] WeeWx database differs from system log

2021-11-10 Thread Jonathan Ryshpan
I'm trying to set up weewx on a new system.  (weewx is also new to me.)
 The system log shows records being added to the database every half
hour, but the database (weewx.sdb) seems to show records being added
every 5 minutes.  Is one of these wrong?  Or does weewx add a number or
records (6 exactly) to the database every half hours?  I'm perplexed.

Here's an extract from the system log (emphasis added):

$ journalctl --since today | grep 'weewx.*Added record.*database'
Nov 10 00:00:16  OaklandWeather.localdomain python3[1902]: weewx[1902]
INFO weewx.manager: Added record 2021-11-10 00:00:00 PST (1636531200)
to database 'weewx.sdb'
Nov 10 00:30:16  OaklandWeather.localdomain python3[1902]: weewx[1902]
INFO weewx.manager: Added record 2021-11-10 00:30:00 PST (1636533000)
to database 'weewx.sdb'
Nov 10 01:00:16  OaklandWeather.localdomain python3[1902]: weewx[1902]
INFO weewx.manager: Added record 2021-11-10 01:00:00 PST (1636534800)
to database 'weewx.sdb'
Nov 10 01:30:16  OaklandWeather.localdomain python3[1902]: weewx[1902]
INFO weewx.manager: Added record 2021-11-10 01:30:00 PST (1636536600)
to database 'weewx.sdb'
Nov 10 02:00:16  OaklandWeather.localdomain python3[1902]: weewx[1902]
INFO weewx.manager: Added record 2021-11-10 02:00:00 PST (1636538400)
to database 'weewx.sdb'

But here is an extract from the database (weewx.sdb) converted to a
spreadsheet, covering the same period:

-- 
Sincerely Jonathan Ryshpan 

 They know that it is human nature to take up
 causes whereby a man may oppress his neighbor,
 no matter how unjustly. ... Hence they have had
 no trouble in finding men who would preach the
 damnability and heresy of the new doctrine from
 the very pulpit... -- Galileo Galilei, 1615

-- 
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/0289f0eea330723c6ca0b963cc2a65bf141aebde.camel%40pacbell.net.


[weewx-user] Re: How to convert weewx internal dates to standard forms?

2021-11-09 Thread Jonathan Ryshpan
Thanks.  Somehow neither replies has showed up on my email reader, but they 
are available on the web site, which explains this late reply.

An easier way to convert appears in an old posting on a LibreOffice list:
*https://syslog.me/2012/08/28/dates-from-unix-timestamps-in-openoffice-libreoffice/comment-page-1/*

On Tuesday, October 26, 2021 at 5:30:17 AM UTC-7 wfs...@gmail.com wrote:

> If you use sqlite, you can use the sqlite3 utility program to convert the 
> datetimes while exporting.  Start sqlite3 and enter these commands
>
> .open /var/lib/weewx/weewx.sdb
> .output export1.csv
> .mode csv
> .headers on
> select datetime(datetime, 'unixepoch', 'localtime') as dt, * from archive;
> .exit
>
> The * in the select statement means "every column in the table" so each 
> row in your export will be the converted datetime followed by all columns 
> in the archive table.  You could replace the * with individual column names 
> if you don't need everything.  Example:
> select datetime(datetime, 'unixepoch', 'localtime') as dt, outtemp, 
> outhumidity, barometer, rain from archive;
>
> Walt
>
> On Monday, October 25, 2021 at 10:58:30 AM UTC-5 vince wrote:
>
>> dateTime is epoch time
>> interval typically is your archive interval (typically 5 minutes but some 
>> folks/stations set theirs differently)
>>
>> On Monday, October 25, 2021 at 8:49:39 AM UTC-7 jonatha...@gmail.com 
>> wrote:
>>
>>> I have just exported my weewx archive into a csv file; all seems in 
>>> order, except that the dates are in internal weewx format, which needs to 
>>> be converted to my own preferred format (which is, for this moment, 
>>> 2021-10-25 08:36).  How is the conversion made?  
>>>
>>> If a formula isn't handy, one can be easily derives using the key 
>>> numbers of the weewx dating system:  Dates similar to weewx internal dates, 
>>> are expressed in terms of an *epoch*, time zero in some generally known 
>>> dating system, and an *interval*, the time represented by a change of 
>>> one unit in the internal dating system. In Unix
>>> the epoch is 00:00:00 UTC on 1 January 1970
>>> and the interval is 1 second.
>>> What are the epoch and interval for weewx internal dates?
>>>
>>> -- 
>>>
>>> Sincerely Jonathan Ryshpan 
>>>
>>> Fiat justitia, ruant coelis!
>>>
>>>

-- 
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/f908512b-45b5-43f7-89b5-0a04bc5be874n%40googlegroups.com.


[weewx-user] How to convert weewx internal dates to standard forms?

2021-10-25 Thread Jonathan Ryshpan
I have just exported my weewx archive into a csv file; all seems in
order, except that the dates are in internal weewx format, which needs
to be converted to my own preferred format (which is, for this moment,
2021-10-25 08:36).  How is the conversion made?  

If a formula isn't handy, one can be easily derives using the key
numbers of the weewx dating system:  Dates similar to weewx internal
dates, are expressed in terms of an epoch, time zero in some generally
known dating system, and an interval, the time represented by a change
of one unit in the internal dating system. In Unix
   the epoch is 00:00:00 UTC on 1 January 1970
   and the interval is 1 second.
What are the epoch and interval for weewx internal dates?

-- 
Sincerely Jonathan Ryshpan 

 Fiat justitia, ruant coelis!

-- 
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/9229567031656222ff2d34aa892ef42b01b4d5fe.camel%40pacbell.net.


Re: [weewx-user] Re: Apache server error 403 on Fedora-34

2021-09-15 Thread Jonathan Ryshpan
On Wed, 2021-09-15 at 15:38 -0700, vince wrote:
> On Wednesday, September 15, 2021 at 3:31:01 PM UTC-7
> jonatha...@gmail.com wrote:
> > I presume that if weewx creates new files under .../weewx/ then
> > they will inherit correct permissions (or possibly weewx won't
> > create any such files after its initialization).  Also it doesn't
> > look like there's any worry about security.
> 
> 
> It's not weewx, it's selinux, and you can't presume anything about
> selinux.  It has 'its' ideas about where things are located and how
> they got there, so if you do anything other than that selinux will
> block you when in enforcement mode, since it thinks you're actively
> trying to get around the security setup on the system.  It's actually
> a feature.
> 
> The better way to work around things is to put things where selinux
> expects it, or just run the chcon command in the linked article to
> set the security context of the files weewx writes to.

I did in fact run:
# chcon -R -t httpd_sys_content_t weewx
but didn't make clear that I had done so.   The question was to make
sure that the chcon would fix things permanently, or is there any
chance that weewx will create future files with a wrong security
context.

-- 
Thanks very much for your help - Jonathan Ryshpan 

 And God fulfills himself in many ways
 Lest one good custom should corrupt the world.
 -- Tennyson

-- 
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/e436b33a5e46c25fb53766957b42ba3e459e1900.camel%40pacbell.net.


Re: [weewx-user] Re: Apache server error 403 on Fedora-34

2021-09-15 Thread Jonathan Ryshpan
On Wed, 2021-09-15 at 13:07 -0700, vince wrote:
> On Wednesday, September 15, 2021 at 12:54:07 PM UTC-7
> jonatha...@gmail.com wrote:
> > There are Forbidden (403) errors attempting to access weewx data on
> > a newly installed system.  The error log reports:
> > ...
> > [Wed Sep 15 12:09:54.602687 2021] [core:error] [pid 22344:tid
> > 22450] (13)Permission denied: [client 27.0.0.1:36102] AH00035:
> > access to /weewx/index.html denied (filesystem path '/var/www/h
> > tml/weewx/index.html') because search permissions are missing on a
> > component of the path
> > ...
> > 
> > Weewx and Apache both appear to be running OK.  I suspect the
> > problem is that weewx is running as user root, while the httpd
> > server (apache) is running as user apache.  Thoughts?  If so,
> > what's the easiest way to configure weewx to run as apache (which
> > would be a little more secure)?
> 
> 
> I'd suggest google search for "AH00035: access denied because search
> permissions are missing on a component of the path".  (this page) has
> some reasonably good comments as does (this one)
> 
> If you're running selinux, that is more likely the thing you should
> check first.  Check your security log for how to set the context for
> the web docroot weewx writes into.   The  first link has a chcon
> example for how to make selinux happy.

The problem was selinux.  I checked this by setting enforcement to
Permissive which made the web page accessible.  I then followed the
magic in  (this page) to make the selinux permissions for
/var/www/html/weewx the same as those for /var/www/html; now everything
works OK with enforcement set to Enforcing.

I presume that if weewx creates new files under .../weewx/ then they
will inherit correct permissions (or possibly weewx won't create any
such files after its initialization).  Also it doesn't look like
there's any worry about security.


-- 
Sincerely Jonathan Ryshpan 

 Do you ever feel thankful that you know me and have
 access to my dementia? Explain and be prepared to 
 discuss in class.

-- 
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/62841d516a14489c07abe833235817a2618d6a40.camel%40pacbell.net.


[weewx-user] Apache server error 403 on Fedora-34

2021-09-15 Thread Jonathan Ryshpan
There are Forbidden (403) errors attempting to access weewx data on a
newly installed system.  The error log reports:

# more error_log
...
[Wed Sep 15 12:09:54.602687 2021] [core:error] [pid 22344:tid 22450]
(13)Permission denied: [client 27.0.0.1:36102] AH00035: access to
/weewx/index.html denied (filesystem path '/var/www/h
tml/weewx/index.html') because search permissions are missing on a
component of the path
...

Weewx and Apache both appear to be running OK.  I suspect the problem
is that weewx is running as user root, while the httpd server (apache)
is running as user apache.  Thoughts?  If so, what's the easiest way to
configure weewx to run as apache (which would be a little more secure)?

System Info:
   Operating System: Fedora 34
   KDE Plasma Version: 5.22.4
   KDE Frameworks Version: 5.85.0
   Qt Version: 5.15.2
   Kernel Version: 5.13.15-200.fc34.x86_64 (64-bit)
   Graphics Platform: Wayland
   Processors: 2 × Intel® Pentium® CPU G2030 @ 3.00GHz
   Memory: 7.6 GiB of RAM
   Graphics Processor: Mesa DRI Intel® HD Graphics 2500

-- 
Thanks - Jonathan Ryshpan 

 Three percent exceeds 2 percent by 50 percent, 
 not by 1 percent.
 --Edward Denison

-- 
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/f80331d8dfd12e38844cf68b698986d3e3d7ccd7.camel%40pacbell.net.