Skip to content

Data not being forwarded to WeatherCloud or Underground #47

@greg520820

Description

@greg520820

System Health details

System Information

version core-2024.12.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.0
os_name Linux
os_version 6.6.73-haos
arch x86_64
timezone America/New_York
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.4
Stage running
Available Repositories 1622
Downloaded Repositories 37
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.2
update_channel stable
supervisor_version supervisor-2025.02.1
agent_version 1.6.0
docker_version 27.2.0
disk_total 30.8 GB
disk_used 12.4 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization oracle
board ova
supervisor_api ok
version_api ok
installed_addons File editor (5.8.0), Mosquitto broker (6.5.0), Advanced SSH & Web Terminal (20.0.1), Samba share (12.3.2), Studio Code Server (5.18.3), Frigate Proxy (1.5), Samba Backup (5.2.0), ESPHome Device Builder (2025.2.0), NetworkManager Fix (1.1.0)
Dashboards
dashboards 4
resources 22
views 11
mode storage
Recorder
oldest_recorder_run February 16, 2025 at 4:31 AM
current_recorder_run February 22, 2025 at 1:46 PM
estimated_db_size 421.52 MiB
database_engine sqlite
database_version 3.45.3
Sonoff
version 3.8.1 (ffa7e22)
cloud_online 0 / 2
local_online 2 / 2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

I have both WC and WU selected during configuration and the proxy was left at 9.9.9.9 and the correct credentials setup.

I'm getting data and a weather station in Home Assistant for WU, but not for WC , and neither WC or WU website is getting any data and both indicate my weather station is offline.

If I disable the cloudweatherproxy integration and allow weather staion to get DNS from router, then both WC and WU receives my data and it's visible on their site.

Attached logs from the caddy.

Reproduction steps

1.change DNS for weather station from router to MITM server
2.start cloudweatherproxy and data stops flowing to WC and WU
3.
...

Debug logs

/data/logs # cat weathercloud.log:

{"level":"info","ts":1740364095.5310235,"logger":"http.log.access.log1","msg":"NOP","request":{"remote_ip":"192.168.40.2","remote_port":"54712","client_ip":"192.168.40.2","proto":"HTTP/1.1","method":"GET","host":"api.weathercloud.net","uri":"/v01/set?wid=XXXX&key=XXXX&tempin=202&humin=34&temp=-5&hum=73&dewin=38&dew=-47&chill=-5&heatin=202&heat=-5&thw=-24&bar=10123&wspd=0&wspdhi=0&wdir=232&wspdavg=0&wdiravg=278&rainrate=0&rain=132&solarrad=0&uvi=0&battery=1&date=20250224&time=0228&ver=1.0&type=491&","headers":{"Accept":["*/*"],"Connection":["Close"]}},"bytes_read":0,"user_id":"","duration":0.000019386,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}


/data/logs # cat wunderground.log:

{"level":"info","ts":1740364094.3323834,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"192.168.40.2","remote_port":"54711","client_ip":"192.168.40.2","proto":"HTTP/1.1","method":"GET","host":"rtupdate.wunderground.com","uri":"/weatherstation/updateweatherstation.php?ID=XXX&PASSWORD=XXXX&indoortempf=68.3&indoorhumidity=34&tempf=31.1&humidity=73&dewptf=23.5&windchillf=31.1&absbaromin=29.44&baromin=29.89&windspeedmph=0.0&windgustmph=0.0&winddir=225&windspdmph_avg2m=0.0&winddir_avg2m=135&windgustmph_10m=0.0&windgustdir_10m=270&rainin=0.0&dailyrainin=0.52&weeklyrainin=0.52&monthlyrainin=2.47&solarradiation=0.0&UV=0&dateutc=2025-2-24%202:28:13&action=updateraw&realtime=1&rtfreq=5&","headers":{"Accept":["*/*"],"Connection":["Close"]}},"bytes_read":0,"user_id":"","duration":0.183995499,"size":2,"status":200,"resp_headers":{"X-Frame-Options":["SAMEORIGIN"],"Content-Length":["2"],"Date":["Mon, 24 Feb 2025 02:28:14 GMT"],"Content-Type":["text/plain; charset=utf-8"],"Referrer-Policy":["no-referrer"],"X-Content-Type-Options":["nosniff"],"Server":["Caddy",""]}}
{"level":"info","ts":1740364154.3736477,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"192.168.40.2","remote_port":"54713","client_ip":"192.168.40.2","proto":"HTTP/1.1","method":"GET","host":"rtupdate.wunderground.com","uri":"/weatherstation/updateweatherstation.php?ID=XXXX&PASSWORD=XXXX&indoortempf=68.3&indoorhumidity=34&tempf=31.0&humidity=73&dewptf=23.4&windchillf=31.0&absbaromin=29.44&baromin=29.89&windspeedmph=0.0&windgustmph=0.0&winddir=180&windspdmph_avg2m=0.0&winddir_avg2m=68&windgustmph_10m=0.0&windgustdir_10m=23&rainin=0.0&dailyrainin=0.52&weeklyrainin=0.52&monthlyrainin=2.47&solarradiation=0.0&UV=0&dateutc=2025-2-24%202:29:13&action=updateraw&realtime=1&rtfreq=5&","headers":{"Accept":["*/*"],"Connection":["Close"]}},"bytes_read":0,"user_id":"","duration":0.223748942,"size":2,"status":200,"resp_headers":{"Date":["Mon, 24 Feb 2025 02:29:14 GMT"],"Content-Type":["text/plain; charset=utf-8"],"Referrer-Policy":["no-referrer"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["SAMEORIGIN"],"Server":["Caddy",""],"Content-Length":["2"]}}

debug log from clouldweatherproxy integration:

File "aiohttp/_http_parser.pyx", line 558, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
Pause on PRI/Upgrade:

b''
  ^

2025-02-23 14:35:10.473 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-barometer [Sensor(name='barometer', value=1004.74488, unit=<UnitOfPressure.HPA: 'hPa'>)] with update time 1426048.161362387
2025-02-23 14:35:10.473 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-temperature [Sensor(name='temperature', value=11.222222222222223, unit=<UnitOfTemperature.CELSIUS: '°C'>)] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-humidity [Sensor(name='humidity', value=32.0, unit='%')] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-indoortemperature [Sensor(name='indoortemperature', value=19.499999999999996, unit=<UnitOfTemperature.CELSIUS: '°C'>)] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-indoorhumidity [Sensor(name='indoorhumidity', value=34.0, unit='%')] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-dewpoint [Sensor(name='dewpoint', value=-4.888888888888889, unit=<UnitOfTemperature.CELSIUS: '°C'>)] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-rain [Sensor(name='rain', value=0.0, unit=<UnitOfPrecipitationDepth.MILLIMETERS: 'mm'>)] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-dailyrain [Sensor(name='dailyrain', value=0.0, unit=<UnitOfPrecipitationDepth.MILLIMETERS: 'mm'>)] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-winddirection [Sensor(name='winddirection', value=180.0, unit='°')] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-windspeed [Sensor(name='windspeed', value=0.0, unit=<UnitOfSpeed.METERS_PER_SECOND: 'm/s'>)] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-windgustspeed [Sensor(name='windgustspeed', value=0.0, unit=<UnitOfSpeed.METERS_PER_SECOND: 'm/s'>)] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-uv [Sensor(name='uv', value=3, unit='UV index')] with update time 1426048.161362387
2025-02-23 14:35:10.474 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-solarradiation [Sensor(name='solarradiation', value=685.48, unit=<UnitOfIrradiance.WATTS_PER_SQUARE_METER: 'W/m²'>)] with update time 1426048.161362387
2025-02-23 14:36:10.476 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-barometer [Sensor(name='barometer', value=1004.74488, unit=<UnitOfPressure.HPA: 'hPa'>)] with update time 1426108.163642434
2025-02-23 14:36:10.476 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-temperature [Sensor(name='temperature', value=11.500000000000002, unit=<UnitOfTemperature.CELSIUS: '°C'>)] with update time 1426108.163642434
2025-02-23 14:36:10.476 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-humidity [Sensor(name='humidity', value=31.0, unit='%')] with update time 1426108.163642434
2025-02-23 14:36:10.476 DEBUG (MainThread) [custom_components.cloudweatherproxy.sensor] Updating KOHCINCI890-indoortemperature [Sensor(name='indoortemperature', value=19.499999999999996, unit=<UnitOfTemperature.CELSIUS: '°C'>)] with update time 1426108.163642434

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions