https://github.com/witalewski/nightcall
🌃 Automatically switch between light and dark system themes on sunrise and sunset.
https://github.com/witalewski/nightcall
dark-theme javascript launchdagent light-theme nodejs
Last synced: about 2 months ago
JSON representation
🌃 Automatically switch between light and dark system themes on sunrise and sunset.
- Host: GitHub
- URL: https://github.com/witalewski/nightcall
- Owner: witalewski
- License: mit
- Created: 2018-10-05T10:47:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T05:37:16.000Z (2 months ago)
- Last Synced: 2025-04-13T04:06:58.100Z (about 2 months ago)
- Topics: dark-theme, javascript, launchdagent, light-theme, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.23 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 🌃 Nightcall
[](https://travis-ci.com/witalewski/nightcall)
[](https://coveralls.io/github/witalewski/nightcall?branch=master)[](https://snyk.io/test/github/witalewski/nightcall?targetFile=package.json)Automatically switch between light and dark system themes on sunrise and sunset.
## Getting Started
### Prerequisites
As of today, Nightcall only works with macOS. Standalone installation will make most sense with Mojave (or newer) as this is the first version to have a proper dark OS theme.
### Installing
Just run:
```sh
yarn global add nightcall
```
or:
```sh
npm i -g nightcall
```Nightcall will be installed globally and automatic setup will follow right after installation.
There is a [Nightcall (VS Code)](https://marketplace.visualstudio.com/items?itemName=witalewski.nightcall-vs-code) extension available to switch between dark and light themes in VS Code in sync with Nightcall.

## Running the tests
To run tests locally, go to the module directory and execute `yarn run jest`
## Built With
* [suncalc](https://www.npmjs.com/package/suncalc) - for calculating sunrise and sunset
* [public-ip](https://www.npmjs.com/package/public-ip) - for obtaining public IP address
* [api.ipstack.com](http://api.ipstack.com/) - for getting location based on public IP address
* [node-wifiscanner](https://www.npmjs.com/package/node-wifiscanner) - for getting data about wifi APs in the surrounding### Inspired by
* [NightSwitch](https://marketplace.visualstudio.com/items?itemName=gharveymn.nightswitch) - VS Code extension for switching between light and dark theme on sunrise and sunset
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONCUCT.md](CODE_OF_CONDUCT.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
## Authors
* **Kris Witalewski** - *Initial work* - [@witalewski](https://github.com/witalewski/)
See also the list of [contributors](https://github.com/witalewski/nightcall/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details