Author Topic: Web page calling  (Read 229 times)

Offline adamj3000

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Web page calling
« on: March 18, 2017, 08:35:41 am »
Hi all,

I am new to Vera controller and I absolutely love it ... I would like to create button on my Vera so when is press it will open web page on my laptop. Is that possible?

All the best,

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4340
  • Karma: +238/-118
Re: Web page calling
« Reply #1 on: March 27, 2017, 07:53:24 am »
While possible, it's not very practical.

In order to do something like this, you'll first have to have some sort daemon(service) running on your laptop that is listening for a sign(command) all the time. This might be a web server or something similar, that when it sees a particular request, it executes a command on the laptop.

There are two problems with this, the first is that you'll have to write this listener yourself. That's not a simple task, especially for someone who does not already know how they would go about it.

The second problem is that it dramatically reduces the security of your laptop, leaving it open for anyone to run commands on it. Even if it's just to open a browser. You'd need to build some authentication system into it to protect it and that makes an even more complicated programming job.

A similar question was asked a few weeks ago.

Another way to do it might be to have a Vera scene set a flag in a file, or something, and then have a scheduled task on your laptop that polls Vera regularly and if it sees the file/flag then it pops the browser. It's definitely not a good method, but it's one way.

If you stated your end goal, someone here might be able to suggest a simpler way to do it.
« Last Edit: March 27, 2017, 07:55:15 am by Z-Waver »

Offline adamj3000

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Web page calling
« Reply #2 on: March 28, 2017, 09:16:27 am »
Wow fantastic, thank you so much for your replay.

I think it mind by easier if I explain what I am trying to achieve. So I would like to create the scene so when is triggered the web page is open TV is turreted on. I am watching TV channels trough web browser on TV screen/laptop is connected to TV.

I have Vera plus controller, Amazon Alexsa, Logitech harmony hub.

Is it possible to achieve this easy enough ?

Sorry for my English.

All the best,