[weewx-user] upgrade 4.10 to 5.0.2

2024-04-25 Thread sali...@gmail.com
hello,
I just upgraded my version from 4.10.2 to 5.0.2; everything went well, 
performed the right operations with the user "weewx"; The hardest part was 
upgrading Buster. For the moment everything is well. I just have a problem 
displaying miles instead of kilometers in my "belchertown" skin, for 
earthquake and max speed in the "records" tab. You can see on my site. 
http://jurassikpat.ddns.net/weewx/belchertown.

thanks for the job

Patrick

-- 
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/fb5e5689-3c3f-4a16-9169-efb13f17f262n%40googlegroups.com.


Re: [weewx-user] PID file not created in version 5.0.2

2024-04-25 Thread Thomas Hackler
Hello Silke,
I added your config for weewx to my monit config file but for my case it 
doesn't work. I have the problem that sometimes my gw1000 driver didn't 
work, probalby because of wifi problems. See topic here:

https://groups.google.com/g/weewx-user/c/muxtBGJWkJs

It happened yesterday again but monit did not start weewx.

Maybe you can help me?
Regards
Thomas

silke schrieb am Samstag, 9. März 2024 um 23:54:02 UTC+1:

> I'm sorry I saw your response a bit too late after posting here! Your 
> comments were really helpful 
>
> In case there are others out there using monit, this is my new working 
> config for weewx (avoiding use of PID altogether):
>
> check program weewx with path "/usr/bin/systemctl --quiet is-active weewx"
> if status != 0 then alert
> if status != 0 then exec "/usr/bin/systemctl start weewx.service"
> if 10 restarts within 10 cycles then timeout
>
> Tom Keffer schrieb am Samstag, 9. März 2024 um 23:35:10 UTC+1:
>
>> I don't know what I can add to the comments I already made on the issues 
>> list: the --pidfile option is only used if you use the --daemon option.
>>
>> On Sat, Mar 9, 2024 at 2:19 PM silke  wrote:
>>
>>> Hello,
>>>
>>> I recently made the switch to v5 and overall the migration was working 
>>> quite smoothly, despite running many extensions and skins. I'm on Ubuntu 
>>> and use DEB installation.
>>>
>>> The one thing that is not working yet is my weewx process health 
>>> monitoring which is based on PID file. I cannot get weewx to create a PID 
>>> file whatever I try. (in v4 this worked out of the box)
>>>
>>> I'm adding the --pidfile option to the systemd file, and it shows 
>>> correctly in the process list:
>>>
>>> weewx 941451 51.1  8.7 1921212 1415068 ? Ssl  23:00   3:23 
>>> python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf --pidfile 
>>> /run/weewx/weewx.pid
>>>
>>> the folder /run/weewx is owned by weewx:weewx 
>>>
>>> silke@enterprise:/etc/weewx$ ls -la /run/weewx/
>>> total 0
>>> drwxrwxr-x  2 weewx weewx   40 Mär  9 23:00 .
>>> drwxr-xr-x 50 root  root  1420 Mär  9 23:00 ..
>>>
>>> but still, no file is getting created upon restart.
>>>
>>> Anyone having an idea what I'm doing wrong?
>>>
>>> Thanks a lot, Silke
>>>
>>> -- 
>>> 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/fb454ef9-ae53-4211-bf15-283bd067c567n%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/95e8effe-4eba-4078-8d0a-22a0b79ca9e8n%40googlegroups.com.


Re: [weewx-user] formatting MQTT message sensor lenght

2024-04-25 Thread Charlie Fortner
On Wed, Apr 24, 2024, at 16:15, miso k wrote
> I want to export MQTT messages to Home Assistant, but the numbers are too 
> long.
> How can I make them shorter?

I wouldn't do this with weewx, better to make the change in how Home Assistant 
displays the number. Via the GUI, find the device and change it's display 
precision settings. Here's an example:




Charlie

PS Sorry for the Home Assistant aside

-- 
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/f8b389a8-3d3b-4982-9967-1cd04a041190%40app.fastmail.com.


Re: [weewx-user] formatting MQTT message sensor lenght

2024-04-25 Thread Warren Gill
Similarly I modify the sensors in home assistant with YAML:


#  Sensors

mqtt:
  sensor:
- name: weewx_datetime
  state_topic: "weather/loop"
  value_template: |-
{% if value_json.dateTime is defined  %}
  {{ value_json.dateTime | float }}
{% endif %}

- name: weewx_temperature
  state_topic: "weather/loop"
  unit_of_measurement: "°F"
  value_template: |-
{% if value_json.outTemp_F is defined  %}
  {{ value_json.outTemp_F | round(1) }}
{% endif %}


On Thu, Apr 25, 2024 at 8:53 AM Charlie Fortner  wrote:

> On Wed, Apr 24, 2024, at 16:15, miso k wrote
>
> I want to export MQTT messages to Home Assistant, but the numbers are too
> long.
> How can I make them shorter?
>
>
> I wouldn't do this with weewx, better to make the change in how Home
> Assistant displays the number. Via the GUI, find the device and change it's
> display precision settings. Here's an example:
>
>
>
>
> Charlie
>
> PS Sorry for the Home Assistant aside
>
> --
> 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/f8b389a8-3d3b-4982-9967-1cd04a041190%40app.fastmail.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/CA%2Bz%2BvD5mKgWSn%2BoQYv%3DtUAJf1yCMBC8%2BjrOhCG428_mzK-bo4A%40mail.gmail.com.


[weewx-user] Problem switching from weewx 4.x -> 5.X

2024-04-25 Thread Remy Lavabre
Good morning,

My configuration under weewx 4.10.2 works perfectly with a custom driver.

I'm "desperately" trying to upgrade to weewx 5 under virtual environment.

-> Configuration with the basic driver simulating the data works ok.
-> When I try with my driver, I get the following response:































*(weewx-venv) ---@server:~/weewx-data $ weewxdTraceback (most recent call 
last):  File "/home//weewx-venv/bin/weewxd", line 8, in 
sys.exit(main()) ^^  File 
"/home//weewx-venv/lib/python3.11/site-packages/weewxd.py", line 160, 
in mainengine = weewx.engine.StdEngine(config_dict)
 ^^^  File 
"/home//weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line 
89, in __init__self.loadServices(config_dict)  File 
"/home//weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line 
157, in loadServicesobj = weeutil.weeutil.get_object(svc)(self, 
config_dict)  ^^^  File 
"/home//weewx-venv/lib/python3.11/site-packages/weeutil/weeutil.py", 
line 1404, in get_objectmodule = importlib.import_module(module_name)  
     File 
"/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)  
   File "", line 1206, in _gcd_import  File "", line 1178, in _find_and_load  File "", line 1128, in _find_and_load_unlocked  File 
"", line 241, in _call_with_frames_removed  
File "", line 1206, in _gcd_import  File 
"", line 1178, in _find_and_load  File 
"", line 1128, in _find_and_load_unlocked  
File "", line 241, in 
_call_with_frames_removed  File "", line 1206, 
in _gcd_import  File "", line 1178, in 
_find_and_load  File "", line 1142, in 
_find_and_load_unlockedModuleNotFoundError: No module named 'bin'*

What is the problem ??

-- 
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/909b9a5c-952a-4846-9910-458aaec91616n%40googlegroups.com.


Re: [weewx-user] Problem switching from weewx 4.x -> 5.X

2024-04-25 Thread Tom Keffer
With a pip install, any user modules are normally located in
~/weewx-data/bin/user.

You didn't post a copy of the log, but I suspect somewhere in your
configuration file weewx.conf you have a reference to an extension as
"bin.user.something" instead of "user.something". Take a look.

If you can't find it, use the tool weectl debug
 to post a copy of
your configuration file. Be sure to also set debug=1, restart, then post a
copy of the log. It will have important startup clues.


On Thu, Apr 25, 2024 at 8:30 AM Remy Lavabre  wrote:

> Good morning,
>
> My configuration under weewx 4.10.2 works perfectly with a custom driver.
>
> I'm "desperately" trying to upgrade to weewx 5 under virtual environment.
>
> -> Configuration with the basic driver simulating the data works ok.
> -> When I try with my driver, I get the following response:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *(weewx-venv) ---@server:~/weewx-data $ weewxdTraceback (most recent call
> last):  File "/home//weewx-venv/bin/weewxd", line 8, in 
> sys.exit(main()) ^^  File
> "/home//weewx-venv/lib/python3.11/site-packages/weewxd.py", line 160,
> in mainengine = weewx.engine.StdEngine(config_dict)
>  ^^^  File
> "/home//weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line
> 89, in __init__self.loadServices(config_dict)  File
> "/home//weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line
> 157, in loadServicesobj = weeutil.weeutil.get_object(svc)(self,
> config_dict)  ^^^  File
> "/home//weewx-venv/lib/python3.11/site-packages/weeutil/weeutil.py",
> line 1404, in get_objectmodule = importlib.import_module(module_name)
>  File
> "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>    File " importlib._bootstrap>", line 1206, in _gcd_import  File " importlib._bootstrap>", line 1178, in _find_and_load  File " importlib._bootstrap>", line 1128, in _find_and_load_unlocked  File
> "", line 241, in _call_with_frames_removed
> File "", line 1206, in _gcd_import  File
> "", line 1178, in _find_and_load  File
> "", line 1128, in _find_and_load_unlocked
> File "", line 241, in
> _call_with_frames_removed  File "", line 1206,
> in _gcd_import  File "", line 1178, in
> _find_and_load  File "", line 1142, in
> _find_and_load_unlockedModuleNotFoundError: No module named 'bin'*
>
> What is the problem ??
>
> --
> 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/909b9a5c-952a-4846-9910-458aaec91616n%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/CAPq0zEAhbUmyp3i0NMWfJ_SUyugOpNT6N83Zp%3D-8U-hYCpna9w%40mail.gmail.com.


Re: [weewx-user] Problem switching from weewx 4.x -> 5.X

2024-04-25 Thread Remy LAVABRE
Yes solved !
Thank-you Tom, there was a bin.x forgotten in the [engine] [[service]]
section of weewx.conf... :-((

*Rémy LAVABRE*


Le jeu. 25 avr. 2024 à 17:37, Tom Keffer  a écrit :

> With a pip install, any user modules are normally located in
> ~/weewx-data/bin/user.
>
> You didn't post a copy of the log, but I suspect somewhere in your
> configuration file weewx.conf you have a reference to an extension as
> "bin.user.something" instead of "user.something". Take a look.
>
> If you can't find it, use the tool weectl debug
>  to post a copy
> of your configuration file. Be sure to also set debug=1, restart, then post
> a copy of the log. It will have important startup clues.
>
>
> On Thu, Apr 25, 2024 at 8:30 AM Remy Lavabre 
> wrote:
>
>> Good morning,
>>
>> My configuration under weewx 4.10.2 works perfectly with a custom driver.
>>
>> I'm "desperately" trying to upgrade to weewx 5 under virtual environment.
>>
>> -> Configuration with the basic driver simulating the data works ok.
>> -> When I try with my driver, I get the following response:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *(weewx-venv) ---@server:~/weewx-data $ weewxdTraceback (most recent call
>> last):  File "/home//weewx-venv/bin/weewxd", line 8, in 
>> sys.exit(main()) ^^  File
>> "/home//weewx-venv/lib/python3.11/site-packages/weewxd.py", line 160,
>> in mainengine = weewx.engine.StdEngine(config_dict)
>>  ^^^  File
>> "/home//weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line
>> 89, in __init__self.loadServices(config_dict)  File
>> "/home//weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line
>> 157, in loadServicesobj = weeutil.weeutil.get_object(svc)(self,
>> config_dict)  ^^^  File
>> "/home//weewx-venv/lib/python3.11/site-packages/weeutil/weeutil.py",
>> line 1404, in get_objectmodule = importlib.import_module(module_name)
>>  File
>> "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>    File "> importlib._bootstrap>", line 1206, in _gcd_import  File "> importlib._bootstrap>", line 1178, in _find_and_load  File "> importlib._bootstrap>", line 1128, in _find_and_load_unlocked  File
>> "", line 241, in _call_with_frames_removed
>> File "", line 1206, in _gcd_import  File
>> "", line 1178, in _find_and_load  File
>> "", line 1128, in _find_and_load_unlocked
>> File "", line 241, in
>> _call_with_frames_removed  File "", line 1206,
>> in _gcd_import  File "", line 1178, in
>> _find_and_load  File "", line 1142, in
>> _find_and_load_unlockedModuleNotFoundError: No module named 'bin'*
>>
>> What is the problem ??
>>
>> --
>> 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/909b9a5c-952a-4846-9910-458aaec91616n%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/CAPq0zEAhbUmyp3i0NMWfJ_SUyugOpNT6N83Zp%3D-8U-hYCpna9w%40mail.gmail.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/CADhm9YfduD1Wwt8cHhufFfQdrtu5QdQqzgXWojr2GZ8DEW107w%40mail.gmail.com.