Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoncms History #90942

Open
boelle opened this issue Apr 6, 2023 · 12 comments
Open

Emoncms History #90942

boelle opened this issue Apr 6, 2023 · 12 comments

Comments

@boelle
Copy link

boelle commented Apr 6, 2023

The problem

when i enable this i get a 406 error and i have had this problem with a raspberry pi that runs a python script

my webhoster where i have emoncms running requires a user agent when the server is contacted or else it will reject. that is also done on many other servers as a attack prevention thing

    conn.request("GET", conarg, headers = {"user-agent": "Mozilla/5.0"})

that solved the problem on my pi, it controls an electrical heating panel and sends in temeprature etc....

What version of Home Assistant Core has the issue?

2023.3.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

emoncms_history

Link to integration documentation on our website

https://www.home-assistant.io/integrations/emoncms_history/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@boelle
Copy link
Author

boelle commented Apr 6, 2023

i tried to find the folder

Logger: homeassistant.components.emoncms_history
Source: components/emoncms_history/__init__.py:92
Integration: Emoncms History ([documentation](https://www.home-assistant.io/integrations/emoncms_history), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+emoncms_history%22))
First occurred: 16.18.35 (51 occurrences)
Last logged: 16.43.35

Error saving data {sensor.rogalarm_kontor_entre_temperature:22.93,sensor.control_dhw_domestichotwatertanktemperature:54.5} to https://emoncms.net/emoncms//input/post.json (http status code = 406)
Error saving data {sensor.rogalarm_kontor_entre_temperature:23.06,sensor.control_dhw_domestichotwatertanktemperature:54.5} to https://emoncms.net/emoncms//input/post.json (http status code = 406)
Error saving data {sensor.rogalarm_kontor_entre_temperature:23.12,sensor.control_dhw_domestichotwatertanktemperature:54.5} to https://emoncms.net/emoncms//input/post.json (http status code = 406)

[core-ssh /]$ ls
addons backup bin command config data dev etc home init lib media mnt opt package proc root run sbin share srv ssl sys tmp usr var
[core-ssh /]$ find . -type d -name "emoncms_history"

my hope was that i could peak at the code and add user agtent just to test

@boelle
Copy link
Author

boelle commented Apr 6, 2023

if not much mistaken this is where a change is needed:

https://github.com/home-assistant/core/blob/dev/homeassistant/components/emoncms_history/__init__.py#L57

@home-assistant
Copy link

home-assistant bot commented Apr 7, 2023

@boelle
Copy link
Author

boelle commented Apr 7, 2023

emoncms_history documentation emoncms_history source

hi bot... that does not explain how to gain access to the file so i can hand edit and test if my assumption is correct

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@boelle
Copy link
Author

boelle commented Jul 6, 2023 via email

@github-actions github-actions bot removed the stale label Jul 6, 2023
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@boelle
Copy link
Author

boelle commented Oct 4, 2023

It has not been updated so yes suggested Edit should still be made

@github-actions github-actions bot removed the stale label Oct 4, 2023
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@boelle
Copy link
Author

boelle commented Jan 2, 2024

It has not been updated so yes suggested Edit should still be made

@github-actions github-actions bot removed the stale label Jan 2, 2024
@djh42
Copy link

djh42 commented Feb 17, 2024

Does a real person ever review these things or is @boelle wasting his time?

@boelle
Copy link
Author

boelle commented Feb 17, 2024

well the bot text is the same, so i can spare 4 sec to just repeat myself

but to answer your Q.... i guess no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants