Skip to content

Conversation

@juehv
Copy link
Contributor

@juehv juehv commented Dec 6, 2019

I want to show the public ip in my system menu on the disply and don't want to do an extra ping :)
This code is tested on my pi rig with explorer-HAT (for around two weeks).

I want to show the public ip in my system menu on the disply and don't want to do an extra ping :)
This code is tested on my pi rig with explorer-HAT (for around two weeks).
else
echo $PUBLIC_IP
touch /tmp/hasPublicIp
echo $PUBLIC_IP > /tmp/hasPublicIp
Copy link
Contributor

Choose a reason for hiding this comment

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

hasPublicIp was a great file name when we were treating the file as a flag, but now that we're storing the value of the IP in the file, should we rename the file to something like publicIp?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't care about the exact name. I just need the feature :) So feel free to change it ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

Like that?

This file now contains the actual IP, so updating its name to better reflect that.
@scottleibrand scottleibrand merged commit 6648279 into openaps:dev Dec 31, 2019
lukaszarczynski pushed a commit to lukaszarczynski/oref0 that referenced this pull request Mar 16, 2021
lukaszarczynski pushed a commit to lukaszarczynski/oref0 that referenced this pull request Nov 4, 2025
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