cant registrer my weather stations

145 views
Skip to first unread message

Δημήτρης Βήχος

unread,
Nov 2, 2022, 1:21:11 PM11/2/22
to weewx-user
i have 2 weather stations who running weewx. after setting and uncomment and set to true and restarting weewx cant see my stations on map after 2 hours.. the urls are


and the weather stations located in greece

Tom Keffer

unread,
Nov 2, 2022, 2:14:20 PM11/2/22
to weewx...@googlegroups.com
I am not seeing either URL in the station map database.

It's hard to diagnose what's wrong without seeing the log. Set debug=1, restart weewxd, let it run through the first reporting cycle, then post the log from the restart.

--
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/5f8ae61e-5773-4bfb-b83d-c073cf81db3cn%40googlegroups.com.

vince

unread,
Nov 2, 2022, 2:14:25 PM11/2/22
to weewx-user
You need to set the station_url in weewx.conf 'and' set the register_this_station to true.   Two things.

Δημήτρης Βήχος

unread,
Nov 3, 2022, 1:48:59 PM11/3/22
to weewx-user
in both weather stations in weewx conf ,

 [[StationRegistry]]
        # To register this weather station with weewx, set this to true,
        # then fill out option 'station_url', located in the [Station] section above.
        register_this_station = true
heres my log after debug=1

