• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
piScheduler -- A pilight extension for the daily switch plan
Please be patient.
Just to add, there is no difference between your ".txt" version and the original piPrefs.py. And I don't think the problem is there.
The best I can give, -- see above and -- let's see what my new installation will bring up.
Maybe something will tell logs
Finally I have an installation of OSMC on a brand new RPI/SDcard.
The installation of piSchedule failed due to missing arm-linux-gnueabihf-gcc -- I understand that's the compiler required for installing at least ephem (lib to calculate sunrise/set). Because of that piSchedule.py fails.
Investigating about a solution.

At the moment OSMC is not a supported platform for piSchedule.
Is there any chance that it will ever be?
Please see https://forum.pilight.org/Thread-OSMC-pi...5#pid16345.

As long as OSMC has those limitations pilight and piSchedule with not run on that distro.
pilight use on OSMC already more than half a year
This is my webpage http://cyfrowydom.cba.pl

even I wrote a post on this forum https://forum.pilight.org/Thread-OSMC-pilight
Quote: kniazio Online
Junior Member
Posts: 36
Joined: Aug 2015
Reputation: 0
Warning Level: 0%
RE: OSMC pilight
I have pilight on OSMC and everything works well.
You just need to add an entry in rc.local
sleep 10
service pilight restart
exit 0
I do not know why pilight does not start with the system?

see also here http://cyfrowydom.cba.pl/e107_plugins/yt...Vh5jFc&p=1
Hey there!

Today I tried to install pySchedule onto my up and running but freshly installed pilight 7 on Raspberry Pi B running Jessie.

When i typed the AUTO installation command
cd ~ && wget https://dl.dropboxusercontent.com/u/3544...hedule7.sh -O install_piSchedule7.sh && bash install_piSchedule7.sh
in root mode the script failed at unzipping "piSchedule.zip, piSchedule.zip.zip or piSchedule.zip.ZIP.".

The installation went on like this:

pi@nanoLicht ~ $ sudo su
root@nanoLicht:/home/pi# cd ~  &&  wget https://dl.dropboxusercontent.com/u/35444930/piSchedule7/install_piSchedule7.sh -O install_piSchedule7.sh && bash install_piSchedule7.sh
--2015-12-15 10:31:20--  https://dl.dropboxusercontent.com/u/35444930/piSchedule7/install_piSchedule7.sh
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3701 (3.6K) [text/x-sh]
Saving to: ‘install_piSchedule7.sh’

install_piSchedule7.sh               100%[=====================================================================>]   3.61K  --.-KB/s   in 0s    

2015-12-15 10:31:21 (7.42 MB/s) - ‘install_piSchedule7.sh’ saved [3701/3701]

   *** Installation of piSchedule    (7.1)  ***     rev.15-12-07

   INFO - Download piSchedule etc .. to the directory

   INFO - /home/pi/piSchedule7/ does NOT EXISTS!
   INFO - /home/pi/piSchedule7/ will be created.
   INFO - Make dir for piSchedule logging  /home/pi/piSchedule7/logs
   INFO - get  piScheduler python supporting software
Reading package lists... Done
Building dependency tree      
Reading state information... Done
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree      
Reading state information... Done
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
... piScheduler -- install python-dateutil
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages
Cleaning up...
... piScheduler -- install APScheduler
Requirement already satisfied (use --upgrade to upgrade): apscheduler in /usr/local/lib/python2.7/dist-packages
Cleaning up...
... piScheduler -- install bottle
Requirement already satisfied (use --upgrade to upgrade): bottle in /usr/local/lib/python2.7/dist-packages
Cleaning up...
   INFO - System Updating
   INFO - get piSchedule7 code
unzip:  cannot find or open piSchedule.zip, piSchedule.zip.zip or piSchedule.zip.ZIP.
   INFO - reset prefs file 'piSchedule.prefs.json'
chmod: cannot access ‘/home/pi/piSchedule7/piSchedule.py’: No such file or directory
chmod: cannot access ‘/home/pi/piSchedule7/piSchedule.sh’: No such file or directory
chmod: cannot access ‘/home/pi/piSchedule7/piPrefs.py’: No such file or directory
chmod: cannot access ‘/home/pi/piSchedule7/sunrise_sunset.py’: No such file or directory
cp: cannot stat ‘/home/pi/piSchedule7/piSchedule.sh’: No such file or directory
update-rc.d: error: initscript does not exist: /etc/init.d/piSchedule

     *** piSchedule is ready to be used ***

     *** Test piSchedule.py in piSchedule7 with
           cd ~/piSchedule7

     ... See the Bottle prompt for the server:port to be used with piSchedule
         like this

                Bottle v0.12.8 server starting up (using WSGIRefServer())...
                Listening on
                Hit Ctrl-C to quit.

     ... Terminate with Cntrl C   .. may need typing twice

     *** Start 'piSchedule' using
            sudo service piSchedule start
         Check with
            sudo service piSchedule status

         Usage of 'service', see also ~/piSchedule7/piSchedule.sh

     *** Move over to your browser and start the piSchedule home page
         using the server:port as prompted with the piSchedule start.

     *** For more detailed information see also
         DE:   https://dl.dropboxusercontent.com/u/35444930/piSchedule7/DE/piScheduleOverview.html
         EN:   https://dl.dropboxusercontent.com/u/35444930/piSchedule7/EN/piScheduleOverview.html

How I fixed it:
So i went to /piSchedule/ and unzipped piSchedule7.1.zip by typing:

sudo unzip ./piSchedule7.1.zip

Afterwards I ran
sudo bash install_piSchedule7.sh
to run the installation script again.
Successful Smile

I think there might be a Typo or something inside the script, that's why I'm sharing this, hoping this is somehow helpful Smile

Have a good day!

Edit: Actually I found the Problem inside the script. It is trying to unzip piSchedule7.zip instead of piSchedule7.1.zip.

This should be fairly easy to fix Smile
Thanks for reporting.
I'm working on an update. So it's possible some settings have changed but are not correct at the moment.
Hope to have the update ready these days.
A season present for the pilight/piSchedule user and any new comer to this Add-on.
A new version is available.
To update go to piSchedule Setup (DE)
or piSchedule Setup (EN)
piSchedule Setup also supports to install pilight from within
the piSchedule setup menu. That way a fresh install of pilight/piSchedule
is easier.
See how to have old and new piSchedule ready for use on one SDCard!

Version Details:
piSchedule News
The piSchedule dialog has a link to open the most recent
news about piSchedule (like this).

piSchedule Forum / Help
A new Google Forum is available at piSchedule Forum
This can be called directly from within piSchedule, go to
Main Menu --> Help --> About piSchedule.
See there for more details.

Cancel scheduled Job
On the schedule table each switching job (row) now has a button
to cancel that scheduled job. The job is only removed from
current job list and doesn't alter the INI file itself.
So with using the pull-down menu to select the INI file, all
jobs will be loaded and scheduled again.

pilight call from within piSchedule
Additionally on the schedule dialog a direct call of pilight is
possible, so any 'manual' switching can be done easily.

setting on/off switch time variation
pilight only processes one switching every second. Not to loose
switches piSchedule randomize the second setting now


For any comment or concern feel free to post here or move over to the piSchedule Forum
At OSMC still does not work Crying
root@osmc:~/piSchedule73# ./piDiscover.py
** pilight  piDiscover
{1: 'NOTIFY * HTTP/1.1
SERVER: Debian/0.0 UPnP/1.1 pilight (osmc)/7.0

** pilight  {server}:{port}=
** pilight  version=7.0  >>OK<<
piDiscover pilight ['', 5001, '7.0', '']
root@osmc:~/piSchedule73# service piSchedule status
* piSchedule.service - LSB: Start|Stop service for piSchedule
   Loaded: loaded (/etc/init.d/piSchedule)
   Active: active (exited) since Sun 2015-12-20 16:19:43 CET; 8min ago
  Process: 596 ExecStart=/etc/init.d/piSchedule start (code=exited, status=0/SUCCESS)

Dec 20 16:19:41 osmc piSchedule[596]: Starting system piSchedule daemon:.
Dec 20 16:19:43 osmc piSchedule[596]: piSchedule Prefs not set already!
Dec 20 16:19:43 osmc piSchedule[596]: /root/piSchedule73/piSchedule.py is r...g.
Hint: Some lines were ellipsized, use -l to show in full.

Possibly Related Threads...
Thread Author Replies Views Last Post
  HomeBridge with pilight on raspbian Jurre 12 16,602 10-12-2021, 11:08 PM
Last Post: DesmondOrask
  Connect pilight to your hue bridge hannemann 4 4,496 10-26-2020, 02:08 PM
Last Post: Michelebup
  Does piSchedule work with pilight 8.1.1-nightly Peter S 0 2,451 06-29-2018, 07:57 PM
Last Post: Peter S
  pilight-console - an LCD / keypad interface for pilight frenchie71 3 2,572 11-21-2017, 11:15 PM
Last Post: curlymo
Wink PHP class using pilight socket connection Dan 0 2,247 11-03-2016, 11:41 AM
Last Post: Dan
  Controlling a RGB Led Strip over pilight mightyuhu 2 3,470 08-06-2016, 09:10 PM
Last Post: JohannK
  pilight voice commands kniazio 11 9,041 01-29-2016, 07:51 PM
Last Post: sral
  Python Ping pilight detect mobilephone Cryptomaster 0 2,848 01-10-2016, 04:17 PM
Last Post: Cryptomaster
  pilight config editor ktams 16 12,248 01-06-2016, 02:42 PM
Last Post: ktams
  command processing between pilight and openhab royhofman1989 3 3,875 07-13-2015, 11:26 AM
Last Post: curlymo

Forum Jump:

Browsing: 1 Guest(s)