Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 762
» Latest member: johnsonfe
» Forum threads: 298
» Forum posts: 1,683

Full Statistics

Online Users
There are currently 257 online users.
» 0 Member(s) | 256 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: 220
Master keeps resetting to...
Forum: Report a problem
Last Post: DavidCNZ
2024 Dec 04, 08:57 PM
» Replies: 12
» Views: 239
installation fails
Forum: Installation and set up questions
Last Post: dan
2024 Nov 20, 06:52 PM
» Replies: 4
» Views: 86
Allow plugins ability to ...
Forum: Feature requests
Last Post: jonathan
2024 Aug 11, 10:56 PM
» Replies: 11
» Views: 485
Tank Fill Function
Forum: Feature requests
Last Post: dan
2024 Jul 12, 03:07 PM
» Replies: 3
» Views: 266
Curl Method Menu
Forum: Installation and set up questions
Last Post: astrogerard
2024 Jun 22, 03:15 PM
» Replies: 4
» Views: 331
Module i2c relay.
Forum: Feature requests
Last Post: litronas
2024 Jun 22, 12:45 PM
» Replies: 5
» Views: 381
problem after upgrade to ...
Forum: Installation and set up questions
Last Post: Darek
2024 May 19, 08:54 PM
» Replies: 2
» Views: 256
Monthly Adjust per Statio...
Forum: Writing plugins
Last Post: cdesouza
2024 Apr 18, 06:33 AM
» Replies: 17
» Views: 869
MQTT Plugin initialised b...
Forum: Report a problem
Last Post: cdesouza
2024 Mar 25, 03:56 PM
» Replies: 2
» Views: 233

 
  What is SIP?
Posted by: nightshark - 2016 Aug 19, 03:38 PM - Forum: Installation and set up questions - Replies (3)

I guess I don't understand what the difference between SIP and OpensprinklerPi is. Is it just the programming language ?

Print this item

  weather-based water level
Posted by: sjbauer - 2016 Aug 11, 01:51 PM - Forum: Plugin questions - Replies (9)

Currently, I am using the latest version from your GitHub repository.  The issue that I have noticed, is it appears that the weather-based water level adjustment plugin is not using the history correctly.  currently, the way I am determining this is by looking at the history daily summery records stored under the data directory and have noticed the rain_mm appears to no be adding up correctly.

Is there some debug version of the plugin around or does the debug instrumentation need to be added to the plugin?

Steve

Print this item

  RF Stations
Posted by: JCortes - 2016 Aug 10, 10:08 PM - Forum: Feature requests - Replies (3)

Dan,

First of all thanks for your excellent piece of work. I have a 7 zone install which includes my pool pump which had been running problem free since August 2015. Just last week I noticed that irrigation had stopped and I suspected the 24v transformer, upon investigation this was found to be OK and I noted that none of the relays were being switched though software wise everything looked normal.

To cut the long story short it was well past midnight and pushed to get things working in the dark hours I simply swapped the Pi out and everything is back to normal. I have not yet tested the Pi I took out to confirm if the GPIO has died.

Anyway my reason for writing is that I am looking into changing the existing setup to make it easier to maintain deploy and I am interested in the possibility of having RF ( 433mhz ) stations.

I have searched high and low and whilst I see that opensprinkler is capable of doing this and in a post in another forum I see a response suggesting using a generic 433Mhz Tx connected RF transmitter to +5V, GND, and GPIO pin 17 on RPi
and making changes to your interval program I am unsure where exactly to fit this in.

Ideally I would like to be able to add these RF stations via the UI and have multiple RF stations but think the code below would be just for one station which  would not be very useful.

Grateful for your thoughts and help.

Kind Regards

Joseph


Code:
#!/usr/bin/python

import RPi.GPIO as GPIO
import time

SEND_PIN = 17

SIGNATURE = 0b0000111101010101

COMMAND = 0b11110001

DELAYSHORT = 160
DELAYLONG = 500

OVERHEAD = 0 # overhead time (in us) for calling GPIO.output and time.sleep. If 0 doesn't work, try 125

