Search found 38 matches

by boggiz
Tuesday 28 May 2024 19:49
Forum: Python
Topic: Python uservariable not updated problem
Replies: 2
Views: 1209

Python uservariable not updated problem

Hello all, I have a problem updating an uservariable with python in Domoticz IDE. In the python script below the New value is still not correct after 30 seconds of waiting! import DomoticzEvents as DE import requests import time as time if DE.changed_device_name == "Test Python": New= 35050 url ...
by boggiz
Saturday 11 May 2024 12:36
Forum: Python
Topic: WebServer:8080 thread seems to have ended unexpectedly
Replies: 2
Views: 1116

Re: WebServer:8080 thread seems to have ended unexpectedly

... it's very easy with TRY exceptions !
by boggiz
Friday 10 May 2024 11:21
Forum: Python
Topic: WebServer:8080 thread seems to have ended unexpectedly
Replies: 2
Views: 1116

Re: WebServer:8080 thread seems to have ended unexpectedly

Hello all, I am partially answering myself. By adding 'timeout=5' in requests.get Domoticz no longer crashes but I have a long list of errors in the log: 2024-05-10 11:07:23.092 Error: Traceback (most recent call last): 2024-05-10 11:07:23.092 Error: File "/usr/local/lib/python3.9/dist-packages ...
by boggiz
Thursday 09 May 2024 16:08
Forum: Python
Topic: WebServer:8080 thread seems to have ended unexpectedly
Replies: 2
Views: 1116

WebServer:8080 thread seems to have ended unexpectedly

Hello, I currently upgraded from 2023.1 to 2024.4 because problems with Python & Paho MQTT. Some of them are resolved but not this one : import sys sys.path.append('/usr/local/lib/python3.9/dist-packages/') import DomoticzEvents as DE # voir https://www.domoticz.com/wiki/Python_Events import ...
by boggiz
Sunday 21 April 2024 18:19
Forum: Python
Topic: Python/Domoticz User Variable no update
Replies: 8
Views: 989

Re: Python/Domoticz User Variable no update

@habahabahaba Thank you for the info.
I will test this quickly
by boggiz
Sunday 21 April 2024 16:36
Forum: Python
Topic: Python/Domoticz User Variable no update
Replies: 8
Views: 989

Re: Python/Domoticz User Variable no update

Hello, thx for your responses. For some time I have been trying to develop a DIY Rolling Code to secure the opening of my garage door. I send it a code to MQTT which retransmits it to an ESP on standby. If the code received is correct, the ESP opens the door and transmits a new code to MQTT via a ...
by boggiz
Friday 19 April 2024 18:25
Forum: Python
Topic: Python/Domoticz User Variable no update
Replies: 8
Views: 989

Python/Domoticz User Variable no update

Hello all, How to modify a User Variable with Python/domoticz ? # Callback - reception d'un message du broker def on_message(client, userdata, msg): import DomoticzEvents as Dz # global DE pour mettre a jour ma User Variable NE FONCTIONNE PAS! print('[RECEPTION] Ancienne valeur: ' + Dz.user ...
by boggiz
Thursday 11 April 2024 12:42
Forum: MQTT Auto Discovery
Topic: Domoticz/Docker paho module not found
Replies: 1
Views: 1367

Domoticz/Docker paho module not found

Hello I have a problem with paho.mqtt on my NAS on Domoticz 2023.1 stable with python 3.9.2 From the docker/Domoticz/Terminal pip install paho.mqtt (that install v 2.0) .. succesfully installed I verify the python PATH is up to date python3 import sys sys.path ['', '/usr/lib/python39.zip', '/usr/lib ...
by boggiz
Thursday 21 March 2024 15:16
Forum: DIY Hardware and Protocols
Topic: Transmit a string char from Domoticz to Arduino
Replies: 16
Views: 2402

Re: Transmit a string char from Domoticz to Arduino

I went the other way. I disassembled one of the remotes, soldered the wires to the contacts of the button and connected it to the relay. now Domotics closes the relay for 1 second by emulating the physical pressing of a button :) This is actually another solution which is equivalent to mine, i.e ...
by boggiz
Thursday 21 March 2024 12:50
Forum: DIY Hardware and Protocols
Topic: Transmit a string char from Domoticz to Arduino
Replies: 16
Views: 2402

