Re: [weewx-user] change locale for html.tmpl with weewx 5.0.2

2024-04-11 Thread Juan Antonio Mosquera Casais
Hi,

Perfect, this works:
*TMP=$current.outTemp.format(localize=False, add_label=False)

Thanks Tom and Karen for your support and patience

El viernes, 12 de abril de 2024 a las 7:21:33 UTC+2, Karen K escribió:

> Juan Antonio Mosquera Casais schrieb am Freitag, 12. April 2024 um 
> 07:03:31 UTC+2:
>
> Oh... works... but, show units, i can delete units??
>
>
> Replace .formatted by .format(add_label=False)
>  
>

-- 
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/6b57a302-ca8d-4a4b-acb0-829c89fa8a83n%40googlegroups.com.


Re: [weewx-user] change locale for html.tmpl with weewx 5.0.2

2024-04-11 Thread Juan Antonio Mosquera Casais
Oh... works... but, show units, i can delete units??

Before:
*TMP=9,1
*WND=0
*AZI=   N/A
*BAR=1030,8

After:
*TMP=9.0 °C
*WND=0 km/h
*AZI=   N/A
*BAR=1030.8 mbar


El jueves, 11 de abril de 2024 a las 21:56:29 UTC+2, Tom Keffer escribió:

> I'm not sure whether it would work, but you could try not localizing the 
> results. For example,
>
> *$monthoutTemp.max.format(localize=False)*
>
> See if that works.
>
>
>
>
> On Thu, Apr 11, 2024 at 10:37 AM Juan Antonio Mosquera Casais <
> juan.antonio.m...@gmail.com> wrote:
>
>> I read doc but i dont know this>
>>
>> I use Belchertown skin, and in skin.conf i generate a 
>> meteoclimatic.html.tmpl >
>>
>> *UPD=$current.dateTime.format("%d-%m-%Y %H:%M")
>> *TMP=$current.outTemp.formatted
>> *WND=$current.windSpeed.formatted
>> *AZI=$current.windDir.formatted
>> *BAR=$current.barometer.formatted
>> *HUM=$current.outHumidity.formatted
>> *SUN=$current.radiation.formatted
>> *UVI=$current.UV.formatted
>> *DHTM=$day.outTemp.max.formatted
>> *DLTM=$day.outTemp.min.formatted
>> *DHHM=$day.outHumidity.max.formatted
>> *DLHM=$day.outHumidity.min.formatted
>> *DHBR=$day.barometer.max.formatted
>> *DLBR=$day.barometer.min.formatted
>> *DGST=$day.windGust.max.formatted
>> *DSUN=$day.radiation.max.formatted
>> *DHUV=$day.UV.max.formatted
>> *DPCP=$day.rain.sum.formatted
>> *WRUN=
>> *MHTM=$month.outTemp.max.formatted
>> *MLTM=$month.outTemp.min.formatted
>> *MHHM=$month.outHumidity.max.formatted
>> *MLHM=$month.outHumidity.min.formatted
>> *MHBR=$month.barometer.max.formatted
>> *MLBR=$month.barometer.min.formatted
>> *MGST=$month.windGust.max.formatted
>> *MSUN=$month.radiation.max.formatted
>> *MHUV=$month.UV.max.formatted
>> *MPCP=$month.rain.sum.formatted
>> *YHTM=$year.outTemp.max.formatted
>> *YLTM=$year.outTemp.min.formatted
>> *YHHM=$year.outHumidity.max.formatted
>> *YLHM=$year.outHumidity.min.formatted
>> *YHBR=$year.barometer.max.formatted
>> *YLBR=$year.barometer.min.formatted
>> *YGST=$year.windGust.max.formatted
>> *YSUN=$year.radiation.max.formatted
>> *YHUV=$year.UV.max.formatted
>> *YPCP=$year.rain.sum.formatted
>> *EOT* 
>>
>> My locale is es_ES but, this meteoclimatic.html.tmpl i want en_US, is 
>> posible?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/7c828d07-e48f-42e2-a34e-9c21636d3051n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/7c828d07-e48f-42e2-a34e-9c21636d3051n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/b0f39e00-dd09-42ca-8b06-ea26a1039338n%40googlegroups.com.


[weewx-user] change locale for html.tmpl with weewx 5.0.2

2024-04-11 Thread Juan Antonio Mosquera Casais
I read doc but i dont know this>

