[weewx-user] Google Analytics 4 replacement of UA

2021-07-21 Thread jon.bar...@gmail.com
Hi Guys,

Im replacing my Google Analytics UA tag in Weewx - If I just replace the 
Property in the STDReport - is that all I need to do ?  how does Weewx know 
the script is different ?

-- 
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/7a08e5c7-7292-4b90-bc2e-0d26498605c9n%40googlegroups.com.


[weewx-user] Re: Advice on replacement WxStn

2021-12-28 Thread jon.bar...@gmail.com
Hey Nick,
Been in the same situation a year ago, when my old Maplin device failed 
(they do so every ten years or so!)
After much searching I went with a simple Bresser 5 in 1 - which if you 
search around is at reasonable prices.  
Make sure its the  BRESSER 7002571 model which has USB
Weewx interface is  WS6in1 which will need a line or two of 
configuring...(see other posts in this group on this).

Best of luck !

On Tuesday, 28 December 2021 at 10:08:58 UTC nickg...@gmail.com wrote:

>  but ...>
>
> Afternoon to all the collective wisdom here,
>
> The current WxStn (a WH3080 - by froggit, but seems ot be a fine offset)
> is playing silly beggars!
>
> The console is not displaying temp/humidity not wind, but is showing luc
> & UV and Weewx reckons it is either not there or disconnected
>
> 
> ERROR weewx.drivers.fousb: get_observations failed: [Errno 19] No such
> device (it may have been disconnected)
> 
>
> and/or
>
> 
> INFO weewx.drivers.fousb: station status {'unknown': 0, 'lost_connection': 
> 64, 'rain_overflow': 0} (64)
> 
>
> The usual dance of power cycling the console results in no change.
>
> A couple of week ago it did it and I went on the roof and changed the
> batteries, pressed reset and it sill did not work, so back up - take it
> all down, dry (it was not really wet) clean with alcohol and put back -
> still nothing.
>
> I then gave up, powered down the console & stopped Weewx, about 24hrs
> later restarted everything and it worked ...
>
> I've just repeated the dance and nothing ...
>
> Thus the questions
>
> a) any ideas?
>
> b) replace but with what? Thought about a GW1000 based like
>
> <
> https://www.amazon.co.uk/Wireless-Weather-Station-WeatherSleuth%C2%AE-Professional/dp/B00ZVFZUS6/ref=sr_1_23?crid=TG5JW32AXSSY&keywords=ecowitt+gw1002&qid=1640614990&sprefix=gw1002%2Caps%2C161&sr=8-23
> >
> or
> <
> https://www.amazon.co.uk/Ecowitt-Wireless-Weather-Station-Built/dp/B0991GVBYK/ref=sr_1_2?crid=TG5JW32AXSSY&keywords=ecowitt+gw1002&qid=1640614990&sprefix=gw1002%2Caps%2C161&sr=8-2
> >
>
> Thoughts, ideas, suggestions ...
>
> Many thanks
>
> Happy seasonal things etc. & stay safe
>
> Nick
> M0HGU
>
>
> -- 
> Mrs. Nugent was the Johnson's next door neighbour, and known to be 
> unreasonable on subjects like Madonna played at full volume at 3 a.m.
> (Johnny and the Dead) Tue 10346 Sep 10:00:01 GMT 1993
> 10:00:01 up 15 days, 23:28, 6 users, load average: 0.79, 0.71, 0.69
>
>
>

-- 
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/f39d80cb-473a-4878-80ae-becd1dd68d0cn%40googlegroups.com.


Re: [weewx-user] working weewx 4.5.1 - errors after Ubuntu OS update

2021-12-31 Thread jon.bar...@gmail.com
Eric - Im using weewx on a rPi zero with old Rasbian (I cant be bothered to 
reinstall/upgrade the OS) - and I installed the weewx mqtt report yesterday 
(after seeing this thread that there is a way for weewx to publish mqtt).
I managed to get it to work - but my system is using python 2.7 - even 
though my pi has 2 and 3 installed.  I had to install the python2 paho-mqtt 
via pip.
A couple of suggestions for you though :
- double check the Ubuntu hasnt upgraded from python2 to 3 as the default - 
and theres no harm in installing paho-mqtt for both IMO.
- I vaguely remember (not certain though) that recent MQTT mosquito brokers 
no longer allow anonymous clients (Im using MQTT on Home Assistant)
- Use MQTT Explorer to double check if the mqtt messages are getting to the 
broker.

