[weewx-user] Re: WS28xx USB pairing issue

2023-01-11 Thread jschoonh
I knew no other solution than to rape the HP thin client with a windows 
operating system I had long forgotten. That worked! Then quickly installed 
Linux again.

Op maandag 9 januari 2023 om 18:28:56 UTC+1 schreef jschoonh:

> Is there anyone who can point me in the right direction please?
>
> I have tried to read the ws-28xx driver and now I understand a bit about 
> the US or EU frequency. But I do not understand that EU is read with base 
> frequency: 86830, after reading the USB dongle requency correction: 
> 95368 is found. (I think I also understand that each dongle has its own 
> frequency?) But then adjusted frequency: suddenly 910573909? Where does 
> that come from? That looks more like a US base of 90500 and then 
> corrected. Although that is also more than the 95368.
> I'm stuck at the moment, just like last time, I can't get Weewx to work. 
> Last time a rain issue that could not be solved.
>
> Op vrijdag 6 januari 2023 om 22:01:17 UTC+1 schreef jschoonh:
>
>> I'm trying to make a new start but this time in the Netherlands.
>> Bought a WS 2818 and commissioned it without any problems.
>> A thin client t620 with a small linux mint that works fine and is 
>> connected to the internet.
>> But the USB dongle won't pair with the console.
>> Temporarily installed weewx on a laptop with the console right next to 
>> it. But with the same results.
>> The USB dongle is seen, the console shows "PC" after pressing "V".
>> What I don't understand why the frequency is changed from 86830 to 
>> 910573909 ? could that be the problem?
>> Here below the printout of the laptop's terminal and part of the syslog.
>> Can anyone give me any suggestions?
>>
>>  
>>
>> sudo wee_device --pair
>>
>> Using configuration file /etc/weewx/weewx.conf
>>
>> Using WS28xx driver version 0.51 (weewx.drivers.ws28xx)
>>
>> Pairing transceiver with console...
>>
>> Press and hold the [v] key until "PC" appears (attempt 1 of 3)
>>
>> Press and hold the [v] key until "PC" appears (attempt 2 of 3)
>>
>> Press and hold the [v] key until "PC" appears (attempt 3 of 3)
>>
>> Transceiver not paired to console.
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: driver version is 0.51
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: frequency is EU
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: found transceiver at bus= device=
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: manufacturer: b'LA CROSSE TECHNOLOGY'
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: product: b'Weather Direct Light Wireless Device'
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: interface: 0
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: base frequency: 86830
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: frequency correction: 95368 (0x17488)
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: adjusted frequency: 910573909 (0x36464155)
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: transceiver identifier: 256 (0x0100)
>>
>> Jan 6 21:40:36 jjs-SATELLITE-PRO-A50-C wee_device[84881] INFO 
>> weewx.drivers.ws28xx: transceiver serial: 01022206180100
>>
>

-- 
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/40d534ce-b7f0-434d-883b-b6f39a8bbe0cn%40googlegroups.com.


[weewx-user] mysql weewx - troublesome interval column

2023-01-11 Thread James Runser
I'm trying to insert water temperature data from a different monitor stack 
and am flummoxed by the interval column. Any attempt to interact with 
interval fails. What gives here? 

A simple example:
MariaDB [weewx]> select count(dateTime) from archive;
+-+
| count(dateTime) |
+-+
|   14200 |
+-+
1 row in set (0.019 sec)

MariaDB [weewx]> select count(interval) from archive;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual 
that corresponds to your MariaDB server version for the right syntax to use 
near ') from archive' at line 1
MariaDB [weewx]> select count(usUnits) from archive;
++
| count(usUnits) |
++
|  14200 |
++
1 row in set (0.019 sec)


-- 
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/8c66cd5c-104d-4845-a036-95f319543a46n%40googlegroups.com.


[weewx-user] Re: mysql weewx - troublesome interval column

2023-01-11 Thread James Runser
Whoops! Figured it out - interval is a reserved word in mysql - "interval" 
instead of interval works nicely. Sorry for the trouble.

On Wednesday, January 11, 2023 at 4:38:00 PM UTC-5 James Runser wrote:

> I'm trying to insert water temperature data from a different monitor stack 
> and am flummoxed by the interval column. Any attempt to interact with 
> interval fails. What gives here? 
>
> A simple example:
> MariaDB [weewx]> select count(dateTime) from archive;
> +-+
> | count(dateTime) |
> +-+
> |   14200 |
> +-+
> 1 row in set (0.019 sec)
>
> MariaDB [weewx]> select count(interval) from archive;
> ERROR 1064 (42000): You have an error in your SQL syntax; check the manual 
> that corresponds to your MariaDB server version for the right syntax to use 
> near ') from archive' at line 1
> MariaDB [weewx]> select count(usUnits) from archive;
> ++
> | count(usUnits) |
> ++
> |  14200 |
> ++
> 1 row in set (0.019 sec)
>
>
>

-- 
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/b561df8d-abb5-4c36-b900-13f59a91d635n%40googlegroups.com.


Re: [weewx-user] Re: weewx server?

2023-01-11 Thread Vetti52
Well, the original question was, how to see weewx from a public ip. I must 
confess, that I did not think about security issues and just did it this 
way:
I used a IPv6 only DNS from dynv6.com. So I could readily access 
http://raspbee.example.dynv6.net:8000/weewx/index.html from outside. So 
far, I have never observed any intrusion or hack or what ever since more 
than a year running. 

But currently I doubt, that this is a trustful solution. In order to 
replace http by https, I have installed a letsencrypt solution using 
dehydrated plus a dynv6 specific hook, which updates the pem files. I have 
tested it with my home-assistant setup, which works pretty fine.
So, I thought,  when https://raspbee.example.dynv6.net:8123 works,  
https://raspbee.example.dynv6.net:8000/weewx/index.html should work also.
I tried to edit /etc/lighttpd.conf according to some prescription, I found 
in the net. But, it failed because port 443 is already in use. I thought, 
this would be an IPv4 related problem and looked for another conf file with 
repsect to IPv6 at https://blog.mro.name/2022/04/lighttpd-ipv6/. Of Course, 
I adopted the paths to my conditions. But, unfortunately I still get the 
error message

source: /etc/lighttpd/conf-available/12-tls-dehydrated.sh line: 1 pos: 9 
parser failed somehow near here: [

which has no meaning for me. Yes, I am dumb concerning https.
I am afraid, that I will have to go manually through all the ssl specific 
entries in lighttpd configuration to let it work. May be, there is someone, 
that could guide me.

Thanks
Peter

kb3...@gmail.com schrieb am Samstag, 7. Januar 2023 um 10:45:45 UTC+1:

> I have a couple domain names from google domains for the couple websites I 
> have.  The raspberry pi just runs weewx to upload my weather station to 
> some of the options on there and the pi also has a broadcastify scanner 
> feed that I have on there.   
>
> On Friday, January 6, 2023 at 8:25:18 AM UTC-5 Cameron D wrote:
>
>> Are you saying that you have a registered domain name (and that is as far 
>> as you have gone), or that you have a web server that is already 
>> successfully serving other pages to the public internet? 
>>  What exactly is that raspberry pi doing?  If it is serving web pages, is 
>> it the same machine that is running weewx?
>>
>> On Friday, 6 January 2023 at 6:35:21 pm UTC+10 kb3...@gmail.com wrote:
>>
>>> Lots of info.  Thanks.  I  have a website domain already and use a 
>>> raspberry pi for this.  I apparently just can't seem to get it to show 
>>> other than on the local network.  
>>>
>>> On Thursday, January 5, 2023 at 12:13:20 PM UTC-5 pannetron wrote:
>>>
 If you host a public website from a personal Linux server, as I do, 
 look into using fail2ban as a way to detect and block some bad actor bots. 
  
 My implementation currently has about 2500 IPs blocked because they were 
 looking for typical webserver security flaws.

 On Wednesday, January 4, 2023 at 11:11:49 AM UTC-7 
 do...@dougjenkins.com wrote:

> Glad some of you find this useful.
>
> I have been using this method since it came out this summer (July 
> 2022). I run my infrastructure (Web Server, WeeWX, MQTT, MariaDB) as 
> containers in one stack in its own network all in Docker. I do this to 
> limit what the cloudflare tunnel can access on my network (just WeeWx 
> stuff). All of this works in docker in one stack and one YAML file!
>
> Like Tom Lawerence mentioned in the video I attached, you have to put 
> Cloudflare in your "circle of trust" as you are depending on them for 
> both 
> the client and server/edge side of the tunnel. You have to make that 
> determination on your own if you are comfortable with that.
>
> As other methods mentioned here, they are all great alternatives. I 
> was not aware adafriut offered a dashboard to present your data. That can 
> be a good alternative than going through the hassle of hosting a full 
> website for your station.
>
> If I get a free moment in a few weeks, I can post a step-by-step 
> article on onboarding your WeeWX weather station as a public website 
> using 
> Cloudflare. I think it can help a lot of users who struggle with the 
> network & security setup.
>
> DDJ
>
> On Wed, Jan 4, 2023 at 12:49 PM vince  wrote:
>
>> On Tuesday, January 3, 2023 at 6:41:01 PM UTC-8 do...@dougjenkins.com 
>> wrote:
>>
>>> If you are willing to roll up your sleeves and get technical, 
>>> serving your website at home can be done safely and securely without 
>>> changing your firewall. There are some steps to do, but at the end it 
>>> will 
>>> save you money and it will give you some real-world IT experience.
>>>
>>>
>> Very cool - thanks for the pointer to the video.  I hadn't previously 
>> figured out the Zero Trust terminology enough to try the tunnel stuff. 
>>>

[weewx-user] CWOP Connection Failure Error -3 name resolution failure

2023-01-11 Thread William Lucid
CWOP has been working up until a day or two ago, noted there were no 
reports those days for 24 hours when I checked CWOP reports .


Jan 11 15:40:45 raspberrypi weewx[590] DEBUG user.interceptor: empty queue
Jan 11 15:40:45 raspberrypi weewx[590] DEBUG weewx.restx: CWOP: Attempt 2 
to cwop.aprs.net:14580. Connection error: [Errno -3] Temporary failure in 
name resolution
Jan 11 15:40:55 raspberrypi weewx[590] DEBUG user.interceptor: empty queue
Jan 11 15:40:55 raspberrypi weewx[590] DEBUG weewx.restx: CWOP: Attempt 3 
to cwop.aprs.net:14580. Connection error: [Errno -3] Temporary failure in 
name resolution
Jan 11 15:41:05 raspberrypi weewx[590] DEBUG user.interceptor: empty queue
Jan 11 15:41:05 raspberrypi weewx[590] DEBUG weewx.restx: CWOP: Attempt 1 
to cwop.aprs.net:23. Connection error: [Errno -3] Temporary failure in name 
resolution
Jan 11 15:41:15 raspberrypi weewx[590] DEBUG user.interceptor: empty queue
Jan 11 15:41:15 raspberrypi weewx[590] DEBUG weewx.restx: CWOP: Attempt 2 
to cwop.aprs.net:23. Connection error: [Errno -3] Temporary failure in name 
resolution
Jan 11 15:41:25 raspberrypi weewx[590] DEBUG user.interceptor: empty queue
Jan 11 15:41:25 raspberrypi weewx[590] DEBUG weewx.restx: CWOP: Attempt 3 
to cwop.aprs.net:23. Connection error: [Errno -3] Temporary failure in name 
resolution
Jan 11 15:41:25 raspberrypi weewx[590] ERROR weewx.restx: CWOP: Failed to 
publish record 2023-01-11 20:15:00 EST (1673486100): Tried 2 servers 3 
times each


Able to telnet:

telnet>open cwop.aprs.net 14580
# javAPRSSrvr 3.15b08
# aprsc 2.1.11-g80df3b4 12 Jan 2023 01:20:30 GMT CWOP-7 10.9.8.127:14580


Connection to host lost.

Press any key to continue...

telnet>cwop.aprs.net 23
# javAPRSSrvr 3.15b08
# aprsc 2.1.10-gd72a17c 12 Jan 2023 01:23:51 GMT CWOP-3 44.155.254.4:23


Connection to host lost.

Press any key to continue...


Kaspersky firewall open for port 23 and 14580
Windows Defender:  ports 23 and 14580 are open.

Router is forwarding ports 23 and 14580 to my computer; not rasp pi running 
weewx.

Router has been power cycled.

Regards,
William

-- 
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/235107b5-80b3-47e9-9bca-c7b08a6ecd10n%40googlegroups.com.


[weewx-user] Re: CWOP Connection Failure Error -3 name resolution failure

2023-01-11 Thread vince
You're doing something unusual with the mentions of Kaspersky and Windows 
Defender and routing at a minimum, so I'm not quite sure what your LAN 
looks likethe mention of port 23 in your logs looks unexpected too.

Regardless, if you didn't change anything and it stopped working, it's 
likely something on their end wouldn't you think ?

Given "name resolution" errors, I'd start with checking your DNS setup via 
the usual utilities.  One of them is likely on your pi already.   The 
examples below explicitly hit the google DNS servers to take anything you 
might be doing locally re: DNS out of the question for debugging

pi@pi4:~ $ host cwop.aprs.net 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:

cwop.aprs.net has address 44.155.254.4
cwop.aprs.net has address 44.235.86.44
cwop.aprs.net has address 54.200.219.161
cwop.aprs.net has address 85.188.1.27
cwop.aprs.net has address 129.15.108.116
cwop.aprs.net has address 143.244.144.248

or

pi@pi4:~ $ nslookup cwop.aprs.net 8.8.8.8
Server:8.8.8.8
Address:8.8.8.8#53

Non-authoritative answer:
Name:cwop.aprs.net
Address: 129.15.108.116
Name:cwop.aprs.net
Address: 44.235.86.44
Name:cwop.aprs.net
Address: 143.244.144.248
Name:cwop.aprs.net
Address: 85.188.1.27
Name:cwop.aprs.net
Address: 54.200.219.161
Name:cwop.aprs.net
Address: 44.155.254.4

or.


pi@pi4:~ $ dig @8.8.8.8 cwop.aprs.net

; <<>> DiG 9.16.33-Raspbian <<>> @8.8.8.8 cwop.aprs.net
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39565
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;cwop.aprs.net.INA

;; ANSWER SECTION:
cwop.aprs.net.15INA44.235.86.44
cwop.aprs.net.15INA143.244.144.248
cwop.aprs.net.15INA44.155.254.4
cwop.aprs.net.15INA129.15.108.116
cwop.aprs.net.15INA54.200.219.161
cwop.aprs.net.15INA85.188.1.27

;; Query time: 49 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Jan 11 19:57:52 PST 2023
;; MSG SIZE  rcvd: 138

-- 
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/2581f476-b8f9-429d-96cf-c1a2c182da96n%40googlegroups.com.