GithubHelp home page GithubHelp logo

jernst / rasptimer Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 5.0 448 KB

Use Raspberry Pi as a timer for GPIO hardware, configurable over the web

License: Other

Shell 2.88% Perl 8.48% PHP 78.10% CSS 9.86% Hack 0.68%

rasptimer's Introduction

rasptimer

Use a Raspberry Pi as a schedulable timer for GPIO hardware, configurable over the web. Uses WiringPi. While I use it on the original Raspberry Pi, I can't think of a reason it shouldn't work on Raspberry Pi 2, 3, 4 or Zero.

This is the software for the pool timer project described at http://upon2020.com/blog/2012/12/my-raspberry-pi-pool-timer-why/

Rasptimer should run on any Linux-based OS that runs on the Raspberry Pi, but you will have to manually put all the files in the right place, setup your web server, install packages, including creating the configuration file from the template.

If you run UBOS, it's much simpler.

''Step 1.'' Write UBOS to an SD Card suitable for your Raspberry Pi, as described here.

''Step 2.'' Enable the hl-experimental repository on UBOS. To do so, as root, uncomment the two lines in /etc/pacman.d/repositories.d/hl-experimental, and then run sudo ubos-admin update.

''Step 3.'' Run:

> sudo ubos-admin createsite --ask

Then answer the questions. Each pin that you give a name will show up in the web interface; unnamed pins are skipped. Here is an example transcript:

> sudo ubos-admin createsite --ask
Hostname (or * for any): *
Site admin user id (e.g. admin): admin
Site admin user name (e.g. John Doe): Administrator
Site admin user password (e.g. s3cr3t):
Site admin user e-mail (e.g. [email protected]): [email protected]
...
App to run: rasptimer
App rasptimer suggests context path /rasptimer
Enter context path:
Any accessories for rasptimer? Enter list:
App rasptimer suports a value for title: My pool on-line (duh!)
App rasptimer suports a value for pin1: Main pump
App rasptimer suports a value for pin2: Auxiliary pump

The previous command will have downloaded all the code, and the libraries, created the right Apache config files, and so forth, and even restarted your web server. Rasptimer is ready to use.

Questions? Post to the UBOS forum.

rasptimer's People

Contributors

jernst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rasptimer's Issues

Logrotate error

Mar 07 00:00:13 pool logrotate[10072]: error: logrotate.d-rasptimer:8 unknown user 'www-data'

Restore problem

Upon reboot during update:

 use UBOS::Commands::UpdateStage2; UBOS::Commands::UpdateStage2::finishUpdate( "/=3" );
WARN : Directory exists already /ubos/lib/ubos/appconfigpars/ab8adf8a36e4a7bbd831991ab5d351fd2aa452e1d
WARN : Directory exists already /ubos/lib/ubos/appconfigpars/ab8adf8a36e4a7bbd831991ab5d351fd2aa452e1d/rasptimer
ERROR: Cannot restore file: bucket: log toName: /var/log/rasptimer.log context: backup entry /ubos/backups/update/ab8adf8a36e4a7bbd831991ab5d351fd2aa452e1d/rasptimer/apache2

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.