Tiny Core Base > Raspberry Pi
How can I get an apscheduler extension?
Terry_J_C:
Hi,
I'm currently developing a Python program to play some sounds at regular intervals throughout the day. I've done this on my Linux PC using apscheduler, so know how I can do it. I understand that it can be done in Raspbian, but I don't believe that the apscheduler extension exists for piCore.
I want this system to run totally unattended for weeks and months on end and also be immune to power cuts or accidental shut-downs, so piCore running live is ideal for the job. Can anyone explain in words of one syllable how this extension can be built and included? I am a retired systems engineer, so I only have a smattering of software knowledge, therefore a bit of hand-holding would be much appreciated.
Paul_123:
can you just use cron?
That works out of the box. just add cron to the command line
bmarkus:
This package depends on few other packages which must be built too. To build them is easy the same way as on any other Linux system. Creation of TCZ is explained in WiKi.
However, you may review your design whether this package is really needed or not. Probably you can use asyncio module in Python >= 3.4 if looking for a Pythonic solution, or just use Linux cron as advicxed by Paul.
Terry_J_C:
--- Quote from: Paul_123 on August 20, 2016, 12:38:56 PM ---can you just use cron?
That works out of the box. just add cron to the command line
--- End quote ---
I could, but I also want to do some other things with GPIO, between the sounds being played.
Python has a wealth of support out there for people who may pick this up in the years to come. Most of them will be even less skilled in software development than I am.
Terry_J_C:
--- Quote from: bmarkus on August 20, 2016, 12:47:22 PM ---However, you may review your design whether this package is really needed or not. Probably you can use asyncio module in Python >= 3.4 if looking for a Pythonic solution, or just use Linux cron as advicxed by Paul.
--- End quote ---
I couldn't see an asyncio extension either.
Navigation
[0] Message Index
[#] Next page
Go to full version