Search found 31 matches

by Lomax
Monday 14 August 2017 17:16
Forum: Utility
Topic: How to configure Internet usage meter?
Replies: 0
Views: 1295

How to configure Internet usage meter?

My router reports bytes sent/received as an accumulated integer, and I would like to track the daily usage in Domoticz. I added a virtual "RFXMeter Counter" but every time the router reports usage this is added to the previous total, so yesterday I used (apparently) 18446744073709552000 bytes ...
by Lomax
Sunday 13 August 2017 13:37
Forum: Python
Topic: Create plugin/script to send notifications via SMS gateway
Replies: 1
Views: 1525

Re: Create plugin/script to send notifications via SMS gateway

The answer, of course, is to use MQTT through a Node-Red flow, which makes it dead easy not only to push the UDP data, but also to set up the ASCII encoding function. https://www.domoticz.com/wiki/MQTT Edit: Specifically, my "Encode SMS" function in Node-Red looks like this: var beg = "<<<"; var end ...
by Lomax
Wednesday 09 August 2017 21:45
Forum: Cameras
Topic: IVPort Raspberry Pi camera multiplexer, for multiple CSI cameras
Replies: 3
Views: 2426

Re: IVPort Raspberry Pi camera multiplexer, for multiple CSI cameras

In case anyone's interested in using multiple CSI connected surveillance cameras with the Pi, see also this discussion on the Raspberry Pi forums: CSI FPC DIP15 to round cable
by Lomax
Wednesday 09 August 2017 21:39
Forum: Cameras
Topic: IVPort Raspberry Pi camera multiplexer, for multiple CSI cameras
Replies: 3
Views: 2426

Re: IVPort Raspberry Pi camera multiplexer, for multiple CSI cameras

F-it, I went ahead and ordered one anyway, the two port version. Hopefully I'll be able to set up a simple switch in Domoticz controlling the GPIO pin which controls the multiplexer, then schedule this to switch between the two attached cameras and email a snapshot from each one every X hours. I ...
by Lomax
Monday 07 August 2017 19:29
Forum: Cameras
Topic: IVPort Raspberry Pi camera multiplexer, for multiple CSI cameras
Replies: 3
Views: 2426

IVPort Raspberry Pi camera multiplexer, for multiple CSI cameras

In the interest of minimising power usage (my application is solar/battery powered), and getting the most out of the on-board video acceleration, I would like to use only RasPi CSI camera connected cameras - but I want to connect more than one such camera. It seems others have had the same thought ...
by Lomax
Sunday 06 August 2017 22:47
Forum: Python
Topic: Create plugin/script to send notifications via SMS gateway
Replies: 1
Views: 1525

Create plugin/script to send notifications via SMS gateway

I've got a Sierra Wireless 3G/4G modem/router that allows me to send SMS messages by simply throwing it a UDP message. From the ALEOS Software Configuration User Guide : Example: You want to send the following message: “Test message” to phone number (510) 555-4200. To use this feature, convert the me ...
by Lomax
Tuesday 01 August 2017 18:39
Forum: Suggestions
Topic: General Modbus support
Replies: 36
Views: 23035

Re: General Modbus support

Okay, I have shelved my python scripts for now and I have found that I can get things roughly working with NodeRed and to do it I am using: https://flows.nodered.org/node/node-red-contrib-modbus Because I am using serial I am using mbusd which I just recently discovered and it is working well so ...
by Lomax
Tuesday 01 August 2017 18:38
Forum: MySensors
Topic: Building a wired RS485 Mysensor network
Replies: 12
Views: 8001

Re: Building a wired RS485 Mysensor network

@bigcat: Did you get anywhere with the air conditioning & RS485?
by Lomax
Monday 17 April 2017 4:41
Forum: MySensors
Topic: Building a wired RS485 Mysensor network
Replies: 12
Views: 8001

Re: Building a wired RS485 Mysensor network

I might be interested in putting a bounty up for native RS485/Modbus support in Domoticz, if anyone here thinks they can create it?
by Lomax
Saturday 15 April 2017 21:07
Forum: Suggestions
Topic: General Modbus support
Replies: 36
Views: 23035

Re: General Modbus support

I might be interested in putting a bounty up for this functionality, if there are any takers?
by Lomax
Monday 10 April 2017 19:02
Forum: Suggestions
Topic: General Modbus support
Replies: 36
Views: 23035

Re: General Modbus support

+1
by Lomax
Saturday 11 February 2017 19:59
Forum: LUA
Topic: Fetching otherdevices_svalues by index?
Replies: 5
Views: 2190

Re: Fetching otherdevices_svalues by index?

Thanks guys, I think @Egregius has a good point, and though @jvdz's code is a reasonable work-around it doesn't use the index to directly select the sensor, which is what I was hoping for. At some point it might be worth updating otherdevices_svalues to allow integer as well as string indexing.
by Lomax
Monday 06 February 2017 16:55
Forum: LUA
Topic: Fetching otherdevices_svalues by index?
Replies: 5
Views: 2190

Re: Fetching otherdevices_svalues by index?

*bump*
by Lomax
Friday 03 February 2017 2:33
Forum: Other questions and discussions
Topic: Which database table holds virtual "alert" device data?
Replies: 2
Views: 996

Which database table holds virtual "alert" device data?

I wanted to clear out some values on a virtual "alert" sensor but I'm unable to find the table which contains the values. sqlite> .tables BackupLog LightingLog SceneTimers Cameras Meter Scenes CamerasActiveDevices Meter_Calendar SetpointTimers CustomImages MobileDevices SharedDevices DeviceStatus ...
by Lomax
Friday 03 February 2017 1:11
Forum: LUA
Topic: Fetching otherdevices_svalues by index?
Replies: 5
Views: 2190

Re: Fetching otherdevices_svalues by index?

*bump*
by Lomax
Wednesday 01 February 2017 1:41
Forum: Other questions and discussions
Topic: Delete all historical sensor data (while keeping sensors)
Replies: 2
Views: 2285

Re: Delete all historical sensor data (while keeping sensors)

Allrighty, I'll have a poke around with sqlite3 - after stopping Domoticz, and making a backup copy...
by Lomax
Wednesday 01 February 2017 1:33
Forum: LUA
Topic: Fetching otherdevices_svalues by index?
Replies: 5
Views: 2190

Fetching otherdevices_svalues by index?

I'm quite new to the Domoticz Lua API - how can I read the svalue of a device by index rather than name? All the examples I've seen use the device/sensor name, e.g. otherdevices_svalues["My Sensor"]. I don't like this at all since the name is liable to change, and would prefer to use the device ...
by Lomax
Tuesday 31 January 2017 22:10
Forum: Other questions and discussions
Topic: Dynamically update Domoticz' location from GPS
Replies: 2
Views: 1444

Re: Dynamically update Domoticz' location from GPS

Maybe if the latitude/longitude is stored in domoticz.db then make a script with the following pseudo code that could run every hour Many thanks, that sounds like a viable approach. Since I've already started getting into how the Domoticz scripting engine works I might give it a go. Thinking about ...