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¶m=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!
Python plugins: Adding www and sslwww port numbers to Settings?
Moderators: leecollings, remb0
- 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?
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
--
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
Who is online
Users browsing this forum: No registered users and 1 guest