Skip to content

Added IP address and subnet mask#46

Open
degeens wants to merge 5 commits intoColinWaddell:masterfrom
degeens:network-IPaddress
Open

Added IP address and subnet mask#46
degeens wants to merge 5 commits intoColinWaddell:masterfrom
degeens:network-IPaddress

Conversation

@degeens
Copy link

@degeens degeens commented Jan 3, 2018

I've added the (local) IP address and subnet mask to the network part.

I hope you like it.

image

@ColinWaddell
Copy link
Owner

ColinWaddell commented Jan 3, 2018

Hey @degeens - cheers for the update

Got a couple of thoughts before merging this request and would love your input.

First is that I've already got the IP address in the footer, this is grabbed by using the $_SERVER[] global:

$data->webserver = $_SERVER['SERVER_NAME'].' ('.$_SERVER['SERVER_ADDR'].') - '.$_SERVER['SERVER_SOFTWARE'];

screen shot 2018-01-03 at 13 52 00

However if you're wanting to get the subnet-mask in there then perhaps this information would be better suited to the network area. I was tempted to stick the info from your NetworkData in the footer but I feel like that's cross-contaminating slightly (NetworkData is creating data which is being used in FooterView).

I like your implementation though and having that info in the network section makes sense. However this is where I get pernickety. I quite like that when the network section is alongside the Hardware section they have the same number of elements so the sit nice together:

screen shot 2018-01-03 at 13 52 14

So perhaps there's a nice way to either add an extra element to the Hardware section so they align, or the network section gets rejigged so that the Up and Down are on the same line with the IP information underneath.

What do you think?

Cheers again for your input!

@degeens
Copy link
Author

degeens commented Jan 3, 2018

Hi @ColinWaddell,

Thank you for your fast reply.

I understand the need to keep the number of elements the same on both sides.

So I started looking for something which would be nice to have in the hardware section. I've found out that it's possible to retrieve the Raspberry Pi model name, for example "Raspberry Pi 3 model B". But on the other hand, this is static information, which maybe, doesn't belong there and would be better to have somewhere in the footer.

Another possibility is indeed, to put the up and down rate on one row in two columns, which is very easy to implement.

I'm willing to implement both solutions.

What do you think?

@ColinWaddell
Copy link
Owner

ColinWaddell commented Jan 3, 2018 via email

@degeens
Copy link
Author

degeens commented Jan 3, 2018

This is how it looks now on my mobile:

image

I've hardcoded 999.99Kb/s to take this screenshot. As you can see, there is place enough for 999Kb/s.

What do you think?

Since I'm not a front-end expert, feel free to make improvements.

@degeens degeens closed this Jan 6, 2018
@degeens degeens reopened this Jan 6, 2018
@ColinWaddell
Copy link
Owner

Cheers @degeens

Sorry for not looking at this pull-request sooner. I've been afk all weekend. I'll get my teeth into it this week though and will give you feedback asap.

@degeens
Copy link
Author

degeens commented Mar 21, 2018

Hi @ColinWaddell

Have you had the time to look at this pull request?

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.

2 participants