• 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.
 
Reply
Maybe something will tell logs
 
Reply
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.
 
Reply
Is there any chance that it will ever be?
 
Reply
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.
 
Reply
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
Code:
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
 
Reply
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:

Code:
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)... 108.160.173.165
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|108.160.173.165|: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
           ./piSchedule.py

     ... 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 http://192.168.178.50:5005/
                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
 
Reply
@Sico93
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.
 
Reply
A season present for the pilight/piSchedule user and any new comer to this Add-on.
2015-12-20
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.
Important
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.

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

Enjoy!

For any comment or concern feel free to post here or move over to the piSchedule Forum
 
Reply
At OSMC still does not work Crying
Code:
root@osmc:~/piSchedule73# ./piDiscover.py
** pilight  piDiscover
{1: 'NOTIFY * HTTP/1.1
Host:239.255.255.250:1900
Cache-Control:max-age=900
Location:192.168.1.150:43274
NT:urn:schemas-upnp-org:service:pilight:1
USN:uuid:0000-b8-27-eb-7be325::urn:schemas-upnp-org:service:pilight:1
NTS:ssdp:alive
SERVER: Debian/0.0 UPnP/1.1 pilight (osmc)/7.0

'}
** pilight  {server}:{port}=192.168.1.150:5001
** pilight  version=7.0  >>OK<<
piDiscover pilight ['192.168.1.150', 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.
root@osmc:~/piSchedule73#
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Does piSchedule work with pilight 8.1.1-nightly Peter S 0 1,907 06-29-2018, 07:57 PM
Last Post: Peter S
  pilight-console - an LCD / keypad interface for pilight frenchie71 3 1,719 11-21-2017, 11:15 PM
Last Post: curlymo
  Connect pilight to your hue bridge hannemann 3 3,167 01-03-2017, 11:26 PM
Last Post: hannemann
Wink PHP class using pilight socket connection Dan 0 1,726 11-03-2016, 11:41 AM
Last Post: Dan
  Controlling a RGB Led Strip over pilight mightyuhu 2 2,769 08-06-2016, 09:10 PM
Last Post: JohannK
  HomeBridge with pilight on raspbian Jurre 10 13,388 04-06-2016, 07:45 AM
Last Post: tomtom
  pilight voice commands kniazio 11 6,866 01-29-2016, 07:51 PM
Last Post: sral
  Python Ping pilight detect mobilephone Cryptomaster 0 2,392 01-10-2016, 04:17 PM
Last Post: Cryptomaster
  pilight config editor ktams 16 9,270 01-06-2016, 02:42 PM
Last Post: ktams
  command processing between pilight and openhab royhofman1989 3 3,151 07-13-2015, 11:26 AM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)