I use Belchertown skin, and in skin.conf i generate a 
meteoclimatic.html.tmpl >

*UPD=$current.dateTime.format("%d-%m-%Y %H:%M")
*TMP=$current.outTemp.formatted
*WND=$current.windSpeed.formatted
*AZI=$current.windDir.formatted
*BAR=$current.barometer.formatted
*HUM=$current.outHumidity.formatted
*SUN=$current.radiation.formatted
*UVI=$current.UV.formatted
*DHTM=$day.outTemp.max.formatted
*DLTM=$day.outTemp.min.formatted
*DHHM=$day.outHumidity.max.formatted
*DLHM=$day.outHumidity.min.formatted
*DHBR=$day.barometer.max.formatted
*DLBR=$day.barometer.min.formatted
*DGST=$day.windGust.max.formatted
*DSUN=$day.radiation.max.formatted
*DHUV=$day.UV.max.formatted
*DPCP=$day.rain.sum.formatted
*WRUN=
*MHTM=$month.outTemp.max.formatted
*MLTM=$month.outTemp.min.formatted
*MHHM=$month.outHumidity.max.formatted
*MLHM=$month.outHumidity.min.formatted
*MHBR=$month.barometer.max.formatted
*MLBR=$month.barometer.min.formatted
*MGST=$month.windGust.max.formatted
*MSUN=$month.radiation.max.formatted
*MHUV=$month.UV.max.formatted
*MPCP=$month.rain.sum.formatted
*YHTM=$year.outTemp.max.formatted
*YLTM=$year.outTemp.min.formatted
*YHHM=$year.outHumidity.max.formatted
*YLHM=$year.outHumidity.min.formatted
*YHBR=$year.barometer.max.formatted
*YLBR=$year.barometer.min.formatted
*YGST=$year.windGust.max.formatted
*YSUN=$year.radiation.max.formatted
*YHUV=$year.UV.max.formatted
*YPCP=$year.rain.sum.formatted
*EOT* 

My locale is es_ES but, this meteoclimatic.html.tmpl i want en_US, is 
posible?

-- 
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/7c828d07-e48f-42e2-a34e-9c21636d3051n%40googlegroups.com.


Re: [weewx-user] Failed to update 4.10.2 to 5.0.2 with setup.py old installation

2024-04-11 Thread Juan Antonio Mosquera Casais
Yes, i found, thanks

El jueves, 11 de abril de 2024 a las 15:45:43 UTC+2, Juan Antonio Mosquera 
Casais escribió:

