Go to advanced search

by MrYsLab
Tue Jul 18, 2017 10:00 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 3693

Re: Send message via network for multiple clients

The code looks correct. To help debug, there is a monitor utility https://github.com/MrYsLab/python_banyan/blob/master/python_banyan/utils/monitor.py included in the distribution and is installed as a command line executable. This may help show what might be happening. The current version of the mon...
by MrYsLab
Tue Jul 18, 2017 6:18 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 3693

Re: Send message via network for multiple clients

If you could share the code that would make it easier to determine what the problem might be.
by MrYsLab
Fri Jul 14, 2017 1:02 am
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 3693

Re: Send message via network for multiple clients

I think the first step is to make sure you can reliably detect the RF signals generated by the doorbell unit. If I understand what you are trying to accomplish, you will only need the receiver module of the 433Mhz RF Tx/Rx pair that you purchased. I found this article http://www.instructables.com/id...
by MrYsLab
Thu Jul 13, 2017 6:01 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 3693

Re: Send message via network for multiple clients

I misunderstood the problem you are trying to solve and did not understand what the Lloytron door bell is. I am not very familiar with RFSniffer, but from what I gather it allows you to record and playback RF Streams using RPi.GPIO. There is no reason to try and convert to pigpio just for the sake o...
by MrYsLab
Thu Jul 13, 2017 3:57 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 3693

Re: Send message via network for multiple clients

Sorry about the time to install. Not sure why that is so, but I think it is recompiling. If you are not using numpy, then no problem. Numpy is used for dealing with matrix data. The matrices can be quite large, and Banyan allows the transfer of a matrix as a single object. Just so you know, you can ...
by MrYsLab
Thu Jul 13, 2017 2:59 pm
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 3693

Re: Send message via network for multiple clients

To upgrade numpy, type the following in a terminal window: sudo pip3 install numpy --upgrade Also, if you wish to use python-banyan to transfer numpy data, you will need to add an additional parameter in the call to super for banyan_base for both the publisher and subscriber components. Here is an e...
by MrYsLab
Thu Jul 13, 2017 10:51 am
Forum: Python
Topic: Send message via network for multiple clients
Replies: 24
Views: 3693

Re: Send message via network for multiple clients

You might want to give python-banyan https://github.com/MrYsLab/python_banyann a try. It uses zeromq in conjunction with MessagePack to serialize the data. You just need to start up the backplane (the banyan equivalent of an mqtt broker) and the run the Banyan components. All Banyan components inher...
by MrYsLab
Mon Jul 10, 2017 11:41 am
Forum: Python
Topic: Detecting multiple button presses
Replies: 1
Views: 1063

Re: Detecting multiple button presses

I am not sure if this is going to help or perhaps confuse you more, but I prefer to work within a python class. It helps to organize things and usually makes things simpler. Here is an example using the pigpio GPIO library. Pigpio is included with the Raspbian distribution. You just need to start it...
by MrYsLab
Thu Jun 29, 2017 5:30 pm
Forum: Scratch
Topic: Learn to create your own custom scratch extension
Replies: 3
Views: 2689

Re: Learn to create your own custom scratch extension

I have just updated the documentation and created a pypi distribution. To install from pypi, open a terminal window and type: sudo pip3 install s2-pi Or download directly from github https://github.com/MrYsLab/s2-pi The documentation has been relocated here. https://mryslab.github.io/s2-pi/ The demo...
by MrYsLab
Wed Jun 28, 2017 1:24 pm
Forum: Scratch
Topic: Learn to create your own custom scratch extension
Replies: 3
Views: 2689

Re: Learn to create your own custom scratch extension

I am in the process of updating the distribution and this should be completed by the end of the week. The changes I am making are: 1. Improved documentation. 2. Simplified installation process from pypi (pip3 install). 3. When the server is started it will also automatically bring up the Scratch edi...
by MrYsLab
Mon Jun 26, 2017 8:47 pm
Forum: Scratch
Topic: Learn to create your own custom scratch extension
Replies: 3
Views: 2689

Learn to create your own custom scratch extension

Check out my 3 part tutorial on creating your own custom Scratch 2 extensions.
Tutroial: http://mryslab.blogspot.com/search/label/s2-pi
Code: https://github.com/MrYsLab/s2-pi
by MrYsLab
Fri Mar 20, 2015 2:14 pm
Forum: Python
Topic: Pymata Raspberrypi 2
Replies: 2
Views: 850

Re: Pymata Raspberrypi 2

As I mentioned in a private post, if you configure an SD card that works on the B+ and then plug it into the Rpi 2, it should work. In terms of the performance numbers you quote, my guess is that you have not enabled multi-threading in PyFirmata. When you enable multi-threading, please report the nu...

Go to advanced search