PDA

View Full Version : SNAPconnect as a library


TimWhite
02-11-2010, 10:30 PM
I would really like to be able to embed SNAPconnect as a library inside my app, rather than having to distribute it as a standalone, separate installable, that has to run as a service or separate app.

I'd like to just bake the SNAPconnect libraries into my Java/Python app - I don't need it as a gateway, I just need my app to be able to talk to the network directly...

Thanks!

Tim

anchorstanley
07-13-2010, 03:15 PM
I also would like this functionality, only in my case a C/C++ app.

kbanks
07-19-2010, 05:02 PM
For the Python case specifically, we actually have something in the works that I think will meet your needs.

Instead of having your Python app connect to SNAPconnect, you will be able to import it, and use it directly.


# This is not real code, I'm just trying to convey the "flavor" of the new "SNAPconnect"

import snap

self.snapcom = snap.SNAPcom(funcs={'setButtonCount': frame.setButtonCount})
self.snapcom.open_serial(1, 2)


The code is real, we are already using it in the www.SNAPlighting.com demo site, and inside the new E10s. We still have to "productize" the technology, with documentation, etc. This is starting to pick up steam now that the 2.4 versions of SNAP and Portal have been released.

For other languages besides Python, you are still restricted to the XML-RPC style interface.

TimWhite
07-30-2010, 01:01 PM
Wow, that sounds very good...much closer to what I need!

Keep us up on when we might be able to use it!

Thanks,

Tim

Warlord
11-20-2010, 02:22 PM
kbanks, how're things going?? We are looking forward to try the python snap library. Any news??

admin
11-22-2010, 11:15 AM
We are still working on the SNAP python library and will post a public beta when it gets closer to completion.

kbanks
11-29-2010, 07:13 PM
I've been out for the holidays, sorry for the slow response.

The SNAP Connect software is already shipping inside of E10s, and is being used by select beta customers.

We're having trouble getting the MANUAL written up, but with the Thankgiving holidays behind us we are going to renew our efforts.

Luis Diego
04-27-2011, 09:37 PM
I want to use SnapConnect with a small server (plugcomputer) similar to the E10. What are the chances of using SnapConnect as a library in a PlugComputer (w/ Phyton)? :confused:

The options that I have are:

a. SheevaPlug (ARMv5)/Ubuntu 9.04 (Jaunty) - Outdated and lack of security updates in the near future. /Debian

b. GuruPlug Server (ARMv6)/Debian - Hardware issues (heating), unreliable

c. DreamPlug (ARMv7)/Debian - ???

d. CompuLab TrimSlice/Ubuntu 10 - Overkill and expensive (not available)

Gordon_H
09-20-2011, 04:45 PM
How is this going? Very interested in trying it.

Gordon_H
11-23-2011, 06:07 PM
Thanksgiving was mentioned above- wonder how this module approach is coming along a year later?

Jheath
11-25-2011, 12:23 PM
Gordan,

This has been available in beta form for some time. It serves as the basis for the SNAP Connect E10 and for the SNAP lighting platform. It simply has not been formally polished up and released for desktop installations since the original SNAP Connect fills the same need.

I can email you a copy if you are interested.