Code Monkey home page Code Monkey logo

pi_alarm's Issues

IOError: Please specify user or filename to write.

Hey,
The program works well until I try to set an alarm.
It said that I need specify user of filename to write, how do I fix this issue?
a BIG thanks!

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/pi_alarm_env/pi_alarm/app/controller.py", line 51, in set_alarm
    scheduler.schedule_alarm(weekday, hour, minute)
  File "/opt/pi_alarm_env/pi_alarm/app/scheduler.py", line 79, in schedule_alarm
    self.cron.write()
  File "/usr/local/lib/python2.7/dist-packages/crontab.py", line 311, in write
    raise IOError("Please specify user or filename to
``` write.")
IOError: Please specify user or filename to write.

Adding Mplayer

Hey,
That's not an issue but I wanted to modify the code for my use.
I want to add a stream radio via mplayer, when the light is on it plays the stream, and when it off it pause it.
You have the time or the kindnass for helping me?

Turn Light Off If GPIO Input equals High

I'm trying to figure out how to add a physical switch, and the simplest way I can figure based on my current setup is --->>> if GPIO 12 = High (switch is on) run the same function as /off to switch

This isn't an issue with your code at all, just trying to blend Raspberry Pi w/ an Arduino, Neopixels, Mosfet driven White pixel strip, and an on off switch... and this last little snippet of code is where I'm stuck before I can actually start using this thing.

Any chance you could help me out?

IO Error upon setting alarm

Unable to do anything. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/opt/pi_alarm/app/controller.py", line 51, in set_alarm scheduler.schedule_alarm(weekday, hour, minute) File "/opt/pi_alarm/app/scheduler.py", line 79, in schedule_alarm self.cron.write() File "/usr/local/lib/python2.7/dist-packages/crontab.py", line 310, in write raise IOError("Please specify user or filename to write.") IOError: Please specify user or filename to write.

Typo in howto

Howdy,

Thanks for sharing your code!!!!!

While installing i found a small typo in step 4.

virtuanenv pi_alarm_env should of course be virtualenv pi_alarm_env

People how know how to code and are experienced will pick this up instantly. But newby's might be confused.

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.