GithubHelp home page GithubHelp logo

hhy5277 / insomnia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexanderepstein/sandman

0.0 2.0 0.0 167.77 MB

An Application Built With Late Night Developers In Mind

License: MIT License

HTML 24.71% JavaScript 75.29%

insomnia's Introduction

Insomnia Insomnia Insomnia

Counting Sheep

Insomnia will remind you to take a rest and that you can always come back to the work tomorrow. Inspired by http://sleepyti.me a website that calculates optimal times to fall asleep based on when you want to wake up. The idea is that when you wake up in the middle of a sleep cycle you will feel groggy, however if you wakeup during the transition between sleep cycles you will feel refreshed!

This application uses the averages that sleep cycles are 90 minutes each and a person takes 15 minutes to fall asleep from when they begin to try and calculates the times for you to sleep. It will notify you throughout the night when the optimal times to shutdown your computer and start to head to sleep and provide a button to do just that. This application works well with https://justgetflux.com/

Screenshots

MenuBar

Tray

Notification

Notification

Main Window

Main

About Window

About

Preferences Window

Prefs

Downloads

To get the full sourced version run in terminal:

git clone https://github.com/alexanderepstein/Insomnia

Otherwise to just get the application download your respective platforms file from the list of download links below:

Install

Mac

Open up a new finder window and go to the Applications folder. Then drag the Insomnia.app from the Insomnia dmg to the Applications folder. Double Clicking on the app should run it and it could be kept in the dock from here.

Linux

Open up a terminal and navigate to the folder containing the downloaded installer files and run

Debian

sudo dpkg -i Insomnia_1.2.0_amd64.deb

Or:

sudo dpkg -i Insomnia_1.2.0_x86.deb

RedHat

sudo rpm -i Insomnia.rpm

This will actually install Insomnia as a utility application which can be accessed from your respective distributions application launchpad.

Windows

Open up another windows explorer and navigate to your program files folder (x86 or 64 bit is irrelevant). Now drag the entire Insomnia Windows folder you extracted from the downloaded zip in the previous step over to the program files folder. Go into the folder that was just dragged over and find the Insomnia.exe and run it. Now the application will show up in the dock where it can be pinned.

Uninstall

Mac

Go to the applications folder and delete the Insomnia application.

Linux

Open up a terminal and run:

Debian

sudo dpkg --remove Insomnia

RedHat

sudo rpm -e Insomnia.rpm

Windows

Open up the program files folder and delete the Insomnia folder.

Helping Out

It is assumed you already have node installed and therefore npm.

To download the full source code and install the devDependencies run the following lines:

git clone https://github.com/alexanderepstein/Insomnia
cd Insomnia
npm install
cd ..
electron Insomnia # this will run the application

If you get some error and the application wont run try running the following lines and see if that works.

Linux/Mac

cd Insomnia
sudo npm install -g

Windows

Right click on the start menu icon at the bottom left and click on the option to open a command prompt in developer mode cd to the insomnia directory then run

npm install -g

If you have a feature you would like to add or optimizations to the original code

  • Feel free to fork this repository and submit a pull request
  • Add an issue labeled as an enhancement and if I think its a good idea I will do my best to implement it myself
( •_•)
( •_•)>⌐■-■
(⌐■_■)

License

MIT License

Copyright (c) 2017 Alex Epstein

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

insomnia's People

Contributors

lex111 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.