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

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
psubiaco
Posts: 222
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

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

Post 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!
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest