Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 110 online users. » 1 Member(s) | 108 Guest(s) Bing, mrbeezer@gmail.com
|
|
|
3.2.30 adding plugins internal server error |
Posted by: draggaj - 2017 Sep 11, 05:13 AM - Forum: Report a problem
- Replies (4)
|
|
Hi Dan, hit a snag with a SIP rebuild I am doing..
new build of Raspian, with current (3.2.30) of SIP tried Wheezy, Jessie and Stretch, same result on all....configured language as English and saved and it complained unable to restart and said to restart via command line - which I did.
then browsed more plug ins and selected relay_board and on clicking install I get "internal server error" in firefox. In IE I get "cant reach this page"
I tried a couple of different plug ins with same outcome...
appears to be a permanent, repeatable fault. Hoping you are able to resolve this please....shout out if you need more info.
Same result even if I don't select language first..
console port output is shown below....
[email=pi@raspberrypi:~$]pi@raspberrypi:~$[/email] cd SIP
[email=pi@raspberrypi:~/SIP$]pi@raspberrypi:~/SIP$[/email] sudo python sip.py
ALARM from Example_Sender!: Just and example!
plugins loaded:
mobile_app
plugin_manager
signaling_examples
system_update
zones changed
[0, 0, 0, 0, 0, 0, 0, 0]
Starting timing loop
http://0.0.0.0:80/
10.19.2.16:63381 - - [11/Sep/2017 14:58:49] "HTTP/1.1 GET /" - 303 See Other
10.19.2.16:63381 - - [11/Sep/2017 14:58:51] "HTTP/1.1 GET /login" - 200 OK
10.19.2.16:63381 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/bootstrap-3.3.7/css/bootstrap.min.css" - 200 10.19.2.16:63386 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/themes/basic/base.css" - 200
10.19.2.16:63385 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/bootstrap-timepicker/css/bootstrap-timepicker.min.css" - 200
10.19.2.16:63387 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/scripts/jquery-3.1.0.min.js" - 200
10.19.2.16:63388 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/bootstrap-3.3.7/js/bootstrap.min.js" - 200
10.19.2.16:63389 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/bootstrap-timepicker/js/bootstrap-timepicker.js" - 200
10.19.2.16:63385 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/scripts/behaviors.js" - 200 10.19.2.16:63388 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/scripts/intervalSelect.js" - 200
10.19.2.16:63386 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/scripts/schedule.js" - 200
10.19.2.16:63387 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/images/favicon-16x16.png" - 200
10.19.2.16:63381 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/themes/basic/logo.png" - 200
10.19.2.16:63387 - - [11/Sep/2017 14:58:52] "HTTP/1.1 GET /static/themes/basic/grass.jpg" - 200
someone logged in
10.19.2.16:63401 - - [11/Sep/2017 14:59:05] "HTTP/1.1 POST /login" - 303 See Other
10.19.2.16:63401 - - [11/Sep/2017 14:59:09] "HTTP/1.1 GET /" - 200 OK
10.19.2.16:63401 - - [11/Sep/2017 14:59:09] "HTTP/1.1 GET /static/themes/basic/home.png" - 200 10.19.2.16:63404 - - [11/Sep/2017 14:59:09] "HTTP/1.1 GET /static/themes/basic/on.png" - 200
10.19.2.16:63405 - - [11/Sep/2017 14:59:09] "HTTP/1.1 GET /api/status" - 200 OK
10.19.2.16:63401 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /vs" - 200 OK
10.19.2.16:63404 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/themes/basic/base.css" - 304 Not Modified10.19.2.16:63405 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/bootstrap-timepicker/css/bootstrap-timepicker.min.css" - 304 Not Modified10.19.2.16:63415 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/bootstrap-3.3.7/js/bootstrap.min.js" - 304 Not Modified
10.19.2.16:63401 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/bootstrap-3.3.7/css/bootstrap.min.css" - 304 Not Modified
10.19.2.16:63414 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/scripts/jquery-3.1.0.min.js" - 304 Not Modified10.19.2.16:63416 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/bootstrap-timepicker/js/bootstrap-timepicker.js" - 304 Not Modified
10.19.2.16:63415 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/scripts/intervalSelect.js" - 304 Not Modified
10.19.2.16:63404 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/scripts/behaviors.js" - 304 Not Modified
10.19.2.16:63405 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/scripts/schedule.js" - 304 Not Modified
10.19.2.16:63414 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/images/favicon-16x16.png" - 304 Not Modified
10.19.2.16:63405 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/themes/basic/grass.jpg" - 304 Not Modified
10.19.2.16:63401 - - [11/Sep/2017 14:59:17] "HTTP/1.1 GET /static/themes/basic/logo.png" - 304 Not Modified
10.19.2.16:63401 - - [11/Sep/2017 14:59:22] "HTTP/1.1 GET /vo" - 200 OK
10.19.2.16:63401 - - [11/Sep/2017 14:59:22] "HTTP/1.1 GET /static/themes/basic/collapsed.png" - 200
10.19.2.16:63401 - - [11/Sep/2017 14:59:22] "HTTP/1.1 GET /static/themes/basic/expanded.png" - 200
10.19.2.16:63427 - - [11/Sep/2017 14:59:37] "HTTP/1.1 GET /" - 200 OK
10.19.2.16:63427 - - [11/Sep/2017 14:59:37] "HTTP/1.1 GET /static/themes/basic/home.png" - 304 Not Modified10.19.2.16:63428 - - [11/Sep/2017 14:59:37] "HTTP/1.1 GET /static/themes/basic/on.png" - 304 Not Modified
10.19.2.16:63429 - - [11/Sep/2017 14:59:38] "HTTP/1.1 GET /api/status" - 200 OK
10.19.2.16:63427 - - [11/Sep/2017 14:59:39] "HTTP/1.1 GET /static/themes/basic/off.png" - 200
10.19.2.16:63427 - - [11/Sep/2017 14:59:43] "HTTP/1.1 GET /plugins" - 200 OK
10.19.2.16:63428 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/themes/basic/base.css" - 304 Not Modified10.19.2.16:63427 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/bootstrap-3.3.7/css/bootstrap.min.css" - 304 Not Modified10.19.2.16:63434 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/scripts/jquery-3.1.0.min.js" - 304 Not Modified10.19.2.16:63429 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/bootstrap-timepicker/css/bootstrap-timepicker.min.css" - 304 Not Modified
10.19.2.16:63435 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/bootstrap-3.3.7/js/bootstrap.min.js" - 304 Not Modified
10.19.2.16:63436 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/bootstrap-timepicker/js/bootstrap-timepicker.js" - 304 Not Modified
10.19.2.16:63429 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/scripts/intervalSelect.js" - 304 Not Modified10.19.2.16:63427 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/scripts/schedule.js" - 304 Not Modified10.19.2.16:63428 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/scripts/behaviors.js" - 304 Not Modified
10.19.2.16:63434 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/images/favicon-16x16.png" - 304 Not Modified
10.19.2.16:63429 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/themes/basic/grass.jpg" - 304 Not Modified10.19.2.16:63427 - - [11/Sep/2017 14:59:44] "HTTP/1.1 GET /static/themes/basic/logo.png" - 304 Not Modified
10.19.2.16:63427 - - [11/Sep/2017 14:59:47] "HTTP/1.1 GET /browse-plugins" - 200 OK
Install qdict: <Storage {'relay_board': u'on'}>
relay_board
Traceback (most recent call last):
File "/home/pi/SIP/web/application.py", line 239, in process
return self.handle()
File "/home/pi/SIP/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/home/pi/SIP/web/application.py", line 423, in _delegate
return handle_class(cls)
File "/home/pi/SIP/web/application.py", line 399, in handle_class
return tocall(*args)
File "/home/pi/SIP/plugins/plugin_manager.py", line 156, in GET
response = urllib.urlopen('https://raw.github.com/Dan-in-CA/SIP_plugins/master/'+p+'/'+p+'.manifest')
File "/usr/lib/python2.7/urllib.py", line 86, in urlopen
return opener.open(url)
File "/usr/lib/python2.7/urllib.py", line 207, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 450, in open_https
return self.http_error(url, fp, errcode, errmsg, headers)
File "/usr/lib/python2.7/urllib.py", line 371, in http_error
result = method(url, fp, errcode, errmsg, headers)
File "/usr/lib/python2.7/urllib.py", line 664, in http_error_301
return self.http_error_302(url, fp, errcode, errmsg, headers, data)
File "/usr/lib/python2.7/urllib.py", line 634, in http_error_302
data)
File "/usr/lib/python2.7/urllib.py", line 660, in redirect_internal
return self.open(newurl)
File "/usr/lib/python2.7/urllib.py", line 207, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 436, in open_https
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 958, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 818, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 780, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1165, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 143, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
self._sslobj.do_handshake()
IOError: [Errno socket error] [Errno 1] _ssl.c:504: error:140773E8:SSL routines:SSL23_GET_SERVER_HELLO:reason(1000)
10.19.2.16:63427 - - [11/Sep/2017 14:59:56] "HTTP/1.1 GET /inst-plugins" - 500 Internal Server Error
10.19.2.16:63427 - - [11/Sep/2017 14:59:56] "HTTP/1.1 GET /favicon.ico" - 303 See Other
10.19.2.16:63427 - - [11/Sep/2017 14:59:56] "HTTP/1.1 GET /favicon.ico" - 303 See Other
10.19.2.16:63427 - - [11/Sep/2017 14:59:56] "HTTP/1.1 GET /" - 200 OK
[email=^Cpi@raspberrypi:~/SIP$]^Cpi@raspberrypi:~/SIP$[/email]
Hi Dan...
I grabbed another 3.2.28 SIP I have - updated it to 3.2.30....now it has same issue as described above.
So the issue definitely appears related to the 3.2.30 version (based on my experiences)
Note to self - take an image of the current version before upgrading and breaking it...doh!
|
|
|
relay not switching off |
Posted by: bogeuh - 2017 Aug 18, 01:39 PM - Forum: Installation and set up questions
- Replies (2)
|
|
picture
i have an active low 2 channel relay from sunfounder connected to raspi3b
the relay switches on when i use run once or manual, but it never shuts off
when i restart sip, the relay turns off and can then be turned on again via sip
if i change the relay options in sip as in uncheck active low, i can turn the relay off without having to restart sip. but changing the relay type from low to high and back is just as annoying as having to restart sip
any idea what i'm missing?
relay is on gpio4 pin7
|
|
|
Email Alert (reminder) |
Posted by: WVUTampaAlum - 2017 Aug 18, 12:10 PM - Forum: Feature requests
- Replies (1)
|
|
I would like to be able to get email reminders a configurable amount of hours before programs run. I can never remember which program is on or if SIP system is on or off. My stuff isn't nearly as complicated as some people and a reminder would be an awesome feature instead of loggin in constantly to remember.
Reminder would get sent to some email address a configurable amount of hours before programs time and only sent if system is on/enabled.
Thanks!
|
|
|
Programs Main page has wrong 'for' details |
Posted by: WVUTampaAlum - 2017 Aug 18, 11:55 AM - Forum: Report a problem
- Replies (4)
|
|
I am on the latest version and have noticed details of "for" section in program main/overview page are wrong.
All of mine show as though each program will run for more then an hour while none of my programs actually go an hour.
Attached couple of screen shots. One shows main program overview where details are wrong and other ones show my real programs.
Ahhh...... uploading pics didn't work with this small file size requirement.
Here is a shared album link.
https://goo.gl/photos/c4b25TZVbfrfB24c7
|
|
|
Orange pi Zero Installation .. |
Posted by: takezo - 2017 Aug 02, 08:34 AM - Forum: Installation and set up questions
- Replies (1)
|
|
Hi there!, @dan
im trying to configure my orangepi zero to run SIP.
I have downloaded last version or SIP of branch ORANGE, please, check the print out:
Code: takezo@orangepizero:~/OrangeSIP/SIP$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessie
takezo@orangepizero:~/OrangeSIP/SIP$ git branch
master
* orange
I also modified the path of home directorey where is located SIP, modified into file sip.sh
The case is, when i try to run the sip, Im getting the following errors:
Code: takezo@orangepizero:~/OrangeSIP/SIP$ sudo python sip.py
[sudo] password for takezo:
ALARM from Example_Sender!: Just and example!
plugins loaded:
mobile_app
plugin_manager
signaling_examples
system_update
Traceback (most recent call last):
Starting timing loop
File "sip.py", line 247, in <module>
set_output()
File "/home/takezo/OrangeSIP/SIP/gpio_pins.py", line 228, in set_output
disableShiftRegisterOutput()
File "/home/takezo/OrangeSIP/SIP/gpio_pins.py", line 169, in disableShiftRegisterOutput
setup_pins()
File "/home/takezo/OrangeSIP/SIP/gpio_pins.py", line 149, in setup_pins
gpio.setcfg(pin_sr_noe, gpio.OUT)
AttributeError: 'module' object has no attribute 'OUT'
thank you so much to support me whith this installation,
BR!
|
|
|
Weather-Based Water Level |
Posted by: ghowell24 - 2017 Jul 24, 05:38 PM - Forum: Plugin questions
- Replies (1)
|
|
Has anyone tweaked this plugin? Have any insight or suggestions to improve accuracy? My issue is this, I have this plugin set basically to use 7 days worth of data (4 historical, present day, and 2 forecast days) and I received 2 inches of rain last night and this morning I watered at basically more than 60%.
Here is a snip from the code:
total_info = {
'temp_c': sum([val['temp_c'] for val in info.values()])/len(info),
'rain_mm': sum([val['rain_mm'] for val in info.values()]),
'wind_ms': sum([val['wind_ms'] for val in info.values()])/len(info),
'humidity': sum([val['humidity'] for val in info.values()])/len(info)
}
# We assume that the default 100% provides 4mm water per day (normal need)
# We calculate what we will need to provide using the mean data of X days around today
water_needed = 4 * len(info) # 4mm per day
water_needed *= 1 + (total_info['temp_c'] - 20) / 15 # 5 => 0%, 35 => 200%
water_needed *= 1 + (total_info['wind_ms'] / 100) # 0 => 100%, 20 => 120%
water_needed *= 1 - (total_info['humidity'] - 50) / 200 # 0 => 125%, 100 => 75%
I am guessing the temperature is what is causing my weekly increase from 28mm (basically 1 inch) to almost 60mm (to almost 2 1/3 inches).
What would be the best way to tune this back a little without completely disabling the impact that the temperature plays in determining the needed amount?
|
|
|
|