hopefully a few things to try
On Friday, 31 December 2021 at 04:40:09 UTC Eric K wrote:

> I forgot to post this:
> weewx@Ubuntu20-WEEWX:~$ python3 -c "import 
> paho.mqtt.client;print(paho.mqtt.client.__file__)"
> /usr/lib/python3/dist-packages/paho/mqtt/client.py
>
> On Thursday, December 30, 2021 at 10:38:58 PM UTC-6 Eric K wrote:
>
>> Simply reinstalling python3-paho-mqtt has not fixed the system.
>>
>> I tried the mosquitto_sub command and mosquitto refused the connection.
>> weewx@Ubuntu20-WEEWX:~$ mosquitto_sub -h 192.168.7.22 -p 1883 -t 
>> tele/BMP280/SENSOR -d
>> Error: Connection refused
>>
>> I've got mosquitto.conf set to accpet anymous logins:
>> protocol mqtt
>> port 1883
>> allow_anonymous true
>>
>> and I've got weewx.conf set for:
>> [MQTTSubscribeService]
>> enable = true
>> host = localhost
>> port = 1883
>> keepalive = 60
>> username = None
>> password = None
>>
>> I tried to manually force mosquitto to start - NO-GO.
>> I followed the instructions to get some debug info.
>>
>> weewx@Ubuntu20-WEEWX:~$ sudo systemctl start mosquitto
>> Job for mosquitto.service failed because the control process exited with 
>> error code.
>> See "systemctl status mosquitto.service" and "journalctl -xe" for details.
>>
>> weewx@Ubuntu20-WEEWX:~$ systemctl status mosquitto.service
>> ● mosquitto.service - Mosquitto MQTT Broker
>>  Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; 
>> vendor preset: enabled)
>>  Active: failed (Result: exit-code) since Thu 2021-12-30 22:23:26 
>> CST; 3min 56s ago
>>Docs: man:mosquitto.conf(5)
>>  man:mosquitto(8)
>> Process: 2797 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto 
>> (code=exited, status=0/SUCCESS)
>> Process: 2798 ExecStartPre=/bin/chown mosquitto: /var/log/mosquitto 
>> (code=exited, status=0/SUCCESS)
>> Process: 2799 ExecStartPre=/bin/mkdir -m 740 -p /var/run/mosquitto 
>> (code=exited, status=0/SUCCESS)
>> Process: 2800 ExecStartPre=/bin/chown mosquitto: /var/run/mosquitto 
>> (code=exited, status=0/SUCCESS)
>> Process: 2801 ExecStart=/usr/sbin/mosquitto -c 
>> /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE)
>>Main PID: 2801 (code=exited, status=1/FAILURE)
>>
>> I'm not sure how many of weewx's dependencies have to be reinstalled?
>>
>> On Wednesday, December 29, 2021 at 10:36:37 AM UTC-6 vince wrote:
>>
>>> On Tuesday, December 28, 2021 at 7:45:22 PM UTC-8 Eric K wrote:
>>>
 After re-installing python3-paho-mqtt into Ubuntu 21.04 with "sudo 
 apt-get install python3-paho-mqtt"
 /usr/local/lib/python3.9/dist-packages/ is empty
 I'm not sure where the reinstalled python3-paho-mqtt files got 
 installed?
 Back in /usr/local/lib/python3.8/dist-packages/ ?

>>>
>>> Does it really matter as long as it works ?
>>>
>>> As I mentioned earlier, if you use pip it goes under /usr/local/lib, but 
>>> if you use apt then it goes under /usr/lib.
>>>
>>> But it doesn't really matter.  Just go with it.  It works.
>>>
>>>

-- 
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/1bce9555-7304-4f0b-8ab1-4c1aa4547178n%40googlegroups.com.


Re: [weewx-user] working weewx 4.5.1 - errors after Ubuntu OS update

2022-01-01 Thread jon.bar...@gmail.com
Eric,

