Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Television device and features #1139

Closed
wants to merge 4 commits into from

Conversation

atrovato
Copy link
Contributor

@atrovato atrovato commented Apr 9, 2021

Based on #1138

Add television category, features, icons, and some dashboard actions.

@atrovato atrovato force-pushed the television-device branch 2 times, most recently from 906f3de to 7807a98 Compare April 9, 2021 10:44
@codecov
Copy link

codecov bot commented Apr 9, 2021

Codecov Report

Merging #1139 (4973cba) into master (a201ce3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1139   +/-   ##
=======================================
  Coverage   96.27%   96.27%           
=======================================
  Files         639      639           
  Lines        8110     8110           
=======================================
  Hits         7808     7808           
  Misses        302      302           
Impacted Files Coverage Δ
server/utils/constants.js 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a201ce3...4973cba. Read the comment docs.

@rob-mccann
Copy link
Contributor

rob-mccann commented Apr 9, 2021

I was just working on something similar. I wonder if creating a generic "media player" device might allow us to consolidate audio players too?

Here's my work in progress for reference master...rob-mccann:media-device

@@ -13,7 +13,8 @@ import actions from '../../../actions/dashboard/edit-boxes/editDevicesInRoom';
const SUPPORTED_FEATURE_TYPES = [
DEVICE_FEATURE_TYPES.LIGHT.BINARY,
DEVICE_FEATURE_TYPES.LIGHT.COLOR,
DEVICE_FEATURE_TYPES.LIGHT.BRIGHTNESS
DEVICE_FEATURE_TYPES.TELEVISION.CHANNEL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you want to include it but televisions also have a source (HDMI1, HDMI2, TV etc) in addition to a channel

"channel-up": "Channel up",
"channel-previous": "Previous channel",
"channel-down": "Channel down",
"tools": "Tools",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this common to all TVs?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see below - perhaps this should be Settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my Samsung remote, I see "TOOLS", but settings is acceptable.
I'll wait when this is ready for review.

@atrovato
Copy link
Contributor Author

atrovato commented Apr 9, 2021

I think we have to keep them separated, as tv, audio, or dvd player might not do the same... but they share 80% of their features...
Let ask to @GladysAssistant/contributors

@rob-mccann
Copy link
Contributor

Is that something we could cover off by having a device that is tagged with specific "features"?

Just to add a third type in there is a games console where the media might be a video game :)

@atrovato
Copy link
Contributor Author

atrovato commented Apr 9, 2021

Ok, you're work looks really good, so I only need more features related to TV device.
This one is a draft for now, I will notice forum that you're working on a more complete media service.

(this is PR is a split of a bigger one, to manage IR remote with broadlink, I can continue broadlink service without it for now)

@atrovato
Copy link
Contributor Author

atrovato commented Apr 9, 2021

After more reflexion, I think we need to have 'tv', 'game', 'music' categories to easily and clearly distinguish it.

@rob-mccann
Copy link
Contributor

I'm still feeling my way through the codebase so definitely appreciate ideas and support!

@atrovato atrovato force-pushed the television-device branch from 7807a98 to 41666af Compare April 20, 2021 17:34
@atrovato atrovato force-pushed the television-device branch from 41666af to 4973cba Compare April 20, 2021 19:08
@Pierre-Gilles
Copy link
Contributor

Hello! Just wanted to know the status of this PR ? :)

@atrovato
Copy link
Contributor Author

I close it for now.

@atrovato atrovato closed this Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants