Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Station is scheduled but it doesn't run
#3
Thank you Dan, for you prompt reply.

1) Setup:
I am only working with one station, which activates a pump, via RF power outlets. I added to a Radio Frequency transmission function to the timing_loop(), which basically triggers the RF waves through the RF transmitter, once Station 1 (Pump) is set to run. See a piece of the timing loop. You can find a piece of the timing loop below, and the RF function is in line 10.

timingloop():
[..]
Code:
else:  # if this station is not yet on
                       if gv.rs[sid][0] <= gv.now < gv.rs[sid][1]:
                           if gv.sd['mas'] - 1 != sid:  # if not master
                               gv.srvals[sid] = 1  # station is turned on
                               set_output()
                               gv.sbits[b] |= 1 << s  # Set display to on
                               gv.ps[sid][0] = gv.rs[sid][3]
                               gv.ps[sid][1] = gv.rs[sid][2]
                               print "2. RFout = 1"
                               tRF2.transmit_code(a_on) # trun on pump by Radio Frequency
                               if gv.sd['mas'] and gv.sd['mo'][b] & 1 << (s - (s / 8) * 80):  # Master settings
                                   masid = gv.sd['mas'] - 1  # master index
                                   gv.rs[masid][0] = gv.rs[sid][0] + gv.sd['mton']
                                   gv.rs[masid][1] = gv.rs[sid][1] + gv.sd['mtoff']
                                   gv.rs[masid][3] = gv.rs[sid][3]
                           elif gv.sd['mas'] == sid + 1:
                               gv.sbits[b] |= 1 << sid
                               gv.srvals[masid] = 1
                               set_output()
                               print "3. RFout = 1"
                               tRF2.transmit_code(a_on) # trun on pump by Radio Frequency
[...]



2) I started SIP from the command line and this was the print upon start:


Code:
fatal: Not a git repository (or any of the parent directories): .git
Could not use git to determine version!
fatal: Not a git repository (or any of the parent directories): .git

Could not use git to determine date of last commit!
ALARM from Example_Sender!: Just and example!
plugins loaded:
  mobile_app
  plugin_manager
  signaling_examples
  system_update
zones changed
 Starting timing loop

[0, 0, 0, 0, 0, 0, 0, 0]
http://0.0.0.0:80/



------------------------------------------------------------------------------------------------

(2017 Jul 19, 08:45 PM)ADDITIONAL NOTE:I removed everything related to the RF transmissions from the script i.e.: I left as it is originally and the message below remains. the script is called sip.py and the directory SIP: Wrote:
Code:
fatal: Not a git repository (or any of the parent directories): .git
Could not use git to determine version!
fatal: Not a git repository (or any of the parent directories): .git
Could not use git to determine date of last commit!
ALARM from Example_Sender!: Just and example!
plugins loaded:
  mobile_app
  plugin_manager
  signaling_examples
  system_update
zones changed
 [Starting timing loop

0, 0, 0, 0, 0, 0, 0, 0]
http://0.0.0.0:80/


elongoThank you Dan, for you prompt reply.

1) Setup:
I am only working with one station, which activates a pump, via RF power outlets. I added to a Radio Frequency transmission function to the timing_loop(), which basically triggers the RF waves through the RF transmitter, once Station 1 (Pump) is set to run. See a piece of the timing loop. You can find a piece of the timing loop below, and the RF function is in line 10.

timingloop():
[..]
Code:
else:  # if this station is not yet on
                       if gv.rs[sid][0] <= gv.now < gv.rs[sid][1]:
                           if gv.sd['mas'] - 1 != sid:  # if not master
                               gv.srvals[sid] = 1  # station is turned on
                               set_output()
                               gv.sbits[b] |= 1 << s  # Set display to on
                               gv.ps[sid][0] = gv.rs[sid][3]
                               gv.ps[sid][1] = gv.rs[sid][2]
                               print "2. RFout = 1"
                               tRF2.transmit_code(a_on) # trun on pump by Radio Frequency
                               if gv.sd['mas'] and gv.sd['mo'][b] & 1 << (s - (s / 8) * 80):  # Master settings
                                   masid = gv.sd['mas'] - 1  # master index
                                   gv.rs[masid][0] = gv.rs[sid][0] + gv.sd['mton']
                                   gv.rs[masid][1] = gv.rs[sid][1] + gv.sd['mtoff']
                                   gv.rs[masid][3] = gv.rs[sid][3]
                           elif gv.sd['mas'] == sid + 1:
                               gv.sbits[b] |= 1 << sid
                               gv.srvals[masid] = 1
                               set_output()
                               print "3. RFout = 1"
                               tRF2.transmit_code(a_on) # trun on pump by Radio Frequency
[...]



2) I started SIP from the command line and this was the print upon start:


Code:
fatal: Not a git repository (or any of the parent directories): .git
Could not use git to determine version!
fatal: Not a git repository (or any of the parent directories): .git

Could not use git to determine date of last commit!
ALARM from Example_Sender!: Just and example!
plugins loaded:
  mobile_app
  plugin_manager
  signaling_examples
  system_update
zones changed
 Starting timing loop

[0, 0, 0, 0, 0, 0, 0, 0]
http://0.0.0.0:80/



------------------------------------------------------------------------------------------------
Reply


Messages In This Thread
Station is scheduled but it doesn't run - by elongo - 2017 Jul 19, 06:21 PM
RE: Station is scheduled but it doesn't run - by elongo - 2017 Jul 19, 08:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)