Page 1 of 1

Python plugins: Adding www and sslwww port numbers to Settings?

Posted: Monday 27 February 2023 22:10
by psubiaco
Hi.
I've developed a python plugin managing I/Os modules that have the following feature:
when someone push a button, the python plugin is able to activate a scene/group
To activate a scene/group, python plugin uses JSON API, calling the URL
127.0.0.1:8080/json.htm?type=command&param=switchscene&idx=10&switchcmd=Toggle

The problem is that someone uses a port different from 8080, someone have also SSL port enabled, and I don't know a way to know in advance the listen ports of Domoticz.
For this reason I ask: is there a way for the python plugin to know the www and sslwww ports of Domoticz, or if it's possible to add in Settings dict those information?
Thanks a lot!