> Ok Tom, this is de problem, thanks...
>
> I updated to 5.0.2... but other question, i need modify rsyncupdaload.py, 
> where is now?
>
> Thanks!
>
> El jueves, 11 de abril de 2024 a las 14:20:31 UTC+2, Tom Keffer escribió:
>
>> I suspect this may be a permissions issue. What do you get for the 
>> following commands?
>>
>> *ls -l /home/weewx*
>> *ls -l /home/weewx/examples*
>>
>>
>> Make sure everything in the directory "/home/weewx" is writable by user 
>> "pi". Usually, it's easiest just to have everything under /home/weewx owned 
>> by user "pi":
>>
>> *sudo chown -R pi:pi /home/weewx*
>>
>>
>>
>> On Wed, Apr 10, 2024 at 9:49 PM Juan Antonio Mosquera Casais <
>> juan.antonio.m...@gmail.com> wrote:
>>
>>> Ok, thanks, sorry, this step i reply N, if i reply Y>
>>>
>>> pi@raspberrypi:/home/weewx $  source ~/weewx-venv/bin/activate
>>> (weewx-venv) pi@raspberrypi:/home/weewx $  weectl station upgrade 
>>> --config=/home/weewx/weewx.conf
>>> Using configuration file /home/weewx/weewx.conf
>>>
>>> Upgrade examples, utility files in /home/weewx (Y/n)? 
>>> Removing example directory /home/weewx/examples
>>> Copying examples into /home/weewx/examples
>>> Traceback (most recent call last):
>>>   File "/home/pi/weewx-venv/bin/weectl", line 8, in 
>>> sys.exit(main())
>>>   File "/home/pi/weewx-venv/lib/python3.9/site-packages/weectl.py", line 
>>> 66, in main
>>> namespace.func(namespace)
>>>   File 
>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/__init__.py", 
>>> line 121, in dispatch
>>> namespace.action_func(config_dict, namespace)
>>>   File 
>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_cmd.py", 
>>> line 333, in upgrade_station
>>> weectllib.station_actions.station_upgrade(config_dict=config_dict,
>>>   File 
>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py",
>>>  
>>> line 802, in station_upgrade
>>> examples_dir = copy_examples(config_dict, 
>>> examples_root=examples_root,
>>>   File 
>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py",
>>>  
>>> line 618, in copy_examples
>>> shutil.copytree(examples_resources, examples_dir)
>>>   File "/usr/lib/python3.9/shutil.py", line 557, in copytree
>>> return _copytree(entries=entries, src=src, dst=dst, 
>>> symlinks=symlinks,
>>>   File "/usr/lib/python3.9/shutil.py", line 458, in _copytree
>>> os.makedirs(dst, exist_ok=dirs_exist_ok)
>>>   File "/usr/lib/python3.9/os.py", line 225, in makedirs
>>> mkdir(name, mode)
>>> FileExistsError: [Errno 17] File exists: '/home/weewx/examples'
>>>
>>> Thanks.
>>>
>>> El jueves, 11 de abril de 2024 a las 0:12:37 UTC+2, Tom Keffer escribió:
>>>
>>>> Juan, your service file, weewx.service, looks like the old V4.10 
>>>> service file. The new V5.0 file has a few more entries.
>>>>
>>>> Double check that you did step #2: upgrade the old examples and utility 
>>>> files. 
>>>>
>>>> On Wed, Apr 10, 2024 at 12:27 PM Juan Antonio Mosquera Casais <
>>>> juan.antonio.m...@gmail.com> wrote:
>>>>
>>>>> pi@raspberrypi:/etc $ cat /etc/systemd/system/weewx.service
>>>>> # systemd unit configuration file for WeeWX
>>>>> #
>>>>> # For information about running WeeWX under systemd,
>>>>> # be sure to read https://github.com/weewx/weewx/wiki/systemd
>>>>> #
>>>>> [Unit]
>>>>> Description=WeeWX weather system
>>>>> Documentation=https://weewx.com/docs
>>>>>
>>>>> Requires=time-sync.target
>>>>> After=time-sync.target
>>>>> RequiresMountsFor=/home
>>>>>
>>>>> [Service]
>>>>> ExecStart=/home/weewx/bin/weewxd /home/weewx/weewx.conf
>>>>> StandardOutput=null
>>>>> # To run as a non-root user, uncomment and set username and group here:
>>>>> #User=weewx
>>>>> #Group=weewx
>>>>&g

Re: [weewx-user] Failed to update 4.10.2 to 5.0.2 with setup.py old installation

2024-04-11 Thread Juan Antonio Mosquera Casais
Ok Tom, this is de problem, thanks...

I updated to 5.0.2... but other question, i need modify rsyncupdaload.py, 
where is now?

Thanks!

El jueves, 11 de abril de 2024 a las 14:20:31 UTC+2, Tom Keffer escribió:

> I suspect this may be a permissions issue. What do you get for the 
> following commands?
>
> *ls -l /home/weewx*
> *ls -l /home/weewx/examples*
>
>
> Make sure everything in the directory "/home/weewx" is writable by user 
> "pi". Usually, it's easiest just to have everything under /home/weewx owned 
> by user "pi":
>
> *sudo chown -R pi:pi /home/weewx*
>
>
>
> On Wed, Apr 10, 2024 at 9:49 PM Juan Antonio Mosquera Casais <
> juan.antonio.m...@gmail.com> wrote:
>
>> Ok, thanks, sorry, this step i reply N, if i reply Y>
>>
>> pi@raspberrypi:/home/weewx $  source ~/weewx-venv/bin/activate
>> (weewx-venv) pi@raspberrypi:/home/weewx $  weectl station upgrade 
>> --config=/home/weewx/weewx.conf
>> Using configuration file /home/weewx/weewx.conf
>>
>> Upgrade examples, utility files in /home/weewx (Y/n)? 
>> Removing example directory /home/weewx/examples
>> Copying examples into /home/weewx/examples
>> Traceback (most recent call last):
>>   File "/home/pi/weewx-venv/bin/weectl", line 8, in 
>> sys.exit(main())
>>   File "/home/pi/weewx-venv/lib/python3.9/site-packages/weectl.py", line 
>> 66, in main
>> namespace.func(namespace)
>>   File 
>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/__init__.py", 
>> line 121, in dispatch
>> namespace.action_func(config_dict, namespace)
>>   File 
>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_cmd.py", 
>> line 333, in upgrade_station
>> weectllib.station_actions.station_upgrade(config_dict=config_dict,
>>   File 
>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py",
>>  
>> line 802, in station_upgrade
>> examples_dir = copy_examples(config_dict, examples_root=examples_root,
>>   File 
>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py",
>>  
>> line 618, in copy_examples
>> shutil.copytree(examples_resources, examples_dir)
>>   File "/usr/lib/python3.9/shutil.py", line 557, in copytree
>> return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
>>   File "/usr/lib/python3.9/shutil.py", line 458, in _copytree
>> os.makedirs(dst, exist_ok=dirs_exist_ok)
>>   File "/usr/lib/python3.9/os.py", line 225, in makedirs
>> mkdir(name, mode)
>> FileExistsError: [Errno 17] File exists: '/home/weewx/examples'
>>
>> Thanks.
>>
>> El jueves, 11 de abril de 2024 a las 0:12:37 UTC+2, Tom Keffer escribió:
>>
>>> Juan, your service file, weewx.service, looks like the old V4.10 service 
>>> file. The new V5.0 file has a few more entries.
>>>
>>> Double check that you did step #2: upgrade the old examples and utility 
>>> files. 
>>>
>>> On Wed, Apr 10, 2024 at 12:27 PM Juan Antonio Mosquera Casais <
>>> juan.antonio.m...@gmail.com> wrote:
>>>
>>>> pi@raspberrypi:/etc $ cat /etc/systemd/system/weewx.service
>>>> # systemd unit configuration file for WeeWX
>>>> #
>>>> # For information about running WeeWX under systemd,
>>>> # be sure to read https://github.com/weewx/weewx/wiki/systemd
>>>> #
>>>> [Unit]
>>>> Description=WeeWX weather system
>>>> Documentation=https://weewx.com/docs
>>>>
>>>> Requires=time-sync.target
>>>> After=time-sync.target
>>>> RequiresMountsFor=/home
>>>>
>>>> [Service]
>>>> ExecStart=/home/weewx/bin/weewxd /home/weewx/weewx.conf
>>>> StandardOutput=null
>>>> # To run as a non-root user, uncomment and set username and group here:
>>>> #User=weewx
>>>> #Group=weewx
>>>>
>>>> [Install]
>>>> WantedBy=multi-user.target
>>>>
>>>>
>>>> El miércoles, 10 de abril de 2024 a las 19:46:01 UTC+2, vince escribió:
>>>>
>>>>> Check to see if you have multiple weewx.service files on your system.  
>>>>> It's possible you have one under /etc and a different one under /usr and 
>>>>> systemd is using the old one.
>>>>>
>>>>> If that is not the case, post your /etc/systemd/system/weewx.

Re: [weewx-user] Failed to update 4.10.2 to 5.0.2 with setup.py old installation

2024-04-10 Thread Juan Antonio Mosquera Casais
Ok, thanks, sorry, this step i reply N, if i reply Y>

pi@raspberrypi:/home/weewx $  source ~/weewx-venv/bin/activate
(weewx-venv) pi@raspberrypi:/home/weewx $  weectl station upgrade 
--config=/home/weewx/weewx.conf
Using configuration file /home/weewx/weewx.conf

Upgrade examples, utility files in /home/weewx (Y/n)? 
Removing example directory /home/weewx/examples
Copying examples into /home/weewx/examples
Traceback (most recent call last):
  File "/home/pi/weewx-venv/bin/weectl", line 8, in 
sys.exit(main())
  File "/home/pi/weewx-venv/lib/python3.9/site-packages/weectl.py", line 
66, in main
namespace.func(namespace)
  File 
"/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/__init__.py", 
line 121, in dispatch
namespace.action_func(config_dict, namespace)
  File 
"/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_cmd.py", 
line 333, in upgrade_station
weectllib.station_actions.station_upgrade(config_dict=config_dict,
  File 
"/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py", 
line 802, in station_upgrade
examples_dir = copy_examples(config_dict, examples_root=examples_root,
  File 
"/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py", 
line 618, in copy_examples
shutil.copytree(examples_resources, examples_dir)
  File "/usr/lib/python3.9/shutil.py", line 557, in copytree
return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
  File "/usr/lib/python3.9/shutil.py", line 458, in _copytree
os.makedirs(dst, exist_ok=dirs_exist_ok)
  File "/usr/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/weewx/examples'

Thanks.

El jueves, 11 de abril de 2024 a las 0:12:37 UTC+2, Tom Keffer escribió:

> Juan, your service file, weewx.service, looks like the old V4.10 service 
> file. The new V5.0 file has a few more entries.
>
> Double check that you did step #2: upgrade the old examples and utility 
> files. 
>
> On Wed, Apr 10, 2024 at 12:27 PM Juan Antonio Mosquera Casais <
> juan.antonio.m...@gmail.com> wrote:
>
>> pi@raspberrypi:/etc $ cat /etc/systemd/system/weewx.service
>> # systemd unit configuration file for WeeWX
>> #
>> # For information about running WeeWX under systemd,
>> # be sure to read https://github.com/weewx/weewx/wiki/systemd
>> #
>> [Unit]
>> Description=WeeWX weather system
>> Documentation=https://weewx.com/docs
>>
>> Requires=time-sync.target
>> After=time-sync.target
>> RequiresMountsFor=/home
>>
>> [Service]
>> ExecStart=/home/weewx/bin/weewxd /home/weewx/weewx.conf
>> StandardOutput=null
>> # To run as a non-root user, uncomment and set username and group here:
>> #User=weewx
>> #Group=weewx
>>
>> [Install]
>> WantedBy=multi-user.target
>>
>>
>> El miércoles, 10 de abril de 2024 a las 19:46:01 UTC+2, vince escribió:
>>
>>> Check to see if you have multiple weewx.service files on your system.  
>>> It's possible you have one under /etc and a different one under /usr and 
>>> systemd is using the old one.
>>>
>>> If that is not the case, post your /etc/systemd/system/weewx.service 
>>> file please.
>>>
>>> On Wednesday, April 10, 2024 at 10:42:39 AM UTC-7 Juan Antonio Mosquera 
>>> Casais wrote:
>>>
>>>> Thanks... but... step 4 done> 
>>>>
>>>> history
>>>>
>>>>  1323  sudo cp /home/weewx/util/systemd/weewx.service 
>>>> /etc/systemd/system
>>>>  1324  sudo systemctl daemon-reload
>>>>  1325  sudo systemctl enable weewx
>>>>  1326  sudo systemctl start weewx
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> El miércoles, 10 de abril de 2024 a las 13:16:55 UTC+2, Tom Keffer 
>>>> escribió:
>>>>
>>>>> You did not update your weewx service file, 
>>>>> /etc/systemd/system/weewx.service. This is step #4 in the instructions. 
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Apr 10, 2024 at 1:05 AM Juan Antonio Mosquera Casais <
>>>>> juan.antonio.m...@gmail.com> wrote:
>>>>>
>>>>>> Hello, I have weewx 4.10.2 installed via setup.py, and I followed the 
>>>>>> instructions at https://github.com/weewx/weewx/wiki/v5-upgrade but 
>>>>>> when trying to start the service I get this error:
>>>>>>
>>>>>> Apr 10 07:39:51 ra

Re: [weewx-user] Failed to update 4.10.2 to 5.0.2 with setup.py old installation

2024-04-10 Thread Juan Antonio Mosquera Casais
pi@raspberrypi:/etc $ cat /etc/systemd/system/weewx.service
# systemd unit configuration file for WeeWX
#
# For information about running WeeWX under systemd,
# be sure to read https://github.com/weewx/weewx/wiki/systemd
#
[Unit]
Description=WeeWX weather system
Documentation=https://weewx.com/docs

Requires=time-sync.target
After=time-sync.target
RequiresMountsFor=/home

[Service]
ExecStart=/home/weewx/bin/weewxd /home/weewx/weewx.conf
StandardOutput=null
# To run as a non-root user, uncomment and set username and group here:
#User=weewx
#Group=weewx

[Install]
WantedBy=multi-user.target


El miércoles, 10 de abril de 2024 a las 19:46:01 UTC+2, vince escribió:

> Check to see if you have multiple weewx.service files on your system. 
>  It's possible you have one under /etc and a different one under /usr and 
> systemd is using the old one.
>
> If that is not the case, post your /etc/systemd/system/weewx.service file 
> please.
>
> On Wednesday, April 10, 2024 at 10:42:39 AM UTC-7 Juan Antonio Mosquera 
> Casais wrote:
>
>> Thanks... but... step 4 done> 
>>
>> history
>>
>>  1323  sudo cp /home/weewx/util/systemd/weewx.service /etc/systemd/system
>>  1324  sudo systemctl daemon-reload
>>  1325  sudo systemctl enable weewx
>>  1326  sudo systemctl start weewx
>>
>>
>>
>>
>>
>> El miércoles, 10 de abril de 2024 a las 13:16:55 UTC+2, Tom Keffer 
>> escribió:
>>
>>> You did not update your weewx service file, 
>>> /etc/systemd/system/weewx.service. This is step #4 in the instructions. 
>>>
>>>
>>>
>>> On Wed, Apr 10, 2024 at 1:05 AM Juan Antonio Mosquera Casais <
>>> juan.antonio.m...@gmail.com> wrote:
>>>
>>>> Hello, I have weewx 4.10.2 installed via setup.py, and I followed the 
>>>> instructions at https://github.com/weewx/weewx/wiki/v5-upgrade but 
>>>> when trying to start the service I get this error:
>>>>
>>>> Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed to 
>>>> locate executable /home/weewx/bin/weewxd: No such file or directory
>>>> Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed at 
>>>> step EXEC spawning /home/weewx/bin/weewxd: No such file or directory
>>>> Apr 10 07:39:51 raspberrypi systemd[1]: Started WeeWX weather system.
>>>> Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Main process 
>>>> exited, code=exited, status=203/EXEC
>>>> Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Failed with 
>>>> result 'exit-code'.
>>>>
>>>> It is because in the instructions the bin has to be moved to bin.old, 
>>>> if I put the bin back it works, but with version 4.10.2. How can I update 
>>>> to version 5.0.2 and keep my old configuration? Thank you. 
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "weewx-user" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to weewx-user+...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/weewx-user/689f6dd3-1de9-4d6b-90b2-1c7fc0b36fc7n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/689f6dd3-1de9-4d6b-90b2-1c7fc0b36fc7n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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/ccdd2474-9966-482c-9fde-41f66891841en%40googlegroups.com.


Re: [weewx-user] Failed to update 4.10.2 to 5.0.2 with setup.py old installation

2024-04-10 Thread Juan Antonio Mosquera Casais
Thanks... but... step 4 done> 

history

 1323  sudo cp /home/weewx/util/systemd/weewx.service /etc/systemd/system
 1324  sudo systemctl daemon-reload
 1325  sudo systemctl enable weewx
 1326  sudo systemctl start weewx





El miércoles, 10 de abril de 2024 a las 13:16:55 UTC+2, Tom Keffer escribió:

> You did not update your weewx service file, 
> /etc/systemd/system/weewx.service. This is step #4 in the instructions. 
>
>
>
> On Wed, Apr 10, 2024 at 1:05 AM Juan Antonio Mosquera Casais <
> juan.antonio.m...@gmail.com> wrote:
>
>> Hello, I have weewx 4.10.2 installed via setup.py, and I followed the 
>> instructions at https://github.com/weewx/weewx/wiki/v5-upgrade but when 
>> trying to start the service I get this error:
>>
>> Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed to 
>> locate executable /home/weewx/bin/weewxd: No such file or directory
>> Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed at step 
>> EXEC spawning /home/weewx/bin/weewxd: No such file or directory
>> Apr 10 07:39:51 raspberrypi systemd[1]: Started WeeWX weather system.
>> Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Main process 
>> exited, code=exited, status=203/EXEC
>> Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>>
>> It is because in the instructions the bin has to be moved to bin.old, if 
>> I put the bin back it works, but with version 4.10.2. How can I update to 
>> version 5.0.2 and keep my old configuration? Thank you. 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/689f6dd3-1de9-4d6b-90b2-1c7fc0b36fc7n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/689f6dd3-1de9-4d6b-90b2-1c7fc0b36fc7n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/44731de8-7a3d-40c8-872b-97d99ffb7f2bn%40googlegroups.com.


[weewx-user] Update 4.10.2 to 5.0.2 failed, not start service

2024-04-10 Thread Juan Antonio Mosquera Casais
I follow this instructions https://github.com/weewx/weewx/wiki/v5-upgrade
And now, not start service:

Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed to locate 
executable /home/weewx/bin/weewxd: No such file or directory
Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed at step 
EXEC spawning /home/weewx/bin/weewxd: No such file or directory
Apr 10 07:39:51 raspberrypi systemd[1]: Started WeeWX weather system.
Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Main process exited, 
code=exited, status=203/EXEC
Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Failed with result 
'exit-code'.

Any idea?? thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/aee82965-0fe8-4bd5-9cc0-18075b8055a6n%40googlegroups.com.


[weewx-user] Failed to update 4.10.2 to 5.0.2 with setup.py old installation

2024-04-10 Thread Juan Antonio Mosquera Casais
Hello, I have weewx 4.10.2 installed via setup.py, and I followed the 
instructions at https://github.com/weewx/weewx/wiki/v5-upgrade but when 
trying to start the service I get this error:

Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed to locate 
executable /home/weewx/bin/weewxd: No such file or directory
Apr 10 07:39:51 raspberrypi systemd[1225]: weewx.service: Failed at step 
EXEC spawning /home/weewx/bin/weewxd: No such file or directory
Apr 10 07:39:51 raspberrypi systemd[1]: Started WeeWX weather system.
Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Main process exited, 
code=exited, status=203/EXEC
Apr 10 07:39:51 raspberrypi systemd[1]: weewx.service: Failed with result 
'exit-code'.

It is because in the instructions the bin has to be moved to bin.old, if I 
put the bin back it works, but with version 4.10.2. How can I update to 
version 5.0.2 and keep my old configuration? Thank you.

-- 
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/689f6dd3-1de9-4d6b-90b2-1c7fc0b36fc7n%40googlegroups.com.


Re: [weewx-user] locale FTP template and belchertown theme

2023-11-29 Thread Juan Antonio Mosquera Casais
Thanks Tom, but it doesn't work. The strange thing is that the first 
generation of the template is correct (en_US) but the second and subsequent 
ones are again es_ES, does the Belchertown configuration somehow prevail 
globally?. I don't understand how the first generation is correct.

El miércoles, 29 de noviembre de 2023 a las 18:16:51 UTC+1, Chuck Rhode 
escribió:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, 29 Nov 2023 08:34:17 -0800
> Tom Keffer  wrote:
>
> > It's a bit of a hack, but one thing you could try is to put something
> > like this at the top of a template (NOT TESTED):
>
> > #import locale
> > #locale.setlocale(locale.LC_ALL, 'es_ES')
>
> > This would set the locale. It will stay set until the next call to
> > setlocale(). Note that this will set the locale for *every* time that
> > the template is used.
>
> My understanding is that the call to locale.setlocale has global
> effect and impacts all running processes, but maybe I'm misinterpreting
> the "not thread safe" warnings. The OP seems to want to run out of two
> locales simultaneously — one for FTP and one for Belchertown. So long
> as these skins are single threaded (one being complete before the other
> begins), then each can call its own locale.setlocale. I'm not sure
> how *weewxd* runs its "services" repertoire, though.
>
> - -- 
> .. Be Seeing You,
> .. Chuck Rhode, Sheboygan, WI, USA
> .. Weather: http://LacusVeris.com/WX
> .. 31° — Wind W 13 mph
>
> -BEGIN PGP SIGNATURE-
>
> iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCZWdx/AAKCRBg2/xipKOW
> UqyOAJ4jbejtywEIrb6Q5Vwfb1fhVQVtQQCeKGNM4KanMdpiRvRoe1Hdpbs0xYo=
> =+cD5
> -END PGP SIGNATURE-
>

-- 
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/3bb21434-6de5-4ad7-ad29-6541288fb8ffn%40googlegroups.com.


[weewx-user] locale FTP template and belchertown theme

2023-11-29 Thread Juan Antonio Mosquera Casais
Hello,
I have installed the latest version of stable weewx, belchertown theme on 
Raspberry (raspbian). I have a problem with coding, I want to be able to 
generate templates like FTP with en_US coding and belchertown with es_ES 
coding (the Belchertown configuration allows it). But having installed in 
the system the two locales (en_US and es_ES) with en_US by default. When I 
start weewx, the first generation of the tmpl generates it correctly with 
en_US encoding (with dotted decimal separator) but the following 
generations of the file appear as es_ES. I don't understand what the 
problem is.
thank you

-- 
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/594953ce-dca3-4fec-a4c1-949cbb011bd1n%40googlegroups.com.