Search found 35 matches

by meyland
Sunday 20 March 2022 14:30
Forum: Python
Topic: Plugins and Python 3.10
Replies: 10
Views: 1684

Re: Plugins and Python 3.10

I've tried to do some debugging in det code. I've modified the function ProcessInbound in class CPluginProtocolLine (PluginProtocols.cpp, line 101), so I got som debug information: void CPluginProtocolLine::ProcessInbound(const ReadEvent* Message) { CConnection* pConnection = Message->m_pConnection ...
by meyland
Tuesday 15 March 2022 21:13
Forum: Python
Topic: Plugins and Python 3.10
Replies: 10
Views: 1684

Re: Plugins and Python 3.10

I have now tried to turn on debug info in the Yamaha Plug-in and there are a lot of info, but no extra info about the error, only the text "Python exception set prior to callback 'onMessage'". Before I upgraded my server to Fedora 35 (and Python 3.10) everything was working.
by meyland
Saturday 12 March 2022 13:10
Forum: Python
Topic: Plugins and Python 3.10
Replies: 10
Views: 1684

Re: Plugins and Python 3.10

I would like to give more information, but the text "Python exception set prior to callback 'onMessage'" is the only message I get. Can you maybe tell me how I can enable more logging.
by meyland
Saturday 12 March 2022 10:18
Forum: Python
Topic: Plugins and Python 3.10
Replies: 10
Views: 1684

Plugins and Python 3.10

Hi Right now I'm running Domoticz version 2022.1 (build 14268) on Fedora 35 and Phyton 3.10.2. I have installed some plug-ins in my Domoticz environment and the most of them are working without problems. But two of them says " Python exception set prior to callback 'onMessage' ", which results in no ...
by meyland
Sunday 14 February 2021 19:18
Forum: Python
Topic: Plugins and Python 3.9.1
Replies: 0
Views: 450

Plugins and Python 3.9.1

According to issue 4487 (github) Domoticz still crashes on exit with Python 3.9.1 Domoticz crashes when there are some configuration changes to a Python Plugin. Can anyone say when this issue will be solved?
by meyland
Saturday 30 January 2021 11:06
Forum: Python
Topic: Python plugin Segmentation fault
Replies: 3
Views: 842

Re: Python plugin Segmentation fault

Thanks for the answer. I will try downgrading Python
by meyland
Saturday 30 January 2021 10:33
Forum: Python
Topic: Python plugin Segmentation fault
Replies: 3
Views: 842

Re: Python plugin Segmentation fault

I have now installed the package "gdb" on my Fedora 33, so I could get som more debug info. I have attached the log and all I've did was selecting the plugin and clicked the update button I've also did a fresh install of Fedora and a fresh compile of Domoticz on the newly create machine with the ...
by meyland
Tuesday 26 January 2021 19:11
Forum: Python
Topic: Python plugin Segmentation fault
Replies: 3
Views: 842

Python plugin Segmentation fault

I have a strange problem. I'm trying to develop af Python Plugin and every time i change ant parameters the plugin creates a segmentation fault. Even the base plugin template create a seg. fault when stopping the plugin. The log shows this: 2021-01-26 18:55:05.541 (Test) Processing 'onStopCallback ...
by meyland
Wednesday 06 January 2021 17:42
Forum: Python
Topic: Simultaneous connections
Replies: 6
Views: 415

Re: Simultaneous connections

Sounds good. Are there any examples on how to use asyncio?
by meyland
Wednesday 06 January 2021 6:54
Forum: Python
Topic: Simultaneous connections
Replies: 6
Views: 415

Re: Simultaneous connections

a thought: is it possible to use the asyncio module, ie async and await syntax in a plugin?
by meyland
Tuesday 05 January 2021 7:21
Forum: Python
Topic: Simultaneous connections
Replies: 6
Views: 415

Re: Simultaneous connections

Many thanks, I will look at the examples to night
by meyland
Monday 04 January 2021 20:17
Forum: Python
Topic: Simultaneous connections
Replies: 6
Views: 415

Simultaneous connections

I'm developing a plugin and I need to be able to make about 20-30 simultaneous connections to a website.

I don't know how to make all these connections by using the connection object. Can anyone give me a hint? :D
by meyland
Thursday 06 August 2020 19:00
Forum: Other questions and discussions
Topic: Switches used in?
Replies: 0
Views: 183

Switches used in?

I have a PHP script that updates some Dummy Switches in Domoticz. I have now chosen to use System Pinger instead and therefore need to see where I have used some of my Dummy Switches. Is it possible to get an overview of where a switch is used?
by meyland
Sunday 26 July 2020 23:34
Forum: dzVents
Topic: Router or camera restart
Replies: 23
Views: 1884

Re: Router or camera restart

after running setcap, you need to restart your domoticz service. It took me a while to get it to work, and all I should do was to restart. @waaren, I'm stille looking into the problem I have with the script.I have create a complete test enviroment, so I think is should be possible for me to finde ...
by meyland
Friday 24 July 2020 23:22
Forum: dzVents
Topic: Router or camera restart
Replies: 23
Views: 1884

Re: Router or camera restart

I will give it a try tomorrow
by meyland
Friday 24 July 2020 23:03
Forum: dzVents
Topic: Router or camera restart
Replies: 23
Views: 1884

Re: Router or camera restart

I dont have a updatebeta in my domoticz folder. I have compiled domoticz today from github, so I think I'm on the latest build :-) Could it be something with dz.data or maybe cameraState? Are those datatypes saved ind the database or in th filesystem? I remember that I have some problems with the ...
by meyland
Friday 24 July 2020 22:24
Forum: dzVents
Topic: Router or camera restart
Replies: 23
Views: 1884

Re: Router or camera restart

I'm logging to a OS file in /var/log and the logfile does not contain any errors. I think there are som errors in my installation of Domoticz, but I can't find id.

I think the reset script dies at the line where "secondsAgo >= 20: true" should be printed without any error messages.
by meyland
Friday 24 July 2020 22:00
Forum: dzVents
Topic: Router or camera restart
Replies: 23
Views: 1884

Re: Router or camera restart

Just some extra info. All my existing dzVents scripts are working as expected
by meyland
Friday 24 July 2020 21:44
Forum: dzVents
Topic: Router or camera restart
Replies: 23
Views: 1884

Re: Router or camera restart

Yes, you are right, I misunderstood you, sorry. I have now tried the new script, but it only gave this in the log filen: 2020-07-24 21:34:54.185 (System Alive - Camera04) Lighting 2 (Ping - Camera04) 2020-07-24 21:34:54.215 Status: dzVents: Info: Handling events for: "Ping - Camera04", value: "Off ...
by meyland
Friday 24 July 2020 21:12
Forum: dzVents
Topic: Router or camera restart
Replies: 23
Views: 1884

Re: Router or camera restart

I have checked and double checked the script and it is just as you wrote it, the only change I have made is the idx. The camera has idx 370 and the plug has idx 369 scriptVar = 'cameraReset' return { on = { devices = { 370, }, customEvents = { scriptVar, } }, data = { cameraState = { history = true ...