mydomoticz alternative??
Moderator: leecollings
-
- Posts: 8
- Joined: Wednesday 16 November 2016 19:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
mydomoticz alternative??
Hi guys!!
I was wonder if it might be possible to use (or make) an alternative proxy application like mydomoticz!
Thanks in advance and sorry for my possible ignorance about proxy staff
I was wonder if it might be possible to use (or make) an alternative proxy application like mydomoticz!
Thanks in advance and sorry for my possible ignorance about proxy staff
-
- Posts: 331
- Joined: Wednesday 21 December 2016 9:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: current
- Contact:
Re: mydomoticz alternative??
I've never used myDomoticz. But I plan to create this:
- Send a codeword SMS to Domoticz (via MySensors)
- Domoticz enables the internet connection between the private network and the wider internet
- Domoticz calls the script below on my public server, telling me what it's IP address is.
- I log into domoticz/my network from outside.
- After an X amount of time the internet is disconnected again.
The simple PHP script:
- call yourdomain/folder/save.php from Domoticz to reveal the IP address.
- visit yourdomain/folder/index.html to see what the IP address is.
<html>
<head>
<title>what is my ip</title>
</head>
<body>
This page should only be called by Domoticz, so that it will store its IP address.
Just visit index.html in this folder to see the IP address of Domoticz.
<?PHP
function getUserIP()
{
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if(filter_var($client, FILTER_VALIDATE_IP))
{
$ip = $client;
}
elseif(filter_var($forward, FILTER_VALIDATE_IP))
{
$ip = $forward;
}
else
{
$ip = $remote;
}
return $ip;
}
$user_ip = "Domoticz is at" . getUserIP();
echo $user_ip; // Output IP address [Ex: 177.87.193.134]
//file_put_contents("index.html",$user_ip,FILE_APPEND);
file_put_contents("index.html",$user_ip);
?>
</body>
</html>
- Send a codeword SMS to Domoticz (via MySensors)
- Domoticz enables the internet connection between the private network and the wider internet
- Domoticz calls the script below on my public server, telling me what it's IP address is.
- I log into domoticz/my network from outside.
- After an X amount of time the internet is disconnected again.
The simple PHP script:
- call yourdomain/folder/save.php from Domoticz to reveal the IP address.
- visit yourdomain/folder/index.html to see what the IP address is.
<html>
<head>
<title>what is my ip</title>
</head>
<body>
This page should only be called by Domoticz, so that it will store its IP address.
Just visit index.html in this folder to see the IP address of Domoticz.
<?PHP
function getUserIP()
{
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if(filter_var($client, FILTER_VALIDATE_IP))
{
$ip = $client;
}
elseif(filter_var($forward, FILTER_VALIDATE_IP))
{
$ip = $forward;
}
else
{
$ip = $remote;
}
return $ip;
}
$user_ip = "Domoticz is at" . getUserIP();
echo $user_ip; // Output IP address [Ex: 177.87.193.134]
//file_put_contents("index.html",$user_ip,FILE_APPEND);
file_put_contents("index.html",$user_ip);
?>
</body>
</html>
-
- Posts: 55
- Joined: Sunday 23 October 2016 19:49
- Target OS: Linux
- Domoticz version: 4.10778
- Contact:
Re: mydomoticz alternative??
Another possible solution would be to create a remote login portal , if you have a paid web hosting service like hostinger.com or a free web hosting service like 000webhost.com for example.
The login portal will call domoticz
The login portal will call domoticz
Last edited by gerardosamara on Sunday 21 January 2018 10:00, edited 1 time in total.
Domoticz Beta V4.11763 in Debian 10 VM
Domoticz Beta V4.11763 in RPI3
MDAH 0.2.42 + Imperihome Pro V4.3.17
App Android Domoticz Lite V0.2.201
Domoticz Beta V4.11763 in RPI3
MDAH 0.2.42 + Imperihome Pro V4.3.17
App Android Domoticz Lite V0.2.201
-
- Posts: 272
- Joined: Sunday 11 May 2014 11:09
- Target OS: Windows
- Domoticz version: 2023.1+
- Location: NL
- Contact:
Re: mydomoticz alternative??
thinking out loud :
And what about security ?
Online systems are vulnerable and from high value in some circuits.
So any central system is to be expected to get interest from people that are not automation oriented.
A simple redirect based on a detected ip will never be clever in my opinion.
And what about security ?
Online systems are vulnerable and from high value in some circuits.
So any central system is to be expected to get interest from people that are not automation oriented.
A simple redirect based on a detected ip will never be clever in my opinion.
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: mydomoticz alternative??
I do not know much about this but what about a MQTT on a server and a remote request for a r-ssh?
Cloud <-> MQTT <-> Domoticz
Request from the cloud to Domoticz to open a r-ssh
I agree an open port to the external world is not nice... but sometimes is the only way.
Cloud <-> MQTT <-> Domoticz
Request from the cloud to Domoticz to open a r-ssh
I agree an open port to the external world is not nice... but sometimes is the only way.
11101101 - www.machinon.com
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: mydomoticz alternative??
Interesting, so you connect to the Pi from outside by logging into the VPN?
11101101 - www.machinon.com
Re: mydomoticz alternative??
Yes, you can use the official openVPN app on your smartphone.
You have to install it (see www.pivpn.io), and forward one port in your router to the pi. Then you can connect to it, and your internettraffic gets router through your home-network, which means you can control domoticz as if you were at home (webbased interface, domoticz-app, whatever).
You have to install it (see www.pivpn.io), and forward one port in your router to the pi. Then you can connect to it, and your internettraffic gets router through your home-network, which means you can control domoticz as if you were at home (webbased interface, domoticz-app, whatever).
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: mydomoticz alternative??
Anyone seen this: https://github.com/fatedier/frp
11101101 - www.machinon.com
Re: mydomoticz alternative??
I use OpenVPN too with some certificates and it works great both From my laptop and Android Phone (using Domoticz App). Only need to open one port on my firewall (and that is not the default 1194)Hobbybob wrote: ↑Tuesday 20 February 2018 19:09 Yes, you can use the official openVPN app on your smartphone.
You have to install it (see www.pivpn.io), and forward one port in your router to the pi. Then you can connect to it, and your internettraffic gets router through your home-network, which means you can control domoticz as if you were at home (webbased interface, domoticz-app, whatever).
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: mydomoticz alternative??
Out of curiosity, does anyone know the architecture of myDomoticz? Is it a reverse proxy as well?
11101101 - www.machinon.com
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: mydomoticz alternative??
Hobbybob wrote: ↑Tuesday 20 February 2018 19:09 Yes, you can use the official openVPN app on your smartphone.
You have to install it (see www.pivpn.io), and forward one port in your router to the pi. Then you can connect to it, and your internettraffic gets router through your home-network, which means you can control domoticz as if you were at home (webbased interface, domoticz-app, whatever).
n ever got that to work

Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Who is online
Users browsing this forum: No registered users and 1 guest