I tried to push infos to my app with curl / php... curl is installed - if i modify the x-access-token i am getting an error... with the correct token, i am getting no response...
hmmm got an eMail that said "new replies" - something about the "api key"?!?!?!
the code above is my try for an indicator app - but doesnt work... found an tutorial that said, i need an api key and to get it i need the client id... but indicator apps doenst have client id's i think....
indicator pull app is working... but push app doenst work für me...
A
Anatol
said
almost 8 years ago
Are you operating inside your home network? If yes, you don't need to create an app, you can push directly to the LaMetric.
A
Anatol
said
almost 8 years ago
I wrote a php script for my local home web server, I attach it, see if it helps. You can pass certain URL variables.
Be aware that it includes a file at start where it gets $apikey, $ip, $port from. You need to create that too
Sascha
Hello everyone...
first: sorry for my english...
I tried to push infos to my app with curl / php... curl is installed - if i modify the x-access-token i am getting an error... with the correct token, i am getting no response...
the code:
Whats wrong?
This code works for my app:
Empty response should be ok, if the request was successful.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstSascha
Forgot one line:
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
....but doenst work :(
Sascha
hmmm got an eMail that said "new replies" - something about the "api key"?!?!?!
the code above is my try for an indicator app - but doesnt work... found an tutorial that said, i need an api key and to get it i need the client id... but indicator apps doenst have client id's i think....
indicator pull app is working... but push app doenst work für me...
Anatol
Are you operating inside your home network? If yes, you don't need to create an app, you can push directly to the LaMetric.
Anatol
I wrote a php script for my local home web server, I attach it, see if it helps. You can pass certain URL variables.
Be aware that it includes a file at start where it gets $apikey, $ip, $port from. You need to create that too
Sascha
No, not local... external server...
A lex
This code works for my app:
Empty response should be ok, if the request was successful.
Sascha
THANK YOU - that works!
-
How to pull data from external site to display?
-
nodejs request "gets acces denied"
-
curl to python for eventghost
-
Push text from Eventghost to LaMetric via python
-
Basic API pull and json parse example....
-
A guide for starting an app?
-
A small wrapper to push your just created JIRA issues to your LaMetric.
-
Simple project to push home consumption data to be shown on a Lametric device
-
Interface to have Slack send messages to a LaMetric Time
-
Very simple module to push frames to LaMetric
See all 149 topics