Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 360 online users. » 0 Member(s) | 359 Guest(s) Bing
|
Latest Threads |
SIP Stopped Working After...
Forum: Report a problem
Last Post: dan
2024 Dec 16, 04:19 PM
» Replies: 6
» Views: 221
|
Master keeps resetting to...
Forum: Report a problem
Last Post: DavidCNZ
2024 Dec 04, 08:57 PM
» Replies: 12
» Views: 246
|
installation fails
Forum: Installation and set up questions
Last Post: dan
2024 Nov 20, 06:52 PM
» Replies: 4
» Views: 92
|
Allow plugins ability to ...
Forum: Feature requests
Last Post: jonathan
2024 Aug 11, 10:56 PM
» Replies: 11
» Views: 489
|
Tank Fill Function
Forum: Feature requests
Last Post: dan
2024 Jul 12, 03:07 PM
» Replies: 3
» Views: 267
|
Curl Method Menu
Forum: Installation and set up questions
Last Post: astrogerard
2024 Jun 22, 03:15 PM
» Replies: 4
» Views: 333
|
Module i2c relay.
Forum: Feature requests
Last Post: litronas
2024 Jun 22, 12:45 PM
» Replies: 5
» Views: 386
|
problem after upgrade to ...
Forum: Installation and set up questions
Last Post: Darek
2024 May 19, 08:54 PM
» Replies: 2
» Views: 257
|
Monthly Adjust per Statio...
Forum: Writing plugins
Last Post: cdesouza
2024 Apr 18, 06:33 AM
» Replies: 17
» Views: 874
|
MQTT Plugin initialised b...
Forum: Report a problem
Last Post: cdesouza
2024 Mar 25, 03:56 PM
» Replies: 2
» Views: 235
|
|
|
Edit a Program give error |
Posted by: pokee - 2017 Mar 10, 11:37 PM - Forum: Report a problem
- Replies (3)
|
|
Hi
After my original PI and opensprinkler got fried in a power surge I replaced the unit and rebuild the application and then imported a backup of my setup. It's working great as always but I need to edit a program to add another station. When I edit the program I get the below error.
internal server error
Any help would be great
Thanks
Paul
|
|
|
Modbus Plugin |
Posted by: cyberthom - 2017 Mar 07, 03:54 PM - Forum: Writing plugins
- Replies (7)
|
|
Due to the long distance and a higher number of stations, I would like to control the valves via modbus. I already have Arduino boards ready that can be controlled via modbus. From the Raspberry I can switch them on and of via modbus. Now I would like to use modbus commands (which are python function calls) instead of GPIO pins. What would be the best way? The most clean way would be to write a plugin. But I am not sure if that would be appropriate here as it would influence a central part of the control architecture.
|
|
|
plugin_menu.append limitation |
Posted by: floki - 2017 Feb 24, 05:46 PM - Forum: Writing plugins
- Replies (2)
|
|
Dan, or someone,
can you explain the use of plugin_map in sip.py, which limits the URL of any button added to plugin_menu to 2-characters plus the leading '/'?
I'm developing a plugin which will add 3 items to the Plugin menu. The URL names are all different, but not the first 2-characters, since they "belong" to the same plugin, the URL names start with the plugin name.
For example, using the proto plugin, if one does the following, the URLs are rejected by the 3-character test in the plugin_map code.
Code: # Add new URLs to access classes in this plugin.
urls.extend([
'/proto-sp', 'plugins.proto.settings',
'/proto-b1', 'plugins.proto.method1',
'/proto-b2', 'plugins.proto.method2',
'/proto-save', 'plugins.proto.save_settings'
])
# Add this plugin to the PLUGINS menu ['Menu Name', 'URL'], (Optional)
gv.plugin_menu.append(['Proto Plugin', '/proto-sp'])
gv.plugin_menu.append(['Proto B1', '/proto-b1'])
gv.plugin_menu.append(['Proto B2', '/proto-b2'])
Then when you run SIP, you get the error:
Code: $ pi@raspberrypi:~/SIP $ sudo python ospi.py
...
ERROR - Plugin Conflict: Proto B2; /proto-b2 and Proto B1; /proto-b1
$
I commented out the plugin_map check code in sip.py, and it did not seem to cause any problems. That is, all three items were added to the menu, and work properly.
Leaving the plugin_map check code in place, I would have to work around this 2-char limitation by renaming my URLS some thing like:
b1-proto, and b2-proto.
But this goes against my OCD tendencies! ;-) And, then my plugin would conflict, if enabled, with any other plugin that may create a menu item starting with "b1" or "b2".
Any info as to why this 2-char limit is in place? Any other suggestions or workaround?
Thanks
|
|
|
Rain Sensor stuck on Rain Sensed - fixed |
Posted by: draggaj - 2017 Jan 05, 12:52 AM - Forum: Report a problem
- Replies (9)
|
|
UPDATE ***** fixed in SIP Ver 3.1.93 when running the latest Jessie Raspian. **** Thanks to Dan for his assitance with this fix.
Hi there, have a rain sensor issue...SIP ver 3.1.87, Options > Rain sensor, Use Rain sensor ticked and Normally Open ticked.
Shorted Grnd and Pin 8 (Rev1 Pi - GPIO 14) and home page shows Rain Delay and Rain Sensed and Stations show Suppressed by Rain Sensor - good.
Removed short between pins - stays the same...refreshed for >15 minutes, same. Logged out and back in, cleared browser cache, same...
Restarted SIP with Options > System Restart > Restart - same
Restarted RPi with Options > System Restart > Reboot - same
Manually toggled the Options > Rain sensor, Normally Open to unticked - that cleared the Rain Sensed to No Rain sensed, but the Stations still show Suppressed by Rain sensor.
Toggle it back again and Rain Sensed is back again
how/when is the rain sensor reset?
Is there a time delay?, if so how long and where is it configured? <-- I found this. Home Page > Rain Delay item, click it and it prompts "Enter hours to delay" with a default of zero. I'll try changing the zero to 1.
Cant find any reference to it.
Also had a devil of a time finding any reference to where a rain sensor would be connected. Eventually found one reference to pin 8 here http://nosack.com/sipforum/showthread.ph...ight=pin+8
Recommend that connection of rain sensor contact needs to be added to here https://github.com/Dan-in-CA/SIP/wiki/rain_sensor
Perhaps also mention connection on Options > Rain sensor tooltips.
|
|
|
Images - each zone |
Posted by: Flyguy - 2016 Dec 19, 07:18 PM - Forum: Feature requests
- Replies (1)
|
|
I'm toying with the idea of integrating images next to the valve controls. The idea as of right now is to link to network based images, so pictures are not required to be stored locally. Maybe have an option to store locally. This will be useful with IP cameras and rPi cameras.
some guidance on where I should look to add in this functionality would be helpful.
|
|
|
MQTT Connection Reliability and Debug |
Posted by: dg4444 - 2016 Nov 22, 08:16 PM - Forum: Report a problem
- Replies (2)
|
|
Hi,
I have been experimenting with Raspberry Pi, SIP and the MQTT plugins as a Misting System. Controller. I 'm using a free AWS CloudMQTT service as my broker. I hard coded a Username and Password into MQTT.py to allow authentication on the broker. I'm using a MQTT Client iOS app to control SIP via the broker. This allows me to control the system from outside the house, without having to set up any VPNs or Port Fowarding.
I have found that the MQTT Plugins stops working if the wifi network connection is momentarily lost. I have two wifi hotspots and determined that the Raspberry Pi network connection is stable to one hotspot but not the other. the SIP program continues to work and I can access it via the browser.
I was wanting to turn on the DEBUG logging on SIP, so that I can investigate. How is the best way to do this?
Thanks,
Dave
|
|
|
MCP23017 plugin |
Posted by: geoffr - 2016 Nov 08, 11:41 PM - Forum: Plugin suggestions
- Replies (6)
|
|
Hi,
I just wanted to put up a short note that I have started developing a plugin to control a relay board that is interfaced to a Raspberry Pi using a MCP23017 GPIO expander.
The code is very much in its infancy at the moment, and is really just a hack of the relayboard plugin.
My approach has been to abstract the hardware interfacing elements out of the SIP plugin and rather have it call 2 C programs which respectively initialise the MCP23017, and control valves. This has the side effect that the plugin could be repurposed to interface to a different hardware layer by purely replacing the 2 C programs.
The code still needs tidying, but it looks like it is working so far.
I would be interested to know if anyone else has a use for this plugin. (That would motivate me more to get it to a point where it can be redistributed.)
Regards,
Geoff.
|
|
|
Issue with weather_level_adj plugin after update |
Posted by: MrCmonster - 2016 Nov 07, 07:18 PM - Forum: Report a problem
- Replies (2)
|
|
Since the latest SIP update which I installed yesterday Nov 06 2016, I'm getting an error from the weather_level_adj plugin. I have my location in Options set as pws:STATIONID (replaced with my station ID of course).
The error I'm getting is:
Code: Weather-base water level encountered error:
Traceback (most recent call last):
File "/home/pi/SIP/plugins/weather_level_adj.py", line 86, in run
forecast = forecast_info(self)
File "/home/pi/SIP/plugins/weather_level_adj.py", line 387, in forecast_info
'rain_mm': float(day_info['qpf_allday']['mm']),
TypeError: float() argument must be a string or a number
Any help debugging this would be great. The plugin does still work correctly if I put in my zip code, but I'd prefer to use my own personal weather station as I have been.
Thanks!
|
|
|
SIP is now mobile |
Posted by: dan - 2016 Nov 03, 07:21 PM - Forum: Announcements
- No Replies
|
|
SIP's native web interface now works on mobile devices such as phones and tablets.
It still needs some work but is quite usable.
It does not require installing an app so it won't use extra resources on your device only a web browser is needed. This also allows access to plugins which are not supported by the OpenSporinkler mobile app.
It is also easy to use with a VPN for remote access. I easily set up a VPN server on a Raspberry Pi connected to my home router using PIVPN:
http://www.pivpn.io/
It did require installing the OpenVPN app on my phone but I can now securely access SIP (and other devices on my home network) from anywhere in the world where there is internet connectivity.
Dan
|
|
|
|