Nvidia Shield status

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Bishop
Posts: 22
Joined: Sunday 11 June 2017 14:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Nvidia Shield status

Post by Bishop »

Hello!

I want to create a system where domoticz controls my receiver. I'm still trying to get the hang of controlling the receiver but it's getting along. I would very much like to know how, if possible, I can have Domoticz check the status of my Nvidia Shield. If it's in standby or on. It does not need to control it just 'read' the status.

Scenario:
If TV / Receiver are on I want to have it switch to the cable input.
If TV / Receiver are on and I turn on the Shield I want it to switch to streambox input.
If the Shield is turned of but TV and receiver are still on I want the receiver to switch back to cable.

I can control the receiver at the moment, I just need to be able to read the status of the Shield.

Can someone help me?
Bishop
Posts: 22
Joined: Sunday 11 June 2017 14:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by Bishop »

*bump*

I would really like to be able to tell if the Nvidia Shield is in standby or on.
Timeless
Posts: 41
Joined: Friday 10 June 2016 23:46
Target OS: Linux
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by Timeless »

Does you shield have network connectivity? You could use the ping component and ping your shield once in a while to see if it is turned on or not.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Bishop
Posts: 22
Joined: Sunday 11 June 2017 14:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by Bishop »

That was my first idea.

However, I can still access the Shield when it's in standby. This will only work when it's actually off.

Do you have any other suggestions?
Timeless
Posts: 41
Joined: Friday 10 June 2016 23:46
Target OS: Linux
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by Timeless »

Mmh. so you're shield actually leaves the Wireless ON while in standby? That's energy inefficient.
Ah wait... the shield is running android right? You could disable WiFi while in sleep (should be somewhere in the WiFi settings), this should give the desired output.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Bishop
Posts: 22
Joined: Sunday 11 June 2017 14:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by Bishop »

It's connected through an ethernet cable. Since the shield can also stream games this gave the best results.

I was thinking along another route. Maybe it's possible for domoticz not to ping the shield but a certain app. The app would only become active when it's On but not in Standby or Off.
Timeless
Posts: 41
Joined: Friday 10 June 2016 23:46
Target OS: Linux
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by Timeless »

Ping is also known as ICMP which uses Level 3 to communicate between devices. So "pinging" an app is not actually a thing.

Maybe you can also turn WiFi on and ping the IP assigned to the WiFi interface, when the device enters sleep mode it will disconnect and it will no longer be reachable on that Wireless IP, it will be reachable on the wired IP which is OK since the Wireless IP is used for Domoticz. I don't know if Wireless & Wired can be active simultaneously though since I don't have any wired android devices.

You could ofcourse install a app which can be polled to see if the device is asleep or not. But I cannot help you with that because my lack of knowledge in such a mechanism. Sorry.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Bishop
Posts: 22
Joined: Sunday 11 June 2017 14:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by Bishop »

Timeless wrote:I don't know if Wireless & Wired can be active simultaneously though since I don't have any wired android devices.
As far as I know it cannot. You have to disable ethernet to enable WiFi.
Timeless wrote:You could ofcourse install a app which can be polled to see if the device is asleep or not. But I cannot help you with that because my lack of knowledge in such a mechanism. Sorry.
This is what I ment with pinging an app, polling is a better word. I do not have enough Android knowledge to know of such an app myself. Does anyone have any suggestions?
freetribes
Posts: 4
Joined: Thursday 17 December 2020 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nvidia Shield status

Post by freetribes »

Hi,
have you tested the "Macrodroid" application? It is possible with this to ensure that when the phone unlocks, it does an action.
The action can be a wget request.
We can imagine that it is a request on a php API which controls a virtual switch on domoticz, do you understand the idea?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest