Hallo,
ich komme nicht mehr weiter und finde auch keine passenden Hinweise mehr. Brauche Tipp !
Problem: DbLog-Daten aus der sqlite von fhem kommen lt. Konsole vom Firefox im Browser an, werden jedoch in smartVISU nicht dargestellt.
Konfiguration:
- Raspbian GNU/Linux 8 (jessie)
- fhem läuft FeatureLevel 5.9 mit DBLog und sqlite3.
- Web-Browser ist lighttp. error.log zeigt keine Auffälligkeiten.
- php5-sqlite ist installiert. Datenbank-Kontakt steht, siehe Konsole vom Firefox.
- smartVisu V2.8
- Einbindung des widget_dbplot gemäß Anleitung https://github.com/ToGe3688/db_plot_widget.
Konfiguration smartVISU:
<div class="block" style="width: 100%">
<div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
<div data-role="collapsible" data-collapsed="false">
<h3>Regen und Temperatur</h3>
{% include "Plot_RainTemp_Plugin.html" %}
</div>
</div>
</div>
und Plot_RainTemp_Plugin.html:
{% import "widget_dbplot.html" as dbPlot %}
{% set plotOptions =
[
{
'update_trigger_gad': 'AW.OUTSIDE.Weather.KNX.Temp_fhem',
'device': 'CALC_WETTER_KNX_INTERNET_TEMP_IST_MIN',
'reading': 'temp',
'config': {
'name': 'Temp',
'type': 'area',
'fillOpacity' : '0.2'
}
},
{
'update_trigger_gad': 'AW.OUTSIDE.Weather.Netatmo_Zuhause_RainHour',
'device': 'INTERNET_WETTER_NETATMO_ZUHAUSE',
'reading': 'rain_hour',
'config': {
'name': 'Regen pro Stunde',
'type': 'spline',
'unit': 'mm',
'color': '#fff',
'yAxis': 20
}
},
{
'update_trigger_gad': 'AW.OUTSIDE.Weather.Netatmo_Zuhause_RainDay',
'device': 'INTERNET_WETTER_NETATMO_ZUHAUSE',
'reading': 'rain_day',
'config': {
'name': 'Regen pro Tag',
'type': 'spline',
'unit': 'mm',
color: 'gray',
'yAxis': 20
}
}
]%}
{% set yAxisOptions = [
{
title: {
text: 'Temperatur',
},
labels: {
format: '{value} °C',
},
opposite: true
},
{
title: {
text: 'Regen pro Std',
},
labels: {
format: '{value} mm',
}
},
{
title: {
text: 'Regen pro Tag',
},
labels: {
format: '{value} mm',
}
}
]%}
{{ dbPlot.linePlot('dbPlot_OUTSIDE_Weather_Rain_Temp', 'Regen und Temperatur', '1440', '', 'RegTempY', '', plotOptions, yAxisOptions, '', 300) }}
Die update_trigger_gads sind in fronthem mit fhem verbunden.
smartVisu UI, siehe anlage.
Firefox-Konsole, siehe Anlage
In der Firefox Konsole sieht man, dass die Daten von der sqlite3 im Browser ankommen.
Wie kann ich weiter machen ? Haben die anderen jquery-Mobile-Fehler etwas damit zu tun ? 404="Source map missing or inaccessible"
Danke,
Jörg
Hallo Jörg,
mit der 2.8er smartVISU hatte ich da auch immer Probleme.
Seit ich die 2.9er nehmen funktioniert das richtig gut :D
Bei der 2.9er sind auch einige andere Widgets besser angepasst und z.B.: im KNX Forum findet man viel Infos.
LG
Michael