Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waterlink/smiled
Daemon on ruby to photo laptop's user each second with ten percent chance
https://github.com/waterlink/smiled
Last synced: 30 days ago
JSON representation
Daemon on ruby to photo laptop's user each second with ten percent chance
- Host: GitHub
- URL: https://github.com/waterlink/smiled
- Owner: waterlink
- License: mit
- Created: 2014-02-12T10:50:35.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-12T13:26:54.000Z (almost 11 years ago)
- Last Synced: 2024-10-16T07:16:17.625Z (3 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Smiled - ruby daemon to take laptop's user photo every second with ten percent chance
## Installation
Get yourself ruby 2.1. I recommend using [rvm](http://rvm.io).
Clone source:
```bash
git clone https://github.com/waterlink/smiled.git ~/.smiled-src
```Install dependencies using bundler:
```bash
bundle install
```Required system dependency is **streamer**. To install it on ubuntu just do `apt-get install streamer`
## Managing daemon
```bash
# to start daemon
./smilectl.rb start# to stop daemon
./smilectl.rb stop# to restart daemon
./smilectl.rb restart
```## Setting up autostart for user
create rvm wrapper
```bash
rvm wrapper `rvm current` smiled
```just add bash script to your home folder (or anywhere)
```bash
#!/usr/bin/env bashcd $HOME/.smiled-src && $HOME/.rvm/bin/smiled_ruby smilectl.rb start >/dev/null || true
```
and add this script to your GUI autostart