def ookPulse(on,off):
  GPIO.output(SEND_PIN,True)
  time.sleep((on-OVERHEAD)/1000000.0)
  GPIO.output(SEND_PIN,False)
  time.sleep((off-OVERHEAD)/1000000.0)

def pt2262Send(signature,command):
  for k in range(0,16):
    for i in range(0,16):
      if((signature>>(15-i)) & 0x1):
        ookPulse(DELAYLONG, DELAYSHORT)
      else:
        ookPulse(DELAYSHORT, DELAYLONG);     
    for i in range(0,8):
      if((command>>(7-i)) & 0x1):
        ookPulse(DELAYLONG, DELAYSHORT)
      else:
        ookPulse(DELAYSHORT, DELAYLONG)
    ookPulse(DELAYSHORT, DELAYLONG)
    time.sleep(.005)

def main():
  GPIO.cleanup()
  GPIO.setmode(GPIO.BCM)
  GPIO.setup(SEND_PIN,GPIO.OUT)
  while True:
    pt2262Send(SIGNATURE,COMMAND)
    time.sleep(5)

main()

Print this item

  email_adj
Posted by: mrbeezer@gmail.com - 2016 Jul 22, 09:05 PM - Forum: Plugin questions - Replies (3)

Really like this plugin.  Came in very handy while testing and debugging my installatio,  Thought it would be handy to have a summary of log entries emailed by day, week etc.

Dick

Print this item

  Apache ReverseProxy
Posted by: schs - 2016 Jul 21, 09:18 AM - Forum: Installation and set up questions - Replies (1)

Hi
I tried to configure a reverse Proxy, so that we can controll sip from our webpages.
Our Webserver run Debian Jessie with apache 2.4

On the server side the configuration look like this:

 ProxyPass /ospi/test/ http://172.33.81.4/
 ProxyPassReverse /ospi/test http://172.33.81.4/

<location /ospi/test/>
ProxyPassReverseCookieDomain 172.33.81.4 domain
RequestHeader set X-SCRIPT-NAME /ospi/test
RequestHeader set X-SCHEME https
RequestHeader set X-Forwarded-Proto "https"
</location>

I can only browse the start-side. Images, javascript, menues are not working and linked to /here - not to /ospi/test/ ....

I don't know if this is an apache problem or a problem with the ReverseProxy.py

Can anyone help me?
Thank you

Heino

Print this item

  SIP Setup
Posted by: smithrb - 2016 Jun 24, 01:14 AM - Forum: Installation and set up questions - Replies (1)

Just setup a shiny new OS Pi using an RPi2B and latest OSpi - rec'd today via USPS.

Clean install of latest raspian:jessie - this date.

Following instructions for SIP on the wiki, I get this result:

sudo python sip.py
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at localhost(8888)

Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
  File "sip.py", line 16, in <module>
    import gv
  File "/home/pi/SIP/gv.py", line 48, in <module>
    from helpers import password_salt, password_hash, load_programs, station_names
  File "/home/pi/SIP/helpers.py", line 26, in <module>
    from gpio_pins import GPIO, pin_rain_sense, pin_relay
  File "/home/pi/SIP/gpio_pins.py", line 71, in <module>
    pi.set_mode(pin_rain_sense, pigpio.INPUT)
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1053, in set_mode
    return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 848, in _pigpio_command
    sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'

Any ideas?

Thanks...

Print this item

  relay board issue
Posted by: mrbeezer@gmail.com - 2016 Jun 16, 09:49 PM - Forum: Installation and set up questions - No Replies

I have the system up and running with a 4 relay board.   This works ok if I wire it as the first four of an 8 relay board.  If I wire it, as the online diagram shows it will not work.


Idea?

Dick

Print this item

  irrigate according to data from meteorological station
Posted by: niv - 2016 Jun 14, 11:35 PM - Forum: Installation and set up questions - Replies (1)

I just published irrigation bone which uses the previous version of SIP known as open sprinkler to irrigate using meteorological data.
Any feedback is welcome.
Code was tested on a few gardens and worked very well.
It now works only in Israel, but it will soon also work in spain.
I am now working on changing it to behave as a SIP plugin.

