Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

How to change Domoticz graph sample time

Domoticz, by default, show 3 graphs: a daily graph with 1 sample every 5 minutes, a monthly  graph and a yearly graph.

In some cases, 5 minutes is a very huge time if sensors data varies quickly: in these cases it's possible to reduce sampling interval for example to 1 minute (databases with sensors data will be much greater). In other cases, sensors data is very slow, so it's possible to set a longer sampling interval to save size and extend flash memory life.

To set a different sampling interval, it's possible to do as shown in the post https://www.domoticz.com/forum/viewtopic.php?f=47&t=10183&start=20#p129866

Edit the file DOMOTICZ_DIR/www/views/setup.html
Search for "shortlogtable" and add the following before the </table>-tag:

<tr>
	<td align="right" style="width:60px"><label><span data-i18n="Interval"></span>: </label></td>
	<td><select id="comboshortloginterval" name="ShortLogInterval" style="width:60px" class="combobox ui-corner-all">
		<option value="1">1</option>
		<option value="5">5</option>
		<option value="10">10</option>
		<option value="15">15</option>
	</select>&nbsp; Minutes
</tr>

Save it, delete your browser-cache and refresh your browser. I had problems with chrome keeping the old setup page even after deleting the cache, but using incognito mode worked to display the new page.
Finally, enter domoticz -> Setup -> Settings -> Log History and set the History value to 1 minute or longer sampling time.

Controlling Domoticz using Telegram app on the smartphone

Telegram is a powerful opensource instant messaging system, that can be used by Domoticz to send notification messages, picture and more on a channel with one or more users. Very useful to send error or status messages!

Also, we described a simple way to get a snapshot photo from an IP camera, when someone ring the bell, and send the picture by Telegram, so one or more users can check who is at the door or gate.

Now, we describe how to install software, on raspbian or debian, to let users send command to Domoticz: this feature is useful when the user want to use Domoticz as a burglar alarm system, and need an easy way to put the alarm system OFF, HOME, AWAY, TEST, ....

From the shell, write

sudo su
apt update
apt install jq lua-socket lua-sec lua-json
cd /tmp
wget -O tgbot1.tgz
tar -xvf 150714dtgbot.tar


TBC

 

 

 

Pin It