Search found 18 matches

by mackowiakp
Friday 18 September 2020 12:39
Forum: LUA
Topic: LUA script and selector switch
Replies: 2
Views: 1991

Re: LUA script and selector switch

THX
by mackowiakp
Saturday 12 September 2020 9:00
Forum: LUA
Topic: LUA script and selector switch
Replies: 2
Views: 1991

LUA script and selector switch

I use virtual selector switch to turn on/off, channel up/down of radio receiver. My goal is to move appropriate commands from sensor definition to LUA script. Below current definition of "Radio" sensor: Selector.png The LUA script as shown below, does not work. Of course in case of using LUA ...
by mackowiakp
Sunday 25 August 2019 10:02
Forum: LUA
Topic: Period of time between LUA script executions
Replies: 4
Views: 1531

Re: Period of time between LUA script executions

If you have saved your Lua script as time based, it will be executed every minute.
As I wrote, I am new in LUA. Be so kind to explain what does it mean "save LUA script as time based"
by mackowiakp
Saturday 24 August 2019 17:56
Forum: LUA
Topic: Period of time between LUA script executions
Replies: 4
Views: 1531

Period of time between LUA script executions

I am new in LUA programming, so my question. Below is a little script to light LED on if entrace gate are open and tun it off when closed. As I understand, Domoticz runs such script every minute. That is what I want. Its because it sends WGET command each minute, it restore status of LED in case of ...
by mackowiakp
Wednesday 24 July 2019 5:47
Forum: Suggestions
Topic: MySQL Support
Replies: 20
Views: 8296

Re: MySQL Support

I moved to InfluxDB. I think it is better solution because Domoticz is equipped in ready to use interface to InfluxDB and DB is dedicated to collect measurements. Additionally there is Grafana, that is user defined dashboard available via WEB. The only problem is absence of ready mobile client ...
by mackowiakp
Saturday 18 May 2019 18:11
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz on Qnap
Replies: 32
Views: 27446

Re: Domoticz on Qnap

I just upgraded Domoticz on my x86-64 QNAP to ver 4.9701 using option from Domoticz GUI. As we know, Domoticz operates on different Apache server (called qapache) so some libraries differs from "native" QNAP Apache server. Generally it works but during startup such errors are display: [/share ...
by mackowiakp
Wednesday 30 January 2019 3:27
Forum: Suggestions
Topic: MySQL Support
Replies: 20
Views: 8296

Re: MySQL Support

There is GUI functionally similar tu phpMyAdmin dedicated to InfluxDB. Named Chronograf. I dont know what version of Linux You use, but I have installed "QNAP community repo" on my NAS so InfluxDB, Telegraf, Chronograf and Kapacitor are available directly from QNAP GUI admin console. On Linux based ...
by mackowiakp
Tuesday 29 January 2019 14:39
Forum: Suggestions
Topic: MySQL Support
Replies: 20
Views: 8296

Re: MySQL Support

I think the most easy way to store data in database for log time and for historical analysis is directly use build-in in Domoticz, interface to InfluxDB. It is DB dedicated to collect measurement data. Adding Grafana it is possible to generate custom rapports as charts, create dashboards etc. It is ...
by mackowiakp
Monday 31 December 2018 13:23
Forum: Other questions and discussions
Topic: Obtain history of custom sensor
Replies: 2
Views: 566

Re: Obtain history of custom sensor

OK. THX for answer and PM. it works. But be so king to tell me is any way to specify the range of time the rapport should be generated?
by mackowiakp
Monday 31 December 2018 8:28
Forum: Other questions and discussions
Topic: Obtain history of custom sensor
Replies: 2
Views: 566

Obtain history of custom sensor

I did not find json query in Wiki about how to obtain history (both in graph and number form) of custom sensor. I collect from this sensor infos from distant dust sensor (PPM of dust in air) and nodeMCU (based on EasyESP) rapports every 5 min results of measurements. It is possible to obtain such ...
by mackowiakp
Thursday 13 December 2018 4:54
Forum: Suggestions
Topic: MySQL Support
Replies: 20
Views: 8296

Re: MySQL Support

Maybe try my solution. The "killesr" of SD card are two temporary Domoticz files. That is domoticz.db-shm and domoticz.db-wal. That files are created from beginning each Domoticz (SQLLite) start. So I created tmpfs and moved (linked) it to ramdisk. So most I/O disk operations is done in RAM. My RPi ...
by mackowiakp
Sunday 08 April 2018 10:39
Forum: Switches and Scenes
Topic: Power failure and output state after power-up
Replies: 0
Views: 733

Power failure and output state after power-up

I use RPi in my holiday house in the forest. The problems are frequent commercial power failure even for 2 days. I use small UPS for RPi and it shutdown itself after 1 hour. But lokk at the scenario. I setup one relay (connected vio GPIO pin) to be turn on at 19 PM and turn off at 6 AM. But the ...
by mackowiakp
Saturday 03 March 2018 6:36
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: Problem with RPi Nano
Replies: 3
Views: 4098

Re: Problem with RPi Nano

OK. Finally I got it working. But, is it possible to reverse state of sysfs GPIO outputs in plugin? Of course it is necessary to use command like this:

Code: Select all

/bin/echo 1 > /sys/class/gpio/gpio#/active_low
But is it possible to change it when Domoticz plugin starts ? If so what I have to change?
by mackowiakp
Tuesday 27 February 2018 19:54
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Upgrade from 3.6635 to 3.8314 on QNAP
Replies: 0
Views: 911

Upgrade from 3.6635 to 3.8314 on QNAP

Currently I have installed Domoticz ver. 3.6635. Latest available version of Domoticz in QNAP Club is 3.8314. So I try to upgrade to the newest version available from Domoticz config menu. But it ends with error. It is not possible to upgrade one from QNAP App Center. So I download QPKG install ...
by mackowiakp
Tuesday 27 February 2018 6:24
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: Problem with RPi Nano
Replies: 3
Views: 4098

Re: Problem with RPi Nano

OK. I downloaded and installed plugin.py according to https://www.domoticz.com/wiki/Plugins/GPIO-SYSFS-Switches No lucky so far. Plugin running by itself shows such error: ./plugin.py: line 12: syntax error near unexpected token `(' ./plugin.py: line 12: ` <param field="Mode1" label="GPIO output pin ...
by mackowiakp
Monday 26 February 2018 17:04
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: Problem with RPi Nano
Replies: 3
Views: 4098

Problem with RPi Nano

I installed Domoticz on RPi Nano and it works good. But I have problem with cooperation Domoticz and GPIO. GPIO is set to sysfs GPIO, and it automatically recognised exported pins. But if I use particular pin as output port, it is possible to set/rest it using gpio command but it is not possible ...
by mackowiakp
Friday 21 July 2017 20:01
Forum: Temperature and Weather
Topic: Set default place for Dark Sky
Replies: 0
Views: 1519

Set default place for Dark Sky

How to set default city for weather forecast served by Dark Sky in Domoticz? At this moment, it shows me forecast for Warsaw, but I live in Gdynia, 350 km away from Warsaw.