Il faut utiliser «add ingredient»
Voilà c'est tout simple... si ça peut servir à d'autres
Reste plus qu'à attendre le prochain relevé
Code : Tout sélectionner
<div style="width:400px;min-height : 250px;" class="cmd #history# tooltips cmd-widget conso#id#" data-type="info" data-subtype="numeric" data-cmd_id="#id#" title="#collectDate#">
tototesttata
<div id="container2" style="width: 300px;height: 100px; margin: 1em auto;"></div>
<script>
/**
* Highcharts Linear-Gauge series plugin
*/
(function (H) {
var defaultPlotOptions = H.getOptions().plotOptions,
columnType = H.seriesTypes.column,
wrap = H.wrap,
each = H.each;
defaultPlotOptions.lineargauge = H.merge(defaultPlotOptions.column, {});
H.seriesTypes.lineargauge = H.extendClass(columnType, {
type: 'lineargauge',
//inverted: true,
setVisible: function () {
columnType.prototype.setVisible.apply(this, arguments);
if (this.markLine) {
this.markLine[this.visible ? 'show' : 'hide']();
}
},
drawPoints: function () {
// Draw the Column like always
columnType.prototype.drawPoints.apply(this, arguments);
// Add a Marker
var series = this,
chart = this.chart,
inverted = chart.inverted,
xAxis = this.xAxis,
yAxis = this.yAxis,
point = this.points[0], // we know there is only 1 point
markLine = this.markLine,
ani = markLine ? 'animate' : 'attr';
// Hide column
point.graphic.hide();
if (!markLine) {
var path = inverted ? ['M', 0, 0, 'L', -5, -5, 'L', 5, -5, 'L', 0, 0, 'L', 0, 0 + xAxis.len] : ['M', 0, 0, 'L', -5, -5, 'L', -5, 5,'L', 0, 0, 'L', xAxis.len, 0];
markLine = this.markLine = chart.renderer.path(path)
.attr({
fill: series.color,
stroke: series.color,
'stroke-width': 1
}).add();
}
markLine[ani]({
translateX: inverted ? xAxis.left + yAxis.translate(point.y) : xAxis.left,
translateY: inverted ? xAxis.top : yAxis.top + yAxis.len - yAxis.translate(point.y)
});
}
});
})(Highcharts);
$('#container2').highcharts({
chart: {
type: 'lineargauge',
inverted: true
},
navigation: {
buttonOptions: {
enabled: false
},
},
title: {
text: 'Valeur du ph'
},
credits: {
enabled: false
},
legend: {
enabled: false
},
yAxis: {
min: 6.4,
max: 8.4,
tickPositions: [6.4,6.8,7.2,7.6,8,8.4],
tickLength: 1,
tickWidth: 1,
tickColor: '#C0C0C0',
gridLineColor: '#C0C0C0',
gridLineWidth: 1,
minorTickInterval: 5,
minorTickWidth: 1,
minorTickLength: 5,
minorGridLineWidth: 0,
startOnTick: true,
endOnTick: true,
labels: {
format: '{value}'
},
labels: {
enabled: true
},
opposite: false,
title: {
text: null
},
plotBands: [{
from: 6.4,
to: 6.8,
color: '#DF5353' // green
}, {
from: 6.8,
to: 7.2,
color: 'orange' // yellow
}, {
from: 7.2,
to: 7.6,
color: 'green' // yellow
},{
from: 7.6,
to: 8,
color: 'orange' // yellow
},{
from: 8,
to: 8.4,
color: '#DF5353' // red
}]
},
xAxis: {
labels: {
enabled: false
},
tickLength: 1,
min: 0,
max: 10
},
series: [{
name: 'PH',
data: [#state#],
animation: true,
marker: {
symbol: false
},
showInLegend: false,
color: 'white',
dataLabels: {
enabled: true,
useHTML: true,
y: 25,
align: 'center',
style: {
color: 'white'
}
}
}]
});
</script>
</div>
Bonsoir,Bello65 a écrit : ↑16 avr. 2018, 20:33Il faut demander l'accès à RiiotLabs (@ben_riiot). Ils enverrons un lien car actuellement en beta IFTTT, donc accès limité.
Il faut se connecter à IFTTT et garder la page ouverte puis cliquer sur ce lien en étant connecté et on accède à l’applet Blue on rentre ces identifiants Blue et ensuite on le voit dans ses services
C’est comme ça que j’ai faitla première fois
Envoyé de ma en utilisant Tapatruc
SalutJB89 a écrit : ↑26 juil. 2018, 19:17Bonjour à tous,
Je viens de recevoir mon Blue Connect +, et mes premières impression sont très positives... La mise en service est très simple, on peut faire un premier relevé immédiatement en bluetooth et ensuite j'ai les mises à jour régulières via Sigfox sans raté alors que je suis dans une zone où la réception est théoriquement moyenne... Les valeurs semblent cohérentes (pas de variations anormales entre 2 mesures) et je ne m'attendais même pas à ce que ce soit si efficace...
Le support m'a donné un lien pour IFTTT et je récupère sans problème les infos dans Jeedom, ça me permet de gérer la filtration.
Je souhaite valoriser la date de dernier relevé mais j'ai un problème de fuseau horaire, avec quelle formule je pourrais ajouter 2 heures à la chaine suivantes reçue via IFTTT, par exemple "26/07/2018 16:19:51" ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 16 invités