I Installed emoncms on a BananaPiPro with Armbian installed.
Installation works finde, I created an account…everything’s fine.
Then, I wan’t to imprt data via the api.
When I enter the URL in a browser, I get:
URI not acceptable. No controller ‘api’. (post/)
When I use the same URL (with a different apiky) on emoncms.org everything’s working,
So I thing the URL is correct.
I cannot answer why the Emoncms - site home works and the http://my_emoncms/emoncms/api/post did not. The /api/post is not something I have seen before.
The reason you are getting to the “input” api via a “api” api url is because of this little redirection (correction?) in the index.php on emoncms.org but it is not present on the main emoncms repo.
Useful to know. Just spent a while converting to milliseconds…
EDIT - I tried this and the data posting is reported as successful (the http response) but the feed is flagged as inactive.
Note also, Emoncms expects seconds (10 digits) not milliseconds IME.
EDIT 2 - It may work . I’m using the nod-red node and the Javascript does a conversion which may be the problem. Does the input side check on a valid time before sending the success:true response?
I have discovered that if you use a non-numeric date/time in the URI, that is not ‘now’, then although the API responds with OK, the feed is marked as n/a.