checked and working.
Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
Moderator: leecollings
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
Hi, not sure to really had understood all.. but here are some possibilities:
Create a switch in domoticz (dummy switch)
On the On action you can put the script command to create the uservariable into domoticz (few lines only will do the trick)
On your calendar you have to create an entry like that : #cmd#yourswitchname:On:0
for your required date/time
-
- Posts: 46
- Joined: Wednesday 07 October 2015 0:43
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
The problem I am having with this is that if I want to leave 12:00, I need to set calendar switch on time to 08:00, it will start a (timer) switch that is calculating outside temperature, and depending of the outside temperature the preheating progress is starting some time between 30 minutes and 4 hours before I leave.zak45 wrote: ↑Friday 16 November 2018 18:40Hi, not sure to really had understood all.. but here are some possibilities:
Create a switch in domoticz (dummy switch)
On the On action you can put the script command to create the uservariable into domoticz (few lines only will do the trick)
On your calendar you have to create an entry like that : #cmd#yourswitchname:On:0
for your required date/time
I would like to set my departure time instead of -4 hours in my calendar, and that time will then end up in a user variable and control it from that.
Now I always have to think in my head when I make the calendar entry, -4 hours, not a big problem I agree, but would be nice to solve!
Why I am having this problem is that I am working shift hours, irregular hours, and I have my shift schedule in a google calendar.
If I create a dummy switch as you said, it wouldn´t solve the problem that I have to think 4 hours ahead, or would it?
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
this will not work in this case...Now, if your working time is more or less, always the same, you can create this scenario from your shift start.
Let's suppose: working time is 8 hours.
You can in this case create your calendar entry from the start and say to execute the command 4 hours after.
Edit:
even more simple is to create an event (device) based on your At work device name e.g.
commandArray = {}
if devicechanged['Google at work'] == "On" then
commandArray['Yourdevice'] = 'On AFTER 4 HOURS'
end
return commandArray
-
- Posts: 46
- Joined: Wednesday 07 October 2015 0:43
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
But I want this to execute 4 hours before, not after!zak45 wrote: ↑Saturday 17 November 2018 11:14this will not work in this case...Now, if your working time is more or less, always the same, you can create this scenario from your shift start.
Let's suppose: working time is 8 hours.
You can in this case create your calendar entry from the start and say to execute the command 4 hours after.
Edit:
even more simple is to create an event (device) based on your At work device name e.g.
commandArray = {}
if devicechanged['Google at work'] == "On" then
commandArray['Yourdevice'] = 'On AFTER 4 HOURS'
end
return commandArray
This is what I want to accomplish, https://github.com/riksarchen/carheater_domoticz <-- Step 1, INSTALLATION: First of all you need to install BakSeeDaa's google calendar script is obsolete, and dont´work anymore..
That is a secondary issue though,
I haven´t got it running just yet.
In my .ics file I have a couple of entries that loops/repeat in a 5 week period, and none of them are working.
If I create a "test" entry, it does however work, and I am having problem figuring out why.
Is it because of the timezone entry? Can you check this out?
Here you have a working entry:
- Spoiler: show
- Spoiler: show
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
If you think in different way, mean from start, this is why I said AFTER.
working hour for today :
start at 08:00 AM
end 04:00 PM
when switch Google-At work will be set to 'On', this will execute some other task 4 hours AFTER, which is 4 hours BEFORE the end.
for you calendar entry, this is the reason :
RRULE:FREQ=WEEKLY;WKST=MO;INTERVAL=5;BYDAY=TH
the rrule has not been yet implemented (reccuring rule:), will see how to deal with that when had some times...
-
- Posts: 46
- Joined: Wednesday 07 October 2015 0:43
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
Oh, that is an idea!zak45 wrote: ↑Tuesday 20 November 2018 11:47If you think in different way, mean from start, this is why I said AFTER.
working hour for today :
start at 08:00 AM
end 04:00 PM
when switch Google-At work will be set to 'On', this will execute some other task 4 hours AFTER, which is 4 hours BEFORE the end.
for you calendar entry, this is the reason :
RRULE:FREQ=WEEKLY;WKST=MO;INTERVAL=5;BYDAY=TH
the rrule has not been yet implemented (reccuring rule:), will see how to deal with that when had some times...
I will try this some day!
Thanks, good to know that there was a reason for this, now I can stop pulling my hair.

I will put in theese manually for a couple of weeks then, and hope that this rrule can be implemented in the future.

-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
New version uploaded.
Manage now recurrent rule (rrule).
for existing installation, only replace iCal.py & en_en.lng
Manage now recurrent rule (rrule).
for existing installation, only replace iCal.py & en_en.lng
-
- Posts: 32
- Joined: Sunday 25 March 2018 23:30
- Target OS: Windows
- Domoticz version: 11804
- Location: Budapest/Hungary
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
hi there,
i use this plugin since couple of months, seems, working fine, except what i found few days ago in log:
what could be wrong?
Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)]
thanks in advance!
i use this plugin since couple of months, seems, working fine, except what i found few days ago in log:
- Spoiler: show
what could be wrong?
Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)]
thanks in advance!
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
this should not happend and indicate a problem.moo2089 wrote: ↑Wednesday 09 January 2019 20:40 2019-01-09 13:00:32.340 Error: (ical) 'onHeartbeat' failed 'TimeoutExpired'.
2019-01-09 13:00:32.340 Error: (ical) ----> Line 231 in C:\Program Files (x86)\Domoticz\plugins\iCal\plugin.py, function onHeartbeat
2019-01-09 13:00:32.356 Error: (ical) ----> Line 500 in C:\Program Files (x86)\Domoticz\plugins\iCal\plugin.py, function startShell
Problem is that plugin do not have been able to launch the subprocess (another py program) in timely manner (2 seconds) and fall in timeout.
Put the plugin in debug mode and show the output.
-
- Posts: 32
- Joined: Sunday 25 March 2018 23:30
- Target OS: Windows
- Domoticz version: 11804
- Location: Budapest/Hungary
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
here it is:
- Spoiler: show
Last edited by moo2089 on Thursday 10 January 2019 0:05, edited 1 time in total.
-
- Posts: 32
- Joined: Sunday 25 March 2018 23:30
- Target OS: Windows
- Domoticz version: 11804
- Location: Budapest/Hungary
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
dont know, going to monitor issue
-
- Posts: 32
- Joined: Sunday 25 March 2018 23:30
- Target OS: Windows
- Domoticz version: 11804
- Location: Budapest/Hungary
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
you are right, problem was comodo internet security with lot of 100% cpu usage, with windows firewall no error at all, now i am testing comodo firewall only.
aim is to get secure solution to keep domoticz server in safe, i am not really trusting in windows built-in firewall even if it was combined with firewall control,
lets see the result
aim is to get secure solution to keep domoticz server in safe, i am not really trusting in windows built-in firewall even if it was combined with firewall control,
lets see the result
-
- Posts: 31
- Joined: Saturday 11 March 2017 18:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
Hello all,
I am trying to instal this plugin on my domoticz (raspberry PI with domoticz V4.10355)
I have my own calendar server (radicale) on the same raspberry.
And I have 2 problem:
1) __Domoticz not return OK for create uservariable__
2)Error : <class 'requests.exceptions.SSLError'> ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)
(I use a auto-certified certificate)
See my log
Have you an idea ?
Thank
I am trying to instal this plugin on my domoticz (raspberry PI with domoticz V4.10355)
I have my own calendar server (radicale) on the same raspberry.
And I have 2 problem:
1) __Domoticz not return OK for create uservariable__
2)Error : <class 'requests.exceptions.SSLError'> ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)
(I use a auto-certified certificate)
See my log
Have you an idea ?
Thank
- Spoiler: show
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
hi,Martial wrote: ↑Saturday 02 March 2019 12:06 Hello all,
I am trying to instal this plugin on my domoticz (raspberry PI with domoticz V4.10355)
I have my own calendar server (radicale) on the same raspberry.
And I have 2 problem:
1) __Domoticz not return OK for create uservariable__
2)Error : <class 'requests.exceptions.SSLError'> ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)
(I use a auto-certified certificate)
1) Plugin use HTTP (not HTTPS) connection to Domoticz and without authentication.
take a look on your settings and verify this parameter (you need to adapt it to your need): 2) command you have put do not allow to download the ics file.
I suggest that you try your command via curl if network related or shell .
Once you are able to get your ics file, just put this instruction to the plugin.
-
- Posts: 31
- Joined: Saturday 11 March 2017 18:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
Hello zak45 and thank you to look at my problems,
1) I don't use authentification nor https for local connection to domoticz, https is only for my calendar and I have exactly the same configuration as you including the language
2) With curl, i need to use -k (--insecure) option because self signed certificate. Can I do that with your plugin ?
Thank
1) I don't use authentification nor https for local connection to domoticz, https is only for my calendar and I have exactly the same configuration as you including the language
2) With curl, i need to use -k (--insecure) option because self signed certificate. Can I do that with your plugin ?
Thank
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
okMartial wrote: ↑Saturday 02 March 2019 13:32 Hello zak45 and thank you to look at my problems,
1) I don't use authentification nor https for local connection to domoticz, https is only for my calendar and I have exactly the same configuration as you including the language
2) With curl, i need to use -k (--insecure) option because self signed certificate. Can I do that with your plugin ?
Thank
1: I think that i see what's wrong.... some changes has been done into last Domoticz version. can you confirm the one you use ?
2:the plugin can do what you need.
if http/https is entered then plugin will execute network connection
else plugin will execute shell command.
What you can do is to create a small shell script to create the ics file by yourself.
in this case, just put full path to it
e.g. /somehome/someusr/somedomoticz/plugins/iCal/mycmd.sh &
-
- Posts: 31
- Joined: Saturday 11 March 2017 18:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz
My current version is the latest stable: 4.103551: I think that i see what's wrong.... some changes has been done into last Domoticz version. can you confirm the one you use ?
OK, but how i give the ics file to the plugin?2:the plugin can do what you need.
if http/https is entered then plugin will execute network connection
else plugin will execute shell command.
What you can do is to create a small shell script to create the ics file by yourself.
in this case, just put full path to it
e.g. /somehome/someusr/somedomoticz/plugins/iCal/mycmd.sh &
Who is online
Users browsing this forum: No registered users and 1 guest