Clickable weblink in sensor for geotracking

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
BluesBro
Posts: 54
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Clickable weblink in sensor for geotracking

Post by BluesBro »

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.
Attachments
2016-02-18 11_24_51-Domoticz.png
2016-02-18 11_24_51-Domoticz.png (9.24 KiB) Viewed 1582 times
racquemis
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

Post by racquemis »

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:

Code: Select all

<a href="ENTER URL HERE">TEXT TO DISPLAY</a>
BluesBro
Posts: 54
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Re: Clickable weblink in sensor for geotracking

Post by BluesBro »

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.
User avatar
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

Post by gizmocuz »

Even that you can "style"
Quality outlives Quantity!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Clickable weblink in sensor for geotracking

Post by markk »

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.
sajosa
Posts: 3
Joined: Wednesday 30 December 2015 0:28
Target OS: Linux
Domoticz version:
Contact:

Re: Clickable weblink in sensor for geotracking

Post by sajosa »

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&param=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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest