So this isn’t clear to me, when i look at the input api help page all samples i’m seeing mostly seem to use http get statements with all data passed in with the parameters.
Since i’m currently using this system for emoncms_history component with http get http://192.168.0.101:8083/emoncmsnew/input/post.json?node=1&json={sensor1:200,sensor2:400,sensor3:4.5}
i was wondering… There are probably limits on how long the url can be, i think this mostly depends on software used as well as webservers… I’ve read somewhere on stackoverflow that apache only seemed to like up until 4000 bytes (/ characters ?) but i was not sure how accurate it was. As i’m currently sending all the data in one http get the url can, depending on the number of data being send from home assistant, become quite long and i’m affraid of hitting some limit. I’m currently sending the entityid which basically is the name of the component and its value using this system so the url quickly grows depending on the component’s name length ( entity_id) and the number of components to send data for
So i’d like to know does http post also work ? if so what should i actually send ? i should probably post to http://192.168.0.101:8083/emoncmsnew/input/post.json but what’s the data to be posted then ?
Also i’m guessing http post can send a lot more data compared to http get so if it supports http post and i’m switching to http post instead of http get i would probably be on the safe side when sending large amounts of data due to a high number of sensors / components selected to send it’s data to emoncms right ? It’s not that it will send tons of data but as i don’t know about the limits of http get i’d like to be on the safe side and use http post if that allaws for more data