In one of your posts above, the mosquito broker says it has a connection 
from a client...and given you're running this in a single VM, that must be 
a client on that machine.
Im struggling to understand why you would want a MQTT broker on the same VM 
as weewx ...when it only needs the client.  as weewx doesnt respond to mqtt 
messages/commands (someone will correct me if Im wrong) - maybe you dont 
need mqtt at all ?
I suggest you test wether the weewx client is working (publishing) by using 
one of the public MQTT brokers such as test.moquito.org (and monitor your 
messages via mqtt explorer.
If you're running the broker in the same vm as weewx, then you must have 
other mqtt devices (clients)...do they work ?
I agree with Vince...and Im starting to lose the plot over what you're 
trying to acheive


On Friday, 31 December 2021 at 23:47:59 UTC vince wrote:

> Work your mosquitto broker problem and that only.
> Test with mosquitto_sub and mosquitto_pub and get that to work first.
> Once that works, try to get weewx to subscribe.
>
> Try removing any previous garbage your earlier attempts might have put 
> into /run.
>
> sudo rm -r /run/mosquitto
> sudo systemctl start mosquitto
>
> On my ubuntu 21.10 vm permissions look like:
>
> root@ubuntu-focal:/run# ls -lagd /run/mosquitto
> drwxr- 2 root 60 Dec 31 23:42 /run/mosquitto
>
> root@ubuntu-focal:/run# ls -lagd /run/mosquitto/*
> -rw-r--r-- 1 mosquitto 4 Dec 31 23:42 /run/mosquitto/mosquitto.pid
>
> On Friday, December 31, 2021 at 2:36:19 PM UTC-8 Eric K wrote:
>
>> No, its not working.  
>> Running the commands with sudo still failed to generate a pid file.
>> Running with the default config allowed mosquitto to start and 
>> MQTTSubscribe tried to connect but it disconnected after 5 seconds.
>>
>> When I started weewx and forced wee_reports to run, it bomed out with 
>> many errors including MQTTSubscribe errors.
>> I suspect because it couldn't connect to mosquitto.
>>
>> Since the mosquitto command changed from "port" to "listener", do I have 
>> to change the MQTTSubscribe section of weewx.conf so it calls out "listener 
>> = 1883" rather than "port = 1883"?
>>
>>
>> On Friday, December 31, 2021 at 4:20:01 PM UTC-6 vince wrote:
>>
>>> So is it working ?  Not working ?
>>> We can't read minds and your followups are rather cryptic.
>>>
>>> Is there any mosquitto process running ?
>>> If so stop it and try again with 'sudo systemctl start mosquitto' 
>>>
>>> If you want to try to run mosquitto in the foreground to debug it, add 
>>> the -v switch to make it verbose, and remember to use sudo
>>>
>>>

-- 
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/c129d109-e71b-4884-98e3-cce7b62f0a1en%40googlegroups.com.


[weewx-user] Re: Support for UK Met Office WOW

2025-05-04 Thread jon.bar...@gmail.com
Guys - I know a pretty old thread...but I recently had my MET account 
upgraded to the new MET office WOW.

Although I migrated my account, I had not connected Weewx to it. so now Im 
doing so.
the account migrated fine, and I had to 'create a site' - which I did.  I 
see there is a long unique ID for the site itself ) like 
(c58da0c0-0729-f021-9d47-6027bddefb8a) 
-  I just created it
but where do I find the 'password' - or as descirbed in the Weewx docs the 
'six digit numerical pin' - as I dont see this in the site...the only other 
thing I see is a 'user id' (similar format to the long unique site Id) - 
but using that, weewv complains...

Any advice ?



On Sunday, 24 January 2016 at 21:54:07 UTC John Devine wrote:

> I just setup an account at WOW and installed weewx tonight and enabled the 
> relevant section in weewx.conf and it just worked with sample data
>
> JD
>
>
> On Monday, January 14, 2013 at 6:25:30 PM UTC, Alan Major wrote:
>>
>> Tom
>>
>> Do you have any plans to add support for submitting observations to the 
>> UK Met Office Weather Observations Website? Not sure how many users you 
>> have got this side of the pond!
>>
>> They give guidance here 
>>  but I am not 
>> sure how I would go about set that up it in weewx. Is it something that 
>> could be easily done? Has anyone done it so far?
>>
>> Alan Major
>> Birdham, UK
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/97fb053b-ba2f-468b-9ac8-d6e986465c66n%40googlegroups.com.


Re: [weewx-user] Re: Support for UK Met Office WOW