Re: Transmit a string char from Domoticz to Arduino

@Kedi,
How often do you send raws? Because for me it will be very little because I have the switch inside the garage and the remote controls.

@habahabahaba,
Yes, of course. I have several but the only one I always have with me is my phone!
by boggiz
Thursday 21 March 2024 10:44
Forum: DIY Hardware and Protocols
Topic: Transmit a string char from Domoticz to Arduino
Replies: 16
Views: 2402

Re: Transmit a string char from Domoticz to Arduino

@Kedi
Are you using this solution or have you given up ?
by boggiz
Wednesday 20 March 2024 18:13
Forum: DIY Hardware and Protocols
Topic: Transmit a string char from Domoticz to Arduino
Replies: 16
Views: 2402

Re: Transmit a string char from Domoticz to Arduino

@ habahabahaba Yes! Very interesting
Thanks for the lead! I will try this as soon as possible but it does not seem easy to implement with Domoticz

@Kedi I saw this problem but it seems that Domoticz reestablishes the connection on its own
by boggiz
Wednesday 20 March 2024 11:38
Forum: DIY Hardware and Protocols
Topic: Transmit a string char from Domoticz to Arduino
Replies: 16
Views: 2402

Re: Transmit a string char from Domoticz to Arduino

Yes of course the code will be stored in a Dz variable but the question is how to transmit this code to my Arduino ?
by boggiz
Wednesday 20 March 2024 11:09
Forum: DIY Hardware and Protocols
Topic: Transmit a string char from Domoticz to Arduino
Replies: 16
Views: 2402

Re: Transmit a string char from Domoticz to Arduino

@waltervl Thank you for your reply. I have a SOMFY garage door working with rotating codes that I have not been able to emulate from Domoticz. Currently to do this from Domoticz I installed a 433MHz module in parallel on the switch located inside the garage. This device works perfectly except that ...
by boggiz
Tuesday 19 March 2024 15:32
Forum: DIY Hardware and Protocols
Topic: Transmit a string char from Domoticz to Arduino
Replies: 16
Views: 2402

Transmit a string char from Domoticz to Arduino

Hello, I use the X10RF protocol (433MHz) to transmit to Domoticz the quantity of water consumed every 30 seconds at my home. (via Arduino and RFXcom) Today I am looking to transmit a character string from Domoticz => RFXcom => Arduino. Most of the RFXcom send protocols are On/Off switches which seem ...
by boggiz
Thursday 14 March 2024 19:47
Forum: dzVents
Topic: How to script an Authorization header for OpenUrl
Replies: 4
Views: 1938

Re: How to script an Authorization header for OpenUrl

Many thx to you @smartypantsuk !
I give us a link to encode/decode in Base64
:https://codebeautify.org/base64-encode

Is it secure ???
by boggiz
Thursday 23 March 2023 17:49
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !
Replies: 14
Views: 1089

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Too bad the /Dev/serial/ directory is for new Linuxes but not mine.

Does this correspond to your request?
Vue 7.jpg
Vue 7.jpg (52.62 KiB) Viewed 984 times
by boggiz
Thursday 23 March 2023 12:42
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !
Replies: 14
Views: 1089

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

I only saw /dev/ttyUSB0 nothing else !

When I list tty on the 2 NAS USB was 1-1 on DS215 but 3-1 on DS718.
May be it is the problem because DS215 have only 2 usb ports while DS718 have 3.
Vue 5 NAS DS215+.jpg
Vue 5 NAS DS215+.jpg (230.2 KiB) Viewed 998 times

Vue 6 NAS DS718+.jpg
Vue 6 NAS DS718+.jpg (107.98 KiB) Viewed 998 times