• 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
pilight7 from Stable --> Nightly
#11
Thumbs Up 
@pilino1234
Thanks ... have to edit my positive answer. Have a look here running at the python console:

Code:
>>> x = subprocess.Popen(['pilight-daemon', '-V'])
pilight-daemon version v7.0
>>> x
<subprocess.Popen object at 0x76c8c1f0>
>>>

>>> subprocess.check_output('pilight-daemon -V', shell=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'pilight-daemon -V' returned non-zero exit status 1
>>>
As you see the first call with 'x' prompts with the pilight string, but 'x' hasn't it ... as you pointed out.
So with the 'check_output' I read it as if our daemon call doesn't return anything here.

A bit confused Surprised

(The simplest solution would be pilight would return the requested string as it does with eg. /config) How about that?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  apt.pilight.org stable Release' is not signed. thomasol 2 260 01-23-2020, 11:34 PM
Last Post: thomasol
  hardware module issues in nightly apartmedia 17 1,782 04-05-2019, 06:59 PM
Last Post: curlymo
  Update to v8.0.10-nightly-a1279212 Ulrich.Arnold 3 1,417 06-04-2018, 08:31 PM
Last Post: curlymo
  Updates for nightly Ulrich.Arnold 1 628 01-26-2018, 07:31 PM
Last Post: curlymo
  Help: switch a gpio switch with webcontrol on pilight stable segalion 7 3,154 07-31-2016, 03:32 PM
Last Post: playerhot
  how to complete remove nightly terrar 8 5,698 04-03-2016, 07:04 PM
Last Post: mvasi90
  new install fails - dev/nightly gneandr 11 9,677 01-29-2016, 11:30 AM
Last Post: WEBcast
  [v7.0 > v...] Errors with the latest nightly curlymo 20 6,926 07-27-2015, 02:37 PM
Last Post: diman87
  Rest API in nightly Image seems not to work spooniester 2 2,093 06-25-2015, 10:07 AM
Last Post: spooniester
  "... stable main" no such file or directory Liquidstone 2 1,150 06-18-2015, 07:22 PM
Last Post: Liquidstone

Forum Jump:


Browsing: 1 Guest(s)