[weewx-user] weewx-sftp and delay in data displayed on the web

2023-12-28 Thread Oscar Galvan Felez
Hello

Let's see if someone can give me some idea of where to look for this small 
problem.

Pi OS Lite + new weewx installation (setup.py) + Belchertown skin + 
matthewwall sftp extension

I installed Apache and I can see the weewx website locally in my browser, 
the template is updated every 5 minutes and everything is correct!

The data is uploaded correctly every 5 minutes to the hosting (IONOS) but 
it takes another 5 minutes for the website to display the updated data, 
which means there is a 10-minute delay. 
Example: at 11:02 I see the data for 9:55, when the data for 11:00 has 
actually already been uploaded to the hosting. 

I spoke with my hosting and they told me everything was fine. 
In my old installation and uploading the data via FTP this did not happen 
to me. As of January 1, my hosting requires me to upload data via SFTP.

I don't have very extensive knowledge of Linux, I am a very basic user of 
following guides and learning. Any idea will be welcome. 

Thank you and Happy Holidays
Oscar Galvan

-- 
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/8db296b1-58c0-42c8-8e4e-87bcdc40bbffn%40googlegroups.com.


[weewx-user] Re: weewx-sftp and delay in data displayed on the web

2023-12-28 Thread Steve2Q
Oscar, I hope someone replies to either of us, as I have a similar problem 
and request. 
Steve

On Thursday, December 28, 2023 at 5:34:04 AM UTC-5 Oscar Galvan Felez wrote:

> Hello
>
> Let's see if someone can give me some idea of where to look for this small 
> problem.
>
> Pi OS Lite + new weewx installation (setup.py) + Belchertown skin + 
> matthewwall sftp extension
>
> I installed Apache and I can see the weewx website locally in my browser, 
> the template is updated every 5 minutes and everything is correct!
>
> The data is uploaded correctly every 5 minutes to the hosting (IONOS) but 
> it takes another 5 minutes for the website to display the updated data, 
> which means there is a 10-minute delay. 
> Example: at 11:02 I see the data for 9:55, when the data for 11:00 has 
> actually already been uploaded to the hosting. 
>
> I spoke with my hosting and they told me everything was fine. 
> In my old installation and uploading the data via FTP this did not happen 
> to me. As of January 1, my hosting requires me to upload data via SFTP.
>
> I don't have very extensive knowledge of Linux, I am a very basic user of 
> following guides and learning. Any idea will be welcome. 
>
> Thank you and Happy Holidays
> Oscar Galvan
>

-- 
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/6efe0378-2144-401f-a30b-7f785d0a997en%40googlegroups.com.


[weewx-user] Re: weewx doesn't start after upgrade to fedoar 39

2023-12-28 Thread Jose Maria T.J.
This worked for me, thanks!

I had weewx already installed in F38, so no needed to install the RPM.

El sábado, 11 de noviembre de 2023 a las 19:54:35 UTC+1, vince escribió:

That actually works on fedora39.  Great find ! 
Simply remove the six.py that weewx v4 installs.

# install weewx the hard way because
# the rpm signing key is not accepted 
# by modern fedora 39
sudo yum install -y wget
wget 
http://weewx.com/downloads/released_versions/weewx-4.10.2-1.el8.noarch.rpm
sudo yum localinstall weewx-4.10.2-1.el8.noarch.rpm

# get weewx's six.py out of the way
cd /usr/share/weewx/
sudo mv six.py six.py.keepme

# set debug=1 and save the file
sudo vi /etc/weewx/weewx.conf

# make sure it's running simulator
sudo wee_config --reconfigure

# start it up interactively
sudo weewxd

On Saturday, November 11, 2023 at 2:29:10 AM UTC-8 bell...@gmail.com wrote:

Sorry I wasn't clear. I was wondering what would happen if the 1.15 version 
of six.py in the WeeWX bin directory was updated to 1.16.

FWIW: MQTTSubscribe test on Ubuntu 22.04, Python 3.12 fails. If I delete 
six.py from WeeWX bin directory it passes.
rich

On Friday, 10 November 2023 at 22:27:44 UTC-5 vince wrote:

Yeah - many such threads here and there.  I did try reverting 'six' via pip 
to 1.15.0 on F39 but it didn't help.  Somebody upstream has some serious 
breakage.  (I didn't try python-3.12 but this might be one of those places 
where you can break the os potentially if you tried to install it in a 
system location.  Yet another reason the new venv/pip stuff is great)

On Friday, November 10, 2023 at 6:38:12 PM UTC-8 bell...@gmail.com wrote:

When I added Python 3.12 to my automated tests of MQTTSubscribe I saw this. 
 I did minimal digging and found this, 
https://bugzilla.mozilla.org/show_bug.cgi?id=1857492.
Perhaps updating the six.py that WeeWX ships might fix it… With WeeWX v5 
imminent (?)… I decided that MQTTSubscribe doesn’t support python 3.12.
I’d try using Python 3.11.
rich

On Friday, 10 November 2023 at 15:12:16 UTC-5 Lee Holstege wrote:

I have happily used weewx for many years.  Earlier this week I upgraded my 
system from fedora 38 to fedora 39.  The upgrade was uneventful. However 
weewx will no longer start.  Everyting else seems to work normally.  
Setting debug=1 in the config file made no difference.
The log output is 

 Traceback (most recent call last):
 File "/usr/share/weewx/weewxd", line 22, in 
import weecfg
"/usr/share/weewx/weecfg/__init__.py", line 21, in 
   from six.moves import StringIO, input
ModuleNotFoundError: No module named 'six.moves'
 weewx[53224]: [FAILED]
 weewx.service: Control process exited, code=exited, status=1/FAILURE
weewx.service: Failed with result 'exit-code'.
 Failed to start weewx.service - SYSV: start and stop the weewx weather 
system.

Looked pretty simple at first.  Missing file six.moves.   Just replace 
missing file and move on. 

Now I have learned  "six" is actually a compatibility library designed to 
allow seamless detection between Python2 and Python3 and that the routine 
(dynamically?) creates the missing file six.moves.  So it appears that the 
proper file either i not being created at all or is not being imported 
correctly.  I am running Python3.12. 

I have worked on this for the past couple of days and have made no 
progress.  I am not even sure whether the problem is in weewx or python.  I 
would appreciate any help that anyone may be able to provide.

Admin details:
weewx installed and upgraded from rpms downloaded from the weewx website
Current version is weewx-4.10.2-1.el8.noarch
Fedora 39 upgrade (earlier this week) and then updated again this morning
Weather station Davis Vantage Vue



  

-- 
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/c5c69914-892f-4dfc-b59d-4a6d711e40a9n%40googlegroups.com.