Print this item

  Programs don't work, manual on/off and run once program are working
Posted by: Alexsky - 2016 Jun 13, 07:58 AM - Forum: Report a problem - No Replies

Hello!

My TIAO Sprinkler Pi doesn't work in auto mode. I can start/stop the sprinklers in manual mode. Run Once mode is working well too. But when a program is starting at time I see "00:00" and TIAO Sprinkler Pi totally freezes : http://take.ms/UzNfu
After the freeze I need to reboot the board for it starts work in manual mode or Run Once Program.
You can see properties of my test program here: http://take.ms/eaoqS
My SIP version is 3.1.46 (2016-04-30)(2016-04-30)

I think the problem with the Real Time Clock, because my web page doesn't show hours and minutes correctly: http://take.ms/EBRoE

Can anybody help me?

Thanks a lot,
   Alex

Print this item

  Install Problems
Posted by: RWoerz - 2016 Jun 09, 01:21 AM - Forum: Installation and set up questions - Replies (8)

I'm sure this can't be normal otherwise SIP would have died long ago. My son gave me a Raspberry Pi that is now about a year old. He never loaded an OS until a week ago when he gave it to me so it has a very recent release of Linux. His friend who has a similar RP running SIP sent me the install instructions. 

sudo apt-get install git

git clone https://github.com/Dan-in-CA/OSPi
cd OSPi
sudo python ospi.py


As I already had git I skipped the first line. When I tried running ospi.sy I got the following error message which I have since found a work around for. 



pi@raspberrypi:~/OSPi $ sudo python ospi.py
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at localhost(8888)
 
Did you start the pigpio daemon? E.g. sudo pigpiod
 
Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
 
Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
  File "ospi.py", line 16, in <module>
    import gv
  File "/home/pi/OSPi/gv.py", line 48, in <module>
    from helpers import password_salt, password_hash, load_programs, station_names
  File "/home/pi/OSPi/helpers.py", line 26, in <module>
    from gpio_pins import GPIO, pin_rain_sense, pin_relay
  File "/home/pi/OSPi/gpio_pins.py", line 71, in <module>
    pi.set_mode(pin_rain_sense, pigpio.INPUT)
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1053, in set_mode
    return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 848, in _pigpio_command
    sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'
pi@raspberrypi:~/OSPi $

Now that that has a work around everything was looking up. Now when I try running ospi I get the following message. 

pi@raspberrypi:~/OSPi $ sudo pigpiod
pi@raspberrypi:~/OSPi $ pigs pigpv
50
pi@raspberrypi:~/OSPi $ pigs hwver
10620993
pi@raspberrypi:~/OSPi $ sudo python ospi.py
plugins loaded:
  mobile_app
  plugin_manager
  relay_board
  signaling_examples
  system_update
http://0.0.0.0:80/
 Starting timing loop

Thought I was in the money until I figured out http://0.0.0.0:80 wasn't going to get me anywhere. My friend told me I needed to set up a static IP address. Well according to the "Internet" there are about as many opinions on how to do that as there are so called "Linux experts". Something about the number of stars comes to mind. Sorry for the digression. 

It appears that in the before time (in Linux speak that was before the latest release) you made changes to the /etc/network/interfaces file, which I did. It was at that point something very special happened, I started getting not one but two IP addresses (told you it was special), the static address I configured and one from DHCP. Well I thought progress and maybe SIP would use the static IP, NO JOY.

One thing I've found about SCE's (so called experts) is they all seem a bit vague on specifics. They seem to assume they're talking to another one of there kind. I've now found many sites professing to know how to set up a static IP in the now time, in the now time you have to configure a static IP address in the /etc/dhcpcd.conf file. They might give some general info on what that might look like but so far none has made the magic work so here I am. HELP!    

Not sure what is going on with the fount size       
p.s.  Interesting at least to me, the before and now time was a construct I got from my son. They can both be almost infinite in size (big and small) just not at the same time. Scotty you can beam me up now Scotty...............SCOTTY?

Print this item