Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread Markus Gaugusch
Hi, I also think, that something like that would be a nice solution. Possibly, you could even change the default and offer --pretty or --no-trim to restore the old behaviour. I think the default should be without spaces, but we should not forget about legacy applications, of course. br,

Re: [Owfs-developers] 1-wire stability problems rasberry pi - usb and parasite power

2014-03-18 Thread Nico Bouthoorn
Why don't you use the DS2482-800 as busmasters?, then you can make a hub for a star configuration. like i did on http://fstab.nl/en/beaglebone, it will work also for the raspberry Nico Jan Kandziora wrote: Am 17.03.2014 21:14, schrieb Jan Sennesael: The layout is: master -- 8 port hub

Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread Vajk Fekete
Maybe I am an old chap. If I do not like a function in an API, I just create a wrapper and use my own wrapper in my code. In an object oriented environment it is even simpler, I can create my own class that extends the original and changes any behavior I need to behave differently. I am not

Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread paul.alfille
Actually --trim can act like -F (temperature scale) -- only on the component you want. It would passed as an argument to owserver and determine the output format. Sent via the Samsung Galaxy S™ III, an ATT 4G LTE smartphone Original message From: Vajk Fekete vaj...@gmail.com

Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread Paul Alfille
What do you mean by my clients still have to expect both, wether the user added --trim or not ? I'm unclear on your setup. Do you mean programs or people? If it's a program, you can add --trim in the initialization string. On Tue, Mar 18, 2014 at 12:30 PM, Michael Markstaller m...@elabnet.de

[Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Michael Markstaller
Hi, did anybody already do something asking owhttp (JSON) from within another Site (same host, another port - which Same-Origin-Policy disallows)? The Basics are clear, CORS or JSONP, just don't want to re-invent the wheel ;) Michael P.S.: I'm just changing some old stuff and want to avoid

Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread Michael Markstaller
Vajk is right, it's surely easy to change/adopt in any client as we do it now by ltrimming the values.. I personally just never liked the default space-padding but it will probably break some things; A commandline option helps out personally but won't change anything here as my clients still have

Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread Michael Markstaller
On 18.03.2014 17:34, Paul Alfille wrote: What do you mean by my clients still have to expect both, wether the user added --trim or not ? I'm unclear on your setup. Do you mean programs or people? If it's a program, you can add --trim in the initialization string. I mean programs, they run

Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread Michael Markstaller
Sorry, I think now I got your point: you mean adding --trim to owget/owhttpd not owserver(?) That makes sense! Michael On 18.03.2014 12:43, paul.alfille wrote: Actually --trim can act like -F (temperature scale) -- only on the component you want. It would passed as an argument to owserver and

Re: [Owfs-developers] ow* Output - leading spaces trimmed?

2014-03-18 Thread Paul Alfille
Ok! Next release. Paul On Tue, Mar 18, 2014 at 12:42 PM, Michael Markstaller m...@elabnet.de wrote: Sorry, I think now I got your point: you mean adding --trim to owget/owhttpd not owserver(?) That makes sense! Michael On 18.03.2014 12:43, paul.alfille wrote: Actually --trim can act

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Roberto Spadim
i use text/ and parse everything with javascript that's a single text but you can use json/ too 2014-03-18 13:37 GMT-03:00 Michael Markstaller m...@elabnet.de: Hi, did anybody already do something asking owhttp (JSON) from within another Site (same host, another port - which

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Colin Reese
I puts it in a sqlite database using python and then grab it from there using jQuery/js On Tue, Mar 18, 2014 at 9:51 AM, Roberto Spadim robe...@spadim.com.brwrote: i use text/ and parse everything with javascript that's a single text but you can use json/ too 2014-03-18 13:37 GMT-03:00

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Michael Markstaller
Thats exactly the overhead I want to avoid like owserver-owget/ownet-sql-CGI-Client Doing this with - let's say 50 sensors - every 10sec produces a bunch of useless load where the client only needs it once a week for 2h.. Michael On 18.03.2014 18:20, Colin Reese wrote: I puts it in a sqlite

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Roberto Spadim
50/10 = 5 sensors/second, that's near 0bytes/second hehe i don't see a big overhead in this scenario, maybe with 100 users, but with more than 1000+ users, i prefer a sql server, not a sqlite database, with cache, etc etc... 2014-03-18 14:42 GMT-03:00 Michael Markstaller m...@elabnet.de:

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Colin Reese
I'm not sure who this was directed to. Polling and data management: owserver--owpython--sqlite User interface: sqlite--wsgi/ajax--json--jQuery/js Wsgi is very fast. I have used cgi and it is quite slow in comparison. I'm not really sure the overhead you are speaking of, if you are comparing

Re: [Owfs-developers] 1-wire stability problems rasberry pi - usb and parasite

2014-03-18 Thread Jan Sennesael
If you really need a tree, you have to put a DS2409 bus coupler on each fork. Usually it is simpler to create an electrical bus without leaves by making lobes of 1wire+GND forward and 1wire+GND return wires to the remote locations. The problem that i am experiencing is that when i read the

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Michael Markstaller
It was directed at Roberto using owhttpd/text; I'll explain a little: I have a Webmin (Perl, Port :1) Interface which uses a Perl-CGI to get/refresh values via OWNet/Ajax. It works but it's dead slow and - depending on the refresh-interval and sensorcount - nearly kills the server. I cannot

Re: [Owfs-developers] 1-wire stability problems rasberry pi - usb and parasite

2014-03-18 Thread Michael Markstaller
Is there any known number of DS18.20 (or length of cat5e cable) that will work without any problems in a tree like network? As a rule of thumb, I once worked out/said: 100 meters (total line length) and 20 sensors as fully save. Using a DS9490 (DS2490 chip). More is surely possible, using

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Michael Markstaller
After some hours of investigation, I think implementing JSONP (again, note the P!) in owhttpd looks like the best solution(?) This would IMHO also be useful for some other solutions maybe to avoid useless workarounds like writing DB's and then query the same.. I'm willing to try do it (though

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Roberto Spadim
could you explain it better, for example, write a directory with /text, /json and /jsonp to see what change, and what should be implemented, it's easier to understand, since i don't understand the P part 2014-03-18 20:17 GMT-03:00 Michael Markstaller m...@elabnet.de: After some hours of

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Roberto Spadim
something like this? //JSON - instead of:{name:stackoverflow,id:5}//JSONP - return : func({name:stackoverflow,id:5}); 2014-03-18 20:39 GMT-03:00 Roberto Spadim robe...@spadim.com.br: could you explain it better, for example, write a directory with /text, /json and /jsonp to see what change,

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Colin Reese
Databases are NOT useless! Besides all the data enforcement, I want to plot things and store logs and variables. This is a silly thing to say. If you are firmly against storing any data, for any reason, take the following boilerplate ajax call (in your web page): function showMeData(data) {

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Colin Reese
In order for jsonp to work, you'd have to get httpd on a port that would make it through whatever gateway devices you plan on routing it through. You could probably do this on 88, although jsonp must have provision for this, which I don't know for sure. Colin On Tue, Mar 18, 2014 at 4:39 PM,

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-18 Thread Colin Reese
I also have to imagine this would raise security red flags wherever it goes. Colin On Tue, Mar 18, 2014 at 4:48 PM, Colin Reese colin.re...@gmail.com wrote: In order for jsonp to work, you'd have to get httpd on a port that would make it through whatever gateway devices you plan on routing

Re: [Owfs-developers] 1-wire stability problems rasberry pi - usb and parasite

2014-03-18 Thread Jan Kandziora
Am 18.03.2014 21:12, schrieb Jan Sennesael: Sadly it seems that the DS2409 is no longer available, It's discontinued, so usual distributors don't list it anymore. You have to ask around who has still stock. I bet there are millions somewhere out there waiting to be used. Don't know where at

Re: [Owfs-developers] 1-wire stability problems rasberry pi - usb and parasite

2014-03-18 Thread Paul Alfille
There are a number of hubs that support star topology including EDS OW-SERVER-ENET and OW-SERVER-WIFI LinkHUB HobbyBoards Hub DS2482-800 And some in development that I can't disclose. In general, these hubs have 3,4 or 8 channels that are electrically independent but logically combined.