Hi all,
I'm discovering DZvents and it's quite nice!
I'm using it to check my doors, but i would like to send a SMS (with gammu) if notification is needed.
I need 2 things:
1- create a tempory file with a defined text from the script (ex: door open since 5 min)
2- delete the tempory file created earlier after the code has been sent
Is it possible?
thanks
How to create & delete a file from dzvents?
Moderator: leecollings
-
n1c0l45
- Posts: 37
- Joined: Monday 25 April 2016 9:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.4834
- Location: France
- Contact:
Re: How to create & delete a file from dzvents?
Not possible to do that with Lua?
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: How to create & delete a file from dzvents?
If you don't find a solution in lua you could also use php. file_put_contents will create the file, unlink will delete it.
-
dannybloe
- Posts: 1355
- Joined: Friday 29 August 2014 11:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Ermelo
- Contact:
Re: How to create & delete a file from dzvents?
Well, Lua has methods to create files. Search google 'Lua create file' and you have loads of hits and examples 
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Who is online
Users browsing this forum: No registered users and 1 guest