Hi!
Im trying to implement a trackingfeature in Domoticz
Example: my phone generate a link every ten minutes to google maps to where i am and sends this link to a textsensor in domoticz. If my wife has to know where i am she just has to click on the sensor to be redirected to google maps with my position.
This is helpful for people who needs to track their kids or demented parents or similiar....
Even better yet, implement a map straight into Domoticz with a logging of your moves.
Clickable weblink in sensor for geotracking
Moderators: leecollings, remb0
Clickable weblink in sensor for geotracking
- Attachments
-
- 2016-02-18 11_24_51-Domoticz.png (9.24 KiB) Viewed 1582 times
-
- Posts: 73
- Joined: Monday 02 November 2015 18:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Clickable weblink in sensor for geotracking
It is possible to use HTML tags in the text dummy devices. I use it myself two create two lines (<br>) or to underline text (<u>). No reason why other tags won't work.
so try this, wrap the url in the <a> tag like this:
so try this, wrap the url in the <a> tag like this:
Code: Select all
<a href="ENTER URL HERE">TEXT TO DISPLAY</a>
Re: Clickable weblink in sensor for geotracking
Worked wonders!
Is it possible to controll the fontcolor aswell? It comes out white witch is kinda hard to make out from the log page.

- gizmocuz
- Posts: 2486
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Clickable weblink in sensor for geotracking
Even that you can "style"
Quality outlives Quantity!
-
- Posts: 267
- Joined: Tuesday 14 January 2014 14:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Clickable weblink in sensor for geotracking
BluesBro wrote:Hi!
Im trying to implement a trackingfeature in Domoticz
Example: my phone generate a link every ten minutes to google maps to where i am and sends this link to a textsensor in domoticz. If my wife has to know where i am she just has to click on the sensor to be redirected to google maps with my position.
This is helpful for people who needs to track their kids or demented parents or similiar....
Even better yet, implement a map straight into Domoticz with a logging of your moves.
Are there instructions somewhere on how you did this? If not, could you share please?
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
Re: Clickable weblink in sensor for geotracking
Not exactly a clikable link but I'm using Tasker in Android phone to update Domoticz text sensor every 10 min while on the move.
http://domoticz_ip:port/json.htm?type=command¶m=udevice&idx=XX&nvalue=0&svalue=<iframe width="365" height="300" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/pl ... 27.2281499" allowfullscreen></iframe>
Log can be viewed for location history.
Maybe generating a static Google map image would scale better.
Snapshot attached
http://domoticz_ip:port/json.htm?type=command¶m=udevice&idx=XX&nvalue=0&svalue=<iframe width="365" height="300" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/pl ... 27.2281499" allowfullscreen></iframe>
Log can be viewed for location history.
Maybe generating a static Google map image would scale better.
Snapshot attached
Who is online
Users browsing this forum: No registered users and 1 guest