2025-05-05 Thread jon.bar...@gmail.com
Thanks Jimi - I had read the Weewx materials
but yes, it was an oversight on my part...when creating ...or editting a 
Met Office WOW site, it now asks for 'authentication key' as one of the 
many fields to setup the site itself.
I had obviously had a brain freeze during once setup - and couldnt see that 
field unless going into the 'edit' for the site.

One change to the Weewx docs though: the key is no longer a six digit pin 
(which probably contributed to my brain freeze on the topic) and you can 
enter any text you want as a key.
My site is now up and puslishing to MET via the migrated WOW account I have 
!

Jon.
PS Weewx is still the greatest software ! it just keeps giving and giving !

On Sunday, 4 May 2025 at 22:56:31 UTC+1 Jimi Lawson wrote:

> The password is called an Authentication Key in WOW. You create it 
> yourself in WOW by logging into your site then select edit site,  you add a 
> key in there.
> "WOW provides a simple API for you to automatically upload data into WOW. 
> The easiest solution for most users is to use a piece of software that 
> supports this API, and some of these are listed below. If you would prefer 
> not to use these or are writing your own, please see the details further 
> down the page about the API. 
>
> Before you attempt to upload you will need 2 numbers. The first is your 
> Site ID. This is an arbitrary number that is used to distinguish your site 
> from another. This number appears (in brackets) next to or underneath the 
> name of your site on the site information page, for example (956916003) for 
> pre-June 2016 sites or (6a571450-df53-e611-9401-0003ff5987fd) 
>
> The second item you require is the Authentication Key. This is a 6 digit 
> number that is used to ensure data is coming from you and not another user. 
> If you do not know (or have not created) the Authentication Key, go to the 
> Edit pages of any site you own and the value is an option under the Site 
> Details section. Create and enter a 6-digit numeric PIN of your choice (it 
> is not supplied by the kit manufacturer). The Authentication Key may also 
> be referred to as the 'AWS Pin'. 
>
> You must take note of both these numbers before continuing, otherwise you 
> will not be able to upload weather data to WOW. "
> Regards
> Jimi
>
> On Sun, 4 May 2025, 6:14 pm jon.bar...@gmail.com,  
> wrote:
>
>> Guys - I know a pretty old thread...but I recently had my MET account 
>> upgraded to the new MET office WOW.
>>
>> Although I migrated my account, I had not connected Weewx to it. so now 
>> Im doing so.
>> the account migrated fine, and I had to 'create a site' - which I did.  I 
>> see there is a long unique ID for the site itself ) like 
>> (c58da0c0-0729-f021-9d47-6027bddefb8a) 
>> -  I just created it
>> but where do I find the 'password' - or as descirbed in the Weewx docs 
>> the 'six digit numerical pin' - as I dont see this in the site...the only 
>> other thing I see is a 'user id' (similar format to the long unique site 
>> Id) - but using that, weewv complains...
>>
>> Any advice ?
>>
>>
>>
>> On Sunday, 24 January 2016 at 21:54:07 UTC John Devine wrote:
>>
>>> I just setup an account at WOW and installed weewx tonight and enabled 
>>> the relevant section in weewx.conf and it just worked with sample data
>>>
>>> JD
>>>
>>>
>>> On Monday, January 14, 2013 at 6:25:30 PM UTC, Alan Major wrote:
>>>>
>>>> Tom
>>>>
>>>> Do you have any plans to add support for submitting observations to the 
>>>> UK Met Office Weather Observations Website? Not sure how many users you 
>>>> have got this side of the pond!
>>>>
>>>> They give guidance here 
>>>> <http://wow.metoffice.gov.uk/support?category=dataformats> but I am 
>>>> not sure how I would go about set that up it in weewx. Is it something 
>>>> that 
>>>> could be easily done? Has anyone done it so far?
>>>>
>>>> Alan Major
>>>> Birdham, UK
>>>>
>>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>>
> To view this discussion visit 
>> https://groups.google.com/d/msgid/weewx-user/97fb053b-ba2f-468b-9ac8-d6e986465c66n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/97fb053b-ba2f-468b-9ac8-d6e986465c66n%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 visit 
https://groups.google.com/d/msgid/weewx-user/55e74958-7336-43d0-9fb1-c64fb341bd69n%40googlegroups.com.