Sure FOSHplugin is very capable and can do things that MX cannot. But I was just pointing out that for people already running MX there is no need for another piece of software just to get the forwarding or MQTT capabilities to HA (or anywhere else).
For polling for data from MX you use the http interface. There are two options:
Simple HTTP GET
Code: Select all
http//<ip_address>:8998/api/tags/process.json?webtag1&webtag2...
Where webtag1 is the name of the data webtag you want. Eg. <#temp>, just use "temp" in the URL
The data is returned as JSON in the form:
Code: Select all
{
"webtag1"="value1",
"webtag2"="value2"
}
You can use a global parameter "rc" as the first URL parameter to force all decimal values to use dot decimals in comma decimal locales.
Code: Select all
http//<ip_address>:8998/api/tags/process.json?rc&webtag1&webtag2...
HTTP POST
When you want more control, use the POST API
Code: Select all
http//<ip_address>:8998/api/tags/process.txt
Send the text as the POST body, and embed webtags in the same way as you would in a file.
The API will return the body text with the tags processed like they would be in a file.
You must use the full webtag format <#tagname [param=val]>.
This allows you to have data formats other than JSON (eg plain CSV), its free format, and full access to all the usual web tag parameters.
HTTP Forwarders
This option appears in station settings for the HTTP Custom Sender (Ecowitt), and when using the HTTP Station (Ecowitt) for extra sensors.
You just specify the forwarding URLs, and the data received from your stations Custom Server option is forwarded as-is to the list of URLs.