having problems with the direct local json sending. The problem is that a value is send via frame to the lametric, the Http server gives me a 200, so it looks like all went well, Problem is that the value often not is being updated?. For example I send the temperature of the thermostat to the lametric and its not being updated all the time. I have tested this many time with same result. Sometimes its updating Ok but sometimes its not?
a very strange situation, if you send the value multiple times it works, it think its a small bug!
Please help?
Pieter
I haven't tried this so far - I don't know how I would provide the local push url to the user who installed the app. I can see it in the developer backend. but if you install it - how would you know the exact url?
thanks Alex really great!
You can find my tutorial (LaMetric local push using PHP) here:
http://blog.aruehe.io/lametric-local-push/
I'm writing a blog post right now, showing how to create an indicator app and how to use local push with php, will post here.
ok thanks
what can i do with index?
chart data?
do have an example or explanation for these
@Knuvers:
So far the speed of the text can only be set globally in the app (https://lametric.freshdesk.com/support/discussions/topics/6000033516/page/last#post_6000069223).
@Knuvers, A G:
The parameters you can use are the ones shown in the developer backend for your app (e.g. index, text, chart data, icon...). What exactly are you looking for?
Ok great :-)
i can confirm the local link push is working perfect!
very nice function!!
now im trying to find out what parameter i all can use in the json push
for example how can i set the speed of the text?
is there an overview of all the options we can use in the json?
cant find it on the forum...
ok i did that
why is com.lametric.xxxx still in the local link?
this looks like the local push is still going to lametric servers?
https://10.0.0.116:4343/api/v1/dev/widget/update/com.lametric.529fe44e85bedf/1
Dear Knuvers,
The way it works is almost the same as if you push via cloud. First you should create "Indicator App".
Exact local URL is available in your application details tab on developer.lametric.com.
In your particular case your URL is missing app package name in the URL. Also I want to draw your attention that ../v1/.. part should have letter 'v' in lower case.
Hope it helps.
can you tell exact how to do it? what is the exact url in this sample
i have this below (the token is a fake)
getting a 404
var request = require('request');
var token = "MDQ2ZjNlY2NYjVkNjdhYzI1NGMzMzk0YTFmZjA5MA==";
var url = 'http://10.0.0.116:8080/api/V1/dev/widget/update/'
var postData = JSON.stringify({
"frames": [
{
"index": 0,
"text": "Hallo Piknwir",
"icon": "i275"
}
]
});
console.log(postData);
request({
url: url,
method: 'POST',
headers: {
'Accept': 'application/json',
'X-Access-Token': token,
'Cache-Control': 'no-cache'
},
body: postData
}, function(error, response, body){
if(error) {
console.log(error);
} else {
console.log(response.statusCode, body);
}
});
Knuvers
Hello
During kickstarter question its told that its possible to directly send data to the lametric via internal ip address.
So NOT via IFTTT but directly, lots of people have own steering and dont want to go in the cloud.
Please tell how this is possible
regards & thanks
ps: via mail i asked this question already and not getting the right answer :-(
just referring to IFTTT is not the answer.
8 people like this idea