What's the best approach?
Maybe you could help me!
Steve
What's the best approach?
It probably depends on whether you want the whole history from your database or if it is ok to start duplicating the data in openHAB.
--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/9f957f6f-47bf-4009-af1c-e041133a78b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Can I switch or change the Image URL by pressing some buttons?
--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/203b9889-b113-4cbe-8ee7-e2daf2d7548c%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/229b189c-8349-44a7-91d8-c380e6603067%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/47D7BA4B-0859-436E-AFC4-D0FBFF66B8EF%40openhab.org.
Steve
function reloadImage(url, id) {
if(imageRefresh) {
document.getElementById(id).src=url + new Date().getMilliseconds();
}
}
if (chart.getRefresh() > 0) {
snippet = StringUtils.replace(snippet, "%setrefresh%", "<script type=\"text/javascript\">imagesToRefreshOnPage=1</script>"); snippet = StringUtils.replace(snippet, "%refresh%", "id=\"%id%\" onload=\"setTimeout('reloadImage(\\'%url%\\', \\'%id%\\')', " + chart.getRefresh() + ")\""); }
.
<script type="text/javascript">imagesToRefreshOnPage=1</script>
.
.
<img style="padding:10px;width:90%" src="/chart?groups=Weather_Chart&period=h&random=1" id="01010101" onload="setTimeout('reloadImage(\'/chart?groups=Weather_Chart&period=h&random=1\', \'01010101\')', 600)">
...I think if the variable imagesToRefreshOnPage is changed to imageRefesh it will work.
--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/2b164f8f-7e01-4e23-bcbf-02e4bc243145%40googlegroups.com.