👍 Stefano, thank you for the summary, most appreciated 👍
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
I have no experience with the DS2413, but if I understand correctly the manual,
here is a list of valid commands:
owproxy.write('device_id' + '/PIO.A, b'1’) # A on
owproxy.write('device_id' + '/PIO.A, b’0’) # A off
owproxy.write('device_id' + '/PIO.B, b'1’) # B on
owproxy.write('d
Hi Guys,
I’m pretty “late to the party” but In April this year I upgraded my RPi to the
latest Debian packages to read all my DS28EA00 sensors and ran into issues with
some of the sensor subfields had disappeared, namely “temphigh” And “templow”
and needed to patch the source code and rebuild t
Yes I have struggled with that as well. I have discovered how to do it,
but I don't really understand why.
The answer seems to be that to write a 1 you need
   owproxy.write('device_id' + '/PIO.BYTE, b'1')
so you need to write the byte value of the string 1, not the byte value
of the intege
Hi Martin,
See embedded comments.
On 8/27/2020 2:56 AM, Martin Patzak wrote:
>
> what does *onOff.to_bytes(1,byteorder=sys.byteorder)) *evaluate to? Is
> that resulting in a byte-value? I am not familiar with this...
This seems to be the crux of the problem. After a lot of testing it
appears to b
... did you try Mick's sample program?
> import pyownet
>
> DevAddress = '*3A.0BE14D00*'
> owp = pyownet.protocol.proxy(persistent=True)
> owp.write('/DevAddress/PIO.BYTE',b'0')
> print('PIO.BYTE = ', owp.read('/uncached/DevAddress/PIO.BYTE'))
> print('sensed.BYTE = ', owp.read('/uncached/DevA
what does *onOff.to_bytes(1,byteorder=sys.byteorder)) *evaluate to? Is
that resulting in a byte-value? I am not familiar with this...
Things you could try:
* In the path use the fully qualifying path and add */uncached *and
write a byte-value like this
*owproxy.write('/uncached/3A.0BE1
I have rewritten my code to use pyownet but am now nearly back where I
started. I have the following code:
*owproxy.write('/3A.'+blower.id_+'/PIO.BYTE',onOff.to_bytes(1,byteorder=sys.byteorder))
*That statement gives me the following error:
*pyownet.protocol.OwnetError: [Errno 22] legacy - Inval
Thanks to everyone that replied. I was not aware of pyownet. I will look
into that and rewrite my code to use it.
On 8/24/2020 11:47 AM, Martin Patzak wrote:
> For python I would highly recommend you use the library *pyownet *by
> Stefano Miccoli
> /https://github.com/miccoli/pyownet/
>
> /using F
> It is a little ironic that in the owfs suite of programs the module
> called owfs it the only one you really should not use.
yes, I second that. That was confusing to hear in the beginning. If felt
so intuitive...
Maybe it should not be part of the standard package at all?
> With Python3 the va
On Mon, Aug 24, 2020 at 09:57:58AM -0400, Dennis Putnam wrote:
> I have the following python 3 code:
>
> *fn='/mnt/1wire/3A.'+blower.id_+'/PIO.BYTE'**
> **with open(fn,'wb') as fh:**
> **Â Â fh.write(onOff.to_bytes(1,byteorder=sys.byteorder))
>
> *This produces the error:
>
> *OSError: [Errno 22]
Yes I would second that. It is a little ironic that in the owfs suite
of programs the module called owfs it the only one you really should not
use. Basically hte best way is to run owserver which talks to all the
devices, and then your python code talks to owserver.
I have been using pyowne
Hi Laurent,
I have not. I am a OWFS noob so I don't know what either of those
are/do. I only read an article that indicated I should use BYTE.
On 8/24/2020 12:34 PM, Laurent FAILLIE via Owfs-developers wrote:
> Hi,
>
> I'm controlling several things using DS2406 or DS2408 thru OWFS/Fuse
> (from C
Hi,
I'm controlling several things using DS2406 or DS2408 thru OWFS/Fuse (from C
code but it's the same), and it's working pretty well for years.I.e:
* Some explanations (in French) : Commande d'actionneurs par 1-wire
|
|
| |
Commande d'actionneurs par 1-wire
Par DS2406
|
|
|
* my p
For python I would highly recommend you use the library *pyownet *by
Stefano Miccoli
/https://github.com/miccoli/pyownet/
/using Fuse can lead to weird problems... (not saying that it is the
reason in your specific case)
or you can use the buil-in functions in owserver owread/owwrite/owdir
inste
I have the following python 3 code:
*fn='/mnt/1wire/3A.'+blower.id_+'/PIO.BYTE'**
**with open(fn,'wb') as fh:**
**Â Â fh.write(onOff.to_bytes(1,byteorder=sys.byteorder))
*This produces the error:
*OSError: [Errno 22] Invalid argument
*The value of onOff will be either 1 or 0. In this particular
16 matches
Mail list logo