metfm@metfm:~$ sudo tail -f /var/log/syslog
[sudo] password for metfm:
Nov  3 19:40:34 metfm weewx[10655] DEBUG weewx.manager: Daily summary version is 4.0
Nov  3 19:40:34 metfm weewx[10655] DEBUG weewx.manager: Daily summary version is 4.0
Nov  3 19:40:35 metfm weewx[10655] DEBUG weewx.drivers.fousb: get 787 records since 2022-11-03 17:55:00
Nov  3 19:40:35 metfm weewx[10655] INFO weewx.drivers.fousb: synchronising to the weather station (quality=0)
Nov  3 19:40:36 metfm weewx[10655] DEBUG weewx.drivers.fousb: status {'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0)
Nov  3 19:40:42 metfm weewx[10655] DEBUG weewx.drivers.fousb: new data
Nov  3 19:40:42 metfm weewx[10655] DEBUG weewx.drivers.fousb: setting sensor clock 42.8507
Nov  3 19:40:42 metfm weewx[10655] DEBUG weewx.drivers.fousb: live synchronised
Nov  3 19:40:42 metfm weewx[10655] DEBUG weewx.drivers.fousb: packet timestamp is 17:40:42
Nov  3 19:40:42 metfm weewx[10655] DEBUG weewx.drivers.fousb: estimated log time 17:33:18 +/- 24s (17:32:54..17:33:42)
Nov  3 19:41:27 metfm weewx[10655] DEBUG weewx.drivers.fousb: avoid 5.865389347076416
Nov  3 19:41:33 metfm weewx[10655] DEBUG weewx.drivers.fousb: new data
Nov  3 19:41:33 metfm weewx[10655] DEBUG weewx.drivers.fousb: packet timestamp is 17:41:30
Nov  3 19:41:33 metfm weewx[10655] DEBUG weewx.drivers.fousb: estimated log time 17:33:12 +/- 18s (17:32:42..17:33:30)
Nov  3 19:42:15 metfm weewx[10655] DEBUG weewx.drivers.fousb: avoid 5.86328387260437
Nov  3 19:42:21 metfm weewx[10655] DEBUG weewx.drivers.fousb: new data
Nov  3 19:42:21 metfm weewx[10655] DEBUG weewx.drivers.fousb: packet timestamp is 17:42:18
Nov  3 19:42:21 metfm weewx[10655] DEBUG weewx.drivers.fousb: estimated log time 17:33:06 +/- 12s (17:32:30..17:33:18)
Nov  3 19:42:21 metfm weewx[10655] DEBUG weewx.drivers.fousb: synchronised to 2022-11-03 17:33:06 for ptr 0x3220
Nov  3 19:42:21 metfm weewx[10655] DEBUG weewx.drivers.fousb: found 0 archive records
Nov  3 19:42:21 metfm weewx[10655] INFO weewx.engine: Starting main packet loop.
Nov  3 19:42:22 metfm weewx[10655] INFO weewx.drivers.fousb: station status {'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0)
Nov  3 19:42:22 metfm weewx[10655] DEBUG user.rtgd: Data may have been posted successfully. Response message was not received but a valid response code was received.
Nov  3 19:42:48 metfm dbus-daemon[813]: [session uid=1000 pid=813] Activating service name='org.freedesktop.thumbnails.Thumbnailer1' requested by ':1.37' (uid=1000 pid=1061 comm="/usr/bin/Thunar --daemon ")
Nov  3 19:42:48 metfm org.freedesktop.thumbnails.Thumbnailer1[10700]: Registered thumbnailer atril-thumbnailer -s %s %u %o
Nov  3 19:42:48 metfm org.freedesktop.thumbnails.Thumbnailer1[10700]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Nov  3 19:42:48 metfm dbus-daemon[813]: [session uid=1000 pid=813] Successfully activated service 'org.freedesktop.thumbnails.Thumbnailer1'
Nov  3 19:43:22 metfm weewx[10655] DEBUG user.rtgd: Data may have been posted successfully. Response message was not received but a valid response code was received.
Nov  3 19:44:22 metfm weewx[10655] DEBUG user.rtgd: Data may have been posted successfully. Response message was not received but a valid response code was received.
Nov  3 19:44:44 metfm rtkit-daemon[622]: Supervising 5 threads of 2 processes of 1 users.
Nov  3 19:44:44 metfm rtkit-daemon[622]: Supervising 5 threads of 2 processes of 1 users.
Nov  3 19:45:22 metfm weewx[10655] INFO weewx.manager: Added record 2022-11-03 19:45:00 EET (1667497500) to database 'weewx.sdb'
Nov  3 19:45:22 metfm weewx[10655] INFO weewx.manager: Added record 2022-11-03 19:45:00 EET (1667497500) to daily summary in 'weewx.sdb'
Nov  3 19:45:22 metfm weewx[10655] DEBUG weewx.reportengine: Running reports for latest time in the database.
Nov  3 19:45:22 metfm weewx[10655] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Nov  3 19:45:22 metfm weewx[10655] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Nov  3 19:45:22 metfm weewx[10655] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
Nov  3 19:45:22 metfm weewx[10655] DEBUG weewx.manager: Daily summary version is 4.0
Nov  3 19:45:23 metfm weewx[10655] DEBUG user.rtgd: Data may have been posted successfully. Response message was not received but a valid response code was received.
Nov  3 19:45:23 metfm weewx[10655] INFO weewx.restx: WeatherCloud: Published record 2022-11-03 19:45:00 EET (1667497500)
Nov  3 19:45:23 metfm weewx[10655] DEBUG user.rtgd: Data may have been posted successfully. Response message was not received but a valid response code was received.
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.restx: StationRegistry: Failed upload attempt 1: b"FAIL: execute failed: Incorrect string value: '\\xCE\\x9C\\xCE\\xB5\\xCF\\x84...' for column 'description' at row 1\n"
Nov  3 19:45:23 metfm weewx[10655] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.58 seconds
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.manager: Daily summary version is 4.0
Nov  3 19:45:23 metfm weewx[10655] INFO weewx.imagegenerator: Generated 11 images for report SeasonsReport in 0.21 seconds
Nov  3 19:45:23 metfm weewx[10655] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.reportengine: Running report 'FTP'
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.reportengine: Cannot read localization file /etc/weewx/skins/Ftp/lang/gr.conf for report 'FTP': Config file not found: "/etc/weewx/skins/Ftp/lang/gr.conf".
Nov  3 19:45:23 metfm weewx[10655] DEBUG weewx.reportengine: **** Using defaults instead.
Nov  3 19:45:23 metfm weewx[10655] DEBUG weeutil.ftpupload: Attempting connection to webdesignzone.eu
Nov  3 19:45:23 metfm weewx[10655] DEBUG weeutil.ftpupload: Connected to webdesignzone.eu
Nov  3 19:45:23 metfm weewx[10655] DEBUG weeutil.ftpupload: 0 ./daybarometer.png 941a991908b3a74e025aac1cb90236f4a2d90fb7bf3a331d150c83b81cf39872
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daybarometer.png to /moudania/daybarometer.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 1 ./daytempdew.png 6e9ad2864e6870088eb9dd9e03b89ffc13fc7d5838aa05e850518b0fcac779e4
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daytempdew.png to /moudania/daytempdew.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 2 ./daytempfeel.png a6180840611c54522107201bf088431034336efc71d0c62fe37f3d2b771e0b21
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daytempfeel.png to /moudania/daytempfeel.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 3 ./dayhum.png e4883a32c1c57773ad157ecb2e9931a676aaef8cd745ca01291ef9bcdbad17a3
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayhum.png to /moudania/dayhum.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 4 ./daytempin.png 16242610497cb592d17d056552a1dc1a8e9e189b0e3876b3b68e169c81722b65
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daytempin.png to /moudania/daytempin.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 5 ./dayhumin.png 00141399c07e52667c7e6c2b8e4e7e8e5fab6a18830f2d7a909f4e734f6c750b
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayhumin.png to /moudania/dayhumin.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 6 ./dayrain.png 6059e8ee646caf5e623608c2d1bf27d2bc6be720fafe541f7805c353e7985b23
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayrain.png to /moudania/dayrain.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 7 ./daywind.png f55f39e97d601867ee5f05a2721ce3c37794d4ecadbc0a87f6ef6cb182747403
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daywind.png to /moudania/daywind.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 8 ./daywinddir.png 33f2243491140213c3a80256be6b037c8c87feaf1e73bdfc1a1fb53a8f1d35cc
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daywinddir.png to /moudania/daywinddir.png
Nov  3 19:45:24 metfm weewx[10655] DEBUG weeutil.ftpupload: 9 ./daywindvec.png 742a626f2124faf18ac898d50fc1d05031d7fdaea4766ed8d36a15894311c666
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daywindvec.png to /moudania/daywindvec.png
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 10 ./dayrx.png 8eff522f253a16c12472ca596b2258e8e1dfd3b1efed76c26b7fb22e413cad0b
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayrx.png to /moudania/dayrx.png
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 11 ./index.html 8ec15ce6b61c247fdfcd617f001c1970e245975d2bc632931f7304825e16b72b
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/index.html to /moudania/index.html
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 12 ./statistics.html 4ae0b4c9edcab5c89d51c6505404ecaac338de0f73c0703b7f2e381716b15ad3
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/statistics.html to /moudania/statistics.html
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 13 ./telemetry.html a019cfbc8db9d93b26782e2346f09bdad030f7eff7f75e2307092888e3d13fc7
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/telemetry.html to /moudania/telemetry.html
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 14 ./tabular.html 08c69887db910de56ff2a690851496782a46b360572961995c2c6da06ad42335
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/tabular.html to /moudania/tabular.html
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 15 ./celestial.html e3fa29e9bce9b1d192348b49361d389d2f801e9cfa1f257c953dd0357e03b5be
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/celestial.html to /moudania/celestial.html
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 16 ./rss.xml 3cc473732480ed2d9cf805048735dbddaa279fcea6a1d90ff933982fb0ece0fc
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/rss.xml to /moudania/rss.xml
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: 17 ./NOAA/NOAA-2022-11.txt 4d37b14a570e40681815d6753e4d3c2e6c880e2625d63082739a77517bc38ada
Nov  3 19:45:25 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/NOAA/NOAA-2022-11.txt to /moudania/NOAA/NOAA-2022-11.txt
Nov  3 19:45:26 metfm weewx[10655] DEBUG weeutil.ftpupload: 18 ./live/gauge-data.txt 1c35ac97cedbcb09b8a55829e8960d225cab270119ad827bf9d2430275e950f3
Nov  3 19:45:26 metfm weewx[10655] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/live/gauge-data.txt to /moudania/live/gauge-data.txt
Nov  3 19:45:26 metfm weewx[10655] INFO weewx.reportengine: ftpgenerator: Ftp'd 19 files in 2.35 seconds
Nov  3 19:45:26 metfm weewx[10655] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Nov  3 19:45:28 metfm weewx[10655] DEBUG weewx.restx: StationRegistry: Failed upload attempt 2: b"FAIL: execute failed: Incorrect string value: '\\xCE\\x9C\\xCE\\xB5\\xCF\\x84...' for column 'description' at row 1\n"
Nov  3 19:45:34 metfm weewx[10655] DEBUG weewx.restx: StationRegistry: Failed upload attempt 3: b"FAIL: execute failed: Incorrect string value: '\\xCE\\x9C\\xCE\\xB5\\xCF\\x84...' for column 'description' at row 1\n"
Nov  3 19:45:34 metfm weewx[10655] ERROR weewx.restx: StationRegistry: Failed to publish record 2022-11-03 19:45:00 EET (1667497500): Failed upload after 3 tries
Nov  3 19:46:23 metfm weewx[10655] DEBUG user.rtgd: Data may have been posted successfully. Response message was not received but a valid response code was received.
Nov  3 19:47:23 metfm weewx[10655] DEBUG user.rtgd: Data may have been posted successfully. Response message was not received but a valid response code was received.


log tel me about registration 

Nov  3 19:45:28 metfm weewx[10655] DEBUG weewx.restx: StationRegistry: Failed upload attempt 2: b"FAIL: execute failed: Incorrect string value: '\\xCE\\x9C\\xCE\\xB5\\xCF\\x84...' for column 'description' at row 1\n"
Nov  3 19:45:34 metfm weewx[10655] DEBUG weewx.restx: StationRegistry: Failed upload attempt 3: b"FAIL: execute failed: Incorrect string value: '\\xCE\\x9C\\xCE\\xB5\\xCF\\x84...' for column 'description' at row 1\n"
Nov  3 19:45:34 metfm weewx[10655] ERROR weewx.restx: StationRegistry: Failed to publish record 2022-11-03 19:45:00 EET (1667497500): Failed upload after 3 tries

vince

unread,
Nov 3, 2022, 1:56:54 PM11/3/22
to weewx-user
On Thursday, November 3, 2022 at 10:48:59 AM UTC-7 hobbyl...@gmail.com wrote:

Nov  3 19:45:28 metfm weewx[10655] DEBUG weewx.restx: StationRegistry: Failed upload attempt 2: b"FAIL: execute failed: Incorrect string value: '\\xCE\\x9C\\xCE\\xB5\\xCF\\x84...' for column 'description' at row 1\n"

Lets see your [Station] stanza from weewx.conf please.  I'm guessing that you have strange characters in there possibly in your 'location = ' line or nearby.


Δημήτρης Βήχος

unread,
Nov 3, 2022, 1:59:30 PM11/3/22
to weewx-user
my station stanza

[Station]
   
    # Description of the station location
    location = Μετεωρολογικός Σταθμός Νέων Μουδανιών Χαλκιδικής
   
    # Latitude in decimal degrees. Negative for southern hemisphere
    latitude = 40.243
    # Longitude in decimal degrees. Negative for western hemisphere.
    longitude = 23.277
   
    # Altitude of the station, with the unit it is in. This is used only
    # if the hardware cannot supply a value.
    altitude = 4, meter
   
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file, which includes a value for the 'driver' option.
    station_type = FineOffsetUSB
   
    # If you have a website, you may specify an URL. This is required if you
    # intend to register your station.
    station_url = https://kairos.moudania.com
   
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
   
    # Start of week (0=Monday, 6=Sunday)
    week_start = 6

vince

unread,
Nov 3, 2022, 3:22:49 PM11/3/22
to weewx-user
Yes, the location in Greek (?) characters seems to be the issue

You seem to have registered https://kairos.moudania.com/kolxiko/ successfully in the past with Greek characters according to https://groups.google.com/g/weewx-user/c/9eAWjrvbIAU/m/JUwjf8X-CQAJ so do whatever you did then for that site.

Perhaps your os isn't set to a greek language ?   Try the 'locale' command on both systems and see if there are any differences.

Tom Keffer

unread,
Nov 3, 2022, 5:06:41 PM11/3/22
to weewx...@googlegroups.com
The problem is the "location" option. Here's the error showing up on weewx.com:

2022.11.03 17:45:34 execute failed: Incorrect string value: '\xCE\x9C\xCE\xB5\xCF\x84...' for column 'description' at row 1 reg={description=Μετεωρολογικός Σταθμός Νέων Μουδανιών Χαλκιδικής,last_addr=87.202.32.10,last_seen=1667497534,latitude=40.2430,longitude=23.2770,platform_info=Linux-5.10.0-16-amd64-x86_64-with-glibc2.31,python_info=3.9.2,station_model=WΗ1080,station_type=FineOffsetUSB,station_url=https://kairos.moudania.com,user_agent=weewx/4.9.1,weewx_info=4.9.1}

Unfortunately, the registry does not handle utf-8 characters well, which is a known problem. See Issue #7.

I would fix it myself, but all that stuff is written in Perl by mwall, and I don't have a clue how that language works.

My apologies. 

-tk

--
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.

Δημήτρης Βήχος

unread,
Nov 3, 2022, 5:47:27 PM11/3/22
to weewx-user
my both os are in greek locale. i rember in past i was registred kolxiko weather station in greek. remember in 4.6 verion of weewx. know in 4.9 cant. its weird that the weewx accept all greek characters , except the registration. i will set for now to english title of my stations

Tom Keffer

unread,
Nov 3, 2022, 6:25:27 PM11/3/22
to weewx...@googlegroups.com
It is weird. It's possible the problem is related to an "upgrade" in perl, or MySQL. Don't know.

Δημήτρης Βήχος

unread,
Nov 4, 2022, 6:38:19 AM11/4/22
to weewx-user
update and solution at least but still weird.
writing now here for furure issues.
last night i was change moudania weather station in greek characters.
log told me  Incorrect string value in station type this time!
going in station stanga
station type = WH1080
I remembered  during installation via terminal both stations,i was wrote the station type WH1080 with keyboad in english of course.
the weird solution now
in moudania station editing weewx.conf
copy-paste the station type from
 # The station model, e.g., WH1080, WS1090, WS2080, WH3081
    model = WH1080

the WH1080 to the model simply replace the WH1080!!!

After restarting weewx my weather stations kolxiko and moudania, appears to the map enen with greek  characters in description!!
I dont know why in installation weewx dont accept the WH1080 station type its very weird byt finaly i found a solution.Στιγμιότυπο οθόνης_2022-11-04_12-37-14.pngΣτιγμιότυπο οθόνης_2022-11-04_12-36-42.png

Tom Keffer

unread,
Nov 4, 2022, 7:17:24 AM11/4/22
to weewx...@googlegroups.com
Looking through the nginx logs, the problem is that while you thought you were sending UTF-8 characters 'WH1080', you were actually sending 'W\xCE\x971080'. The sequence '\xCE\x97' is the two-byte UTF-8 sequence encoding the Greek character Eta, which looks like the Latin 'H'.

matthew wall

unread,
Nov 4, 2022, 7:54:37 AM11/4/22
to weewx-user
On Thursday, November 3, 2022 at 5:06:41 PM UTC-4 tke...@gmail.com wrote:
The problem is the "location" option. Here's the error showing up on weewx.com:

2022.11.03 17:45:34 execute failed: Incorrect string value: '\xCE\x9C\xCE\xB5\xCF\x84...' for column 'description' at row 1 reg={description=Μετεωρολογικός Σταθμός Νέων Μουδανιών Χαλκιδικής,last_addr=87.202.32.10,last_seen=1667497534,latitude=40.2430,longitude=23.2770,platform_info=Linux-5.10.0-16-amd64-x86_64-with-glibc2.31,python_info=3.9.2,station_model=WΗ1080,station_type=FineOffsetUSB,station_url=https://kairos.moudania.com,user_agent=weewx/4.9.1,weewx_info=4.9.1}

Unfortunately, the registry does not handle utf-8 characters well, which is a known problem. See Issue #7.

I would fix it myself, but all that stuff is written in Perl by mwall, and I don't have a clue how that language works.

for the record, on 03nov2022, i modified the registry database schema so that the 'description' field would use utf8 4-byte encoding instead of latin1.  more detail in the issue mentioned above.

no changes to the perl code :)

Reply all
Reply to author
Forward
0 new messages