https://github.com/stephentth/moonphase_kernel_module
linux kernel module provides a device /dev/moonphase to display the current moon phase
https://github.com/stephentth/moonphase_kernel_module
ascii kernel-module linux loadable-kernel-module
Last synced: 6 months ago
JSON representation
linux kernel module provides a device /dev/moonphase to display the current moon phase
- Host: GitHub
- URL: https://github.com/stephentth/moonphase_kernel_module
- Owner: stephentth
- Created: 2024-05-03T14:12:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-04T01:51:49.000Z (over 1 year ago)
- Last Synced: 2025-07-13T17:05:13.157Z (7 months ago)
- Topics: ascii, kernel-module, linux, loadable-kernel-module
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# moonphase linux kernel module
A loadable kernel module for Linux that provides the functionality to display the current moon phase through a character device (`/dev/moonphase`).
Disclaimer: Moon phase calculation function may be inaccurate. Not intended for astrogation, or for treatment or management of lycanthropy.
# Build
```
make
```
# Usage
```
# install module
$ sudo insmod moonphase.ko
$ cat /dev/moonphase
Waning Crescent Moon 🌘
.----------.
.--' o . `--.
.'@ @@@@@@ O . . `.
.'@@ @@@@@@@@ @@@@ . `.
.' . @@@@@@@@ @@@@@@ . `.
/ @@ o @@@@@@. @@@@ O @\
|@@@@ @@@@@@ @@|
/ @@@@@ `.-. . @@@@@@@@ . @@\
| @@@@ --`-' . o @@@@@@@ |
|@ @@ @@@@@@ @@@ |
\ @@ @ . () @@ @@@@@ /
| @ @@@ @@@ @@@ |
\ . @@ @\ . . @@ o /
`. @@@@ _\ / . o .'
`. @@ ()--- .'
`. / | . o .'
`--./ . .--'
`----------'
# unload module
$ sudo rmmod moonphase
```