Open toxic0berliner opened 3 months ago
I'll check on WU when I am back home and able to configure my weather station. Maybe there were changes. Could you add a logging block to the caddy instance and post the anonymized log? Maybe this can already give some insights. Like this:
http://rtupdate.wunderground.com {
@weatherstation {
path /weatherstation/updateweatherstation.php*
}
log {
output file /data/logs/wunderground.log
}
reverse_proxy @weatherstation http://<homeassistant> {
rewrite /wunderground{uri}
header_up "Authorization" "Bearer {env.HA_ACCESS_TOKEN}"
}
}
Remember to remove ID/Password from the whole json.
I already had logs to stdout as it's running in docker, This is what's being logged
{"level":"info","ts":1725987083.1423686,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"10.0.0.6","remote_port":"52017","client_ip":"10.0.0.6","proto":"HTTP/1.1","method":"GET","host":"rtupdate.wunderground.com","uri":"/weatherstation/updateweatherstation.php?ID=XXX&PASSWORD=XXX&dateutc=2024-9-10+17%3A51%3A18&baromin=30.11&tempf=68.0&humidity=52&dewptf=49.5&rainin=0&dailyrainin=0&winddir=30&windspeedmph=0&windgustmph=0&UV=0&solarRadiation=42.0","headers":{"User-Agent":["lwIP/2.1.2"],"Accept":["*/*"],"Connection":["Close"]}},"bytes_read":0,"user_id":"","duration":0.335355641,"size":2,"status":200,"resp_headers":{"Content-Length":["2"],"Date":["Tue, 10 Sep 2024 16:51:23 GMT"],"Content-Type":["text/plain; charset=utf-8"],"Referrer-Policy":["no-referrer"],"X-Content-Type-Options":["nosniff"],"Server":["Caddy",""]}}{"level":"info","ts":1725987089.1556892,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"10.0.0.6","remote_port":"52018","client_ip":"10.0.0.6","proto":"HTTP/1.1","method":"GET","host":"rtupdate.wunderground.com","uri":"/weatherstation/updateweatherstation.php?ID=XXX&PASSWORD=XXX&dateutc=2024-9-10+17%3A51%3A18&baromin=30.11&tempf=68.0&humidity=52&dewptf=49.5&rainin=0&dailyrainin=0&winddir=30&windspeedmph=0&windgustmph=0&UV=0&solarRadiation=42.0","headers":{"User-Agent":["lwIP/2.1.2"],"Accept":["*/*"],"Connection":["Close"]}},"bytes_read":0,"user_id":"","duration":0.134580794,"size":2,"status":200,"resp_headers":{"Date":["Tue, 10 Sep 2024 16:51:29 GMT"],"Content-Type":["text/plain; charset=utf-8"],"Referrer-Policy":["no-referrer"],"Server":["Caddy",""],"X-Content-Type-Options":["nosniff"],"Content-Length":["2"]}}{"level":"info","ts":1725987095.9467916,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"10.0.0.6","remote_port":"52019","client_ip":"10.0.0.6","proto":"HTTP/1.1","method":"GET","host":"rtupdate.wunderground.com","uri":"/weatherstation/updateweatherstation.php?ID=XXX&PASSWORD=XXX&dateutc=2024-9-10+17%3A51%3A18&baromin=30.11&tempf=68.0&humidity=52&dewptf=49.5&rainin=0&dailyrainin=0&winddir=30&windspeedmph=0&windgustmph=0&UV=0&solarRadiation=42.0","headers":{"User-Agent":["lwIP/2.1.2"],"Accept":["*/*"],"Connection":["Close"]}},"bytes_read":0,"user_id":"","duration":0.113081218,"size":2,"status":200,"resp_headers":{"Content-Type":["text/plain; charset=utf-8"],"Server":["Caddy",""],"Referrer-Policy":["no-referrer"],"X-Content-Type-Options":["nosniff"],"Content-Length":["2"],"Date":["Tue, 10 Sep 2024 16:51:35 GMT"]}}
Haven't looked at the details, my station seems to be making 3 requests to WU in a row every time, only a single request to WeatherCloud is logged, strange but hey...
Also wondering, maybe my unit is defective but I'm picking up very little wind, so I was wondering if there might not be a missing conversion from mph that is being sent to WU and intercepted by this integration to kmh that my home assistant is setup to display, but that's probably another issue, and I actually think my device might be broken...
Haven't looked at the details, my station seems to be making 3 requests to WU in a row every time, only a single request to WeatherCloud is logged, strange but hey...
The equests in a row also appear on my station (Up to 5 in my case). Might be their solution to broken connections. WU will ignore anything below 10min anyway.
Also wondering, maybe my unit is defective but I'm picking up very little wind, so I was wondering if there might not be a missing conversion from mph that is being sent to WU and intercepted by this integration to kmh that my home assistant is setup to display, but that's probably another issue, and I actually think my device might be broken...
I can't be quite sure that all the conversions are correct. Try double checking with the Weathercloud.net device if you have both forwarding to your station. On mine it looks fairly correct, with more spikes on weathercloud due to it updating a lot more often: vs WeatherUnderground (note the different y-scale)
guess who's the dumb-dumb plugging the wind-sensing device onto the wind-direction post... so my device is now "fixed" and all sensors report fine in HA. Sadly WU still shows offline, will be quite a long time before I have the accesses and time to setup some network logging and inspect the actual http request to see if something's wrongly sent out by thin integration in HA.
System Health details
System Information
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.0 Stage | running Available Repositories | 1459 Downloaded Repositories | 25Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 13.1 -- | -- update_channel | stable supervisor_version | supervisor-2024.08.0 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 119.4 GB disk_used | 39.4 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | kvm board | ova supervisor_api | ok version_api | ok installed_addons | File editor (5.8.0), Mosquitto broker (6.4.1), Zigbee2MQTT (1.39.1-1), Node-RED (18.0.5), Frigate Proxy (1.5), ESPHome (2024.8.1), Advanced SSH & Web Terminal (18.0.0), Whisper (2.1.2), Piper (1.5.2), rsync (1.7.0)Dashboards
dashboards | 3 -- | -- resources | 15 views | 10 mode | storageRecorder
oldest_recorder_run | 9 février 2023 à 08:06 -- | -- current_recorder_run | 1 septembre 2024 à 15:50 estimated_db_size | 19076.75 MiB database_engine | sqlite database_version | 3.45.3Checklist
Describe the issue
I have both WC and WU setup with the proxy checkbox enabled and the correct credentials setup, I see both devices and their sensors in HA WC is receiving my data and it's visible on their site But WU claims m'y device is offline. I just created my accounts today but gave it several hours and still nothing. I do see the requests to both WU and WC in my Caddy logs but I can't seem to find how to get more logs as to why the WU one in not being forwarded while WC is.
Reproduction steps
No real clue sorry
Debug logs
Diagnostics dump
No response