-
Notifications
You must be signed in to change notification settings - Fork 89
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
Major Update #16
base: master
Are you sure you want to change the base?
Major Update #16
Conversation
Cleaned up formatting. Added additional logic to find default interface to query for IP address to display.
Fixed open filehandle Formatting cleanup Added /contrib directory, support scripts
Style changes Reordered functions by order of call Fixed types Fixed -Wall compiler warnings More robust error handling Fixed the way top was being called Added /proc/stat CPU calculation Added df disk free space calculation Refactored the way numbers were being pushed to the display that should result in better formatting Correctly display CPU temperature units of measurement (F displayed instead of C)
fix typo's
Liking the result of this MR! Built it and am running it on my own Pis now and it's good stuff. Suggest adding a mention of introducing the dependency on the edit: wtf, why does my clone's readme not show the dependencies section added. nvm me! |
sudo cp ./contrib/U6143_ssd1306.service /etc/systemd/system/ | ||
sudo systemctl daemon-reload | ||
sudo systemctl enable U6143_ssd1306.service | ||
sudo systemctl start U6143_ssd1306.service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be made one line shorter with sudo systemctl enable --now U6143_ssd1306.service
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion, and indeed there's a more efficient way to do that, but going to leave that as a "won't fix" - there's more than one way to skin a cat, and the intent is to show the most common/familiar way to do things, not necessarily the shortest.
|
||
## I2C | ||
Begin by enabling the I2C interface: | ||
|
||
```bash | ||
sudo raspi-config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth mentioning that we can enable it without the ncurses interface?
via: raspi-config nonint do_i2c 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above, it's another way, but it's not really within the scope of this to show all the ways to perform the administrative tasks... Also, I don't think the nonint
commands are nominally documented - they're only known through a reading of the source code. But it's definitely an option for advanced administrators to go about the task.
removed dependency reformatted comments updated make_tarball.sh
The |
love this PR, can't understand why it hasn't been accepted by the maintainer is there a way to get it to show host name in addition to IP? |
Thanks! I wanted to get it working in my environment, and figured I'd share it back.
Yes, though I don't intend to do so myself. The display code is all bitmapped, so you should be aware there's no fancy scrolling/marquee functions, and getting everything to fit and look good enough is more art than anything. The labels and such are part of the background bitmap, so those may have to be refactored, depending on how you choose to implement it. I used an online tool to convert images to bitmap arrays to made the adjustments that were needed. The display code isn't very complicated though, and it's pretty easy to understand, even for a C novice. |
I have a working host name solution that looks fine and works great and is a simple logical change. I'm not a C expert though. Some minor changes might be needed to ensure best C practices. |
Ok. I can't find a way to modify the PR. So add -
AND Modify this routine.
|
GitHub newbie here. How do I get the new code for this PR? I can see the comparison between old and new but cannot find a way to get the new code only. Want to try out the improvements. |
Probably easiest just to pull my fork of the repo. They don't seem to be responding to PRs, and worse, seen to be copying changes from the submitted PRs without attribution (which is pretty reprehensible). |
So, I would install from as your README says, correct? |
Yeah, that was written with the assumption that they'd be playing nice with
the PRs, but they're not, so...
…On Wed, Jan 26, 2022, 10:49 AM MarkusNiGit ***@***.***> wrote:
So, I would install from
https://github.com/darkgrue/U6143_ssd1306.git
and not from
git clone https://github.com/UCTRONICS/U6143_ssd1306.git
as your README says, correct?
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOJ3HAV3VXDGGIZJWKLS73UYAQ2ZANCNFSM44PZ2TWA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Thank you very much for your help and for creating this improved program. Very cool for me to pick up working with c and pis.
|
Catch SIGHUP, SIGINT, and SIGTERM and clear screen (to prevent screen burn-in). Standardize source file format.
Major refactor and cleanup of code to address multiple functional and stylistic issues.
-Wall
compiler warnings/proc/stat
CPU calculation and enabled in favor oftop
(should be more accurate)df
disk free space calculation and enabled in favor ofstatfs()
(should be more portable)/contrib
directory, support scripts