• 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
Nice!
Did you checked the installation process? I'm not sure about the OS you're using, sorry.
 
Reply
Installation is properly
No errors

OSMC is a derivative Raspbmc
pilight walks on it without problems
 
Reply
Just noticed you have:
Code:
root@osmc:/home/pi/piSchedule7# ./piDiscover.py
Did you tried:
Code:
pi@rpi1 ~/piSchedule7 $ sudo ./piSchedule.py
as I posted before?
 
Reply
If I am logged in as root, I do not have "sudo"
But with "sudo" it is the same.
I think that's a matter of rights.

Code:
osmc@osmc:~$ cd /home/pi/piSchedule7
osmc@osmc:/home/pi/piSchedule7$ sudo ./piSchedule.py
Traceback (most recent call last):
  File "./piSchedule.py", line 12, in <module>
    from bottle import Bottle, run, route, static_file, view, template, \
ImportError: No module named bottle
osmc@osmc:/home/pi/piSchedule7$
 
Reply
OK, seems you're more familiar than me with the OS requirements and handling.
Anyway, your installation is missing some components which should have been installed with the install_piSchedule7.sh.
If you look into piSchedule.py at line 12/13 you have:
Code:
from bottle import Bottle, run, route, static_file, view, template, \
                   get, post, request, debug
.. and from your reported error log with line 12 causing:
Code:
ImportError: No module named bottle
That's clearly says there isn't something not installed.

My only recommendation, go back to the piSchedule installation and repeat installing all.
https://dl.dropboxusercontent.com/u/3544...stall.html
 
Reply
How do I delete the old installation?
Code:
install_piSchedule7 100%[=====================>]   3.68K  --.-KB/s   in 0s

2015-11-27 20:15:19 (8.33 MB/s) - 'install_piSchedule7.sh' saved [3764/3764]


   *** Installation of piSchedule ***     rev.15-08-05

   INFO - Download piSchedule etc .. to the directory


   INFO - /home/pi/piSchedule7/ exists already.
   INFO - get  piScheduler python supporting software
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python

E: Package 'python-dev' has no installation candidate
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
... piScheduler -- install python-dateutil
sudo: pip: command not found
... piScheduler -- install APScheduler
sudo: pip: command not found
... piScheduler -- install ephem
sudo: pip: command not found
... piScheduler -- install bottle
sudo: pip: command not found
   INFO - System Updating
   INFO - get piSchedule7 code
But you're right. Something is missing.
How does it add?
 
Reply
Again, I think you're more familiar with the systems. But your listing makes clear, not piSchedule.py and it's modules are the problem here, but very basic installation of python/python-dev/pip!

Sorry, I can't help here. "My" wheezy installation hasn't that problem. And OK, if your OS has the same base .. or is expected to have the same, the piSchedule prerequisites should have been satisfied .. but isn't.
 
Reply
I installed a new piSheduler
Do you have something piPrefs.py file type?
./piDiscover.py
Code:
root@osmc:/home/pi/piSchedule7# ./piDiscover.py                                 piDiscover pilight ['192.168.1.150', 5001, '7.0', '']
root@osmc:/home/pi/piSchedule7#
./piSchedule.py
Code:
root@osmc:/home/pi/piSchedule7# ./piSchedule.py
Terminated
service piSchedule status
Code:
root@osmc:/home/pi/piSchedule7# service piSchedule status
* piSchedule.service - LSB: Start|Stop service for piSchedule
   Loaded: loaded (/etc/init.d/piSchedule)
   Active: active (exited) since Fri 2015-12-04 08:14:57 CET; 4s ago
  Process: 3856 ExecStop=/etc/init.d/piSchedule stop (code=exited, status=0/SUCC                                                                                        ESS)
  Process: 5259 ExecStart=/etc/init.d/piSchedule start (code=exited, status=0/SU                                                                                        CCESS)

Dec 04 08:14:57 osmc piSchedule[5259]: Starting system piSchedule daemon:.
Dec 04 08:14:57 osmc piSchedule[5259]: /home/pi/piSchedule7/piSchedule.py i...g.
Dec 04 08:14:57 osmc sudo[5265]: root : TTY=unknown ; PWD=/ ; USER=root ; C...py
Dec 04 08:14:57 osmc sudo[5265]: pam_unix(sudo:session): session opened for...0)
Dec 04 08:14:57 osmc piSchedule[5259]: Traceback (most recent call last):
Dec 04 08:14:57 osmc piSchedule[5259]: File "/home/pi/piSchedule7/piPrefs.p...in
Dec 04 08:14:57 osmc piSchedule[5259]: if fprefs['port'] == "":
Dec 04 08:14:57 osmc piSchedule[5259]: TypeError: list indices must be inte...tr
Hint: Some lines were ellipsized, use -l to show in full.
root@osmc:/home/pi/piSchedule7# service piSchedule status
* piSchedule.service - LSB: Start|Stop service for piSchedule
   Loaded: loaded (/etc/init.d/piSchedule)
   Active: active (exited) since Fri 2015-12-04 08:14:57 CET; 57s ago
  Process: 3856 ExecStop=/etc/init.d/piSchedule stop (code=exited, status=0/SUCCESS)
  Process: 5259 ExecStart=/etc/init.d/piSchedule start (code=exited, status=0/SUCCESS)

Dec 04 08:14:57 osmc piSchedule[5259]: Starting system piSchedule daemon:.
Dec 04 08:14:57 osmc piSchedule[5259]: /home/pi/piSchedule7/piSchedule.py is running.
Dec 04 08:14:57 osmc sudo[5265]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/home/pi/piSchedule7/piPrefs.py
Dec 04 08:14:57 osmc sudo[5265]: pam_unix(sudo:session): session opened for user root by (uid=0)
Dec 04 08:14:57 osmc piSchedule[5259]: Traceback (most recent call last):
Dec 04 08:14:57 osmc piSchedule[5259]: File "/home/pi/piSchedule7/piPrefs.py", line 58, in main
Dec 04 08:14:57 osmc piSchedule[5259]: if fprefs['port'] == "":
Dec 04 08:14:57 osmc piSchedule[5259]: TypeError: list indices must be integers, not str
root@osmc:/home/pi/piSchedule7#

What is wrong?
Is there something I make up a file piPrefs.py?
 
Reply
As said before, not clear to me. And also said will test with osmc as soon as I received new devices.
 
Reply
Check means my piPrefs.py (post above)
You do not need to add anything to this file?
 
Reply
  


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)