Skip to content

seebq/remote_shade_control_app

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

remote_shade_control_app

Tiny web app (sinatra) to control shades (curtains, drapes) via hardware control.

Configure the file via the settings.yml:

production:
    shades:
      - name: "Living Room"
        id: "living_room"
        shade_type: "SomfyShade"
        channel: "2"
        raise_up_time: 30 minutes before
        lower_down_time: 30 minutes after

Shades may have additional settings, see the specific shades libraries for details.

To run the test suite:

ruby test/test.rb

To run the server:

ruby run_app.rb

The settings file uses Chronic for parsing, so it understands all kinds of statements like:

1 hour before
30 minutes after

To fully automate the app, the /auto URL should be "pinged" regularly. Easiest is to set a crontab that will hit the URL every minute. Add this to your /etc/crontab to run every minute:

* *     * * *   root    curl http://localhost/auto

Screenshot:

Remote Shade Control

About

Tiny web app (sinatra) to control shades (curtains, drapes) via hardware control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published