nice :D i added json to httpd
and changed some files at owlib
the ow_parsedname.h (add ePS_json at line 127+-)
and the ow_parsename.c (add json to path recognition)
the full code is uploaded at:
http://www.spadim.com.br/owfs-2.8p13-ajax.tgz
it's about 2MB since it have some compiled code inside
i don't know how to diff it with the original
can you add this to main branch?
thanks paul!! :)
2011/9/26 Paul Alfille <[email protected]>
> Roberto,
>
> owhttpd currently has the option of adding "/text" to a 1-wire query to
> return text (as opposed to html)
>
> I.e:
> /10.123456789/temperature
> vs
> /text/10.123456789/temperature vs
>
> I've always thought this technique a little awkward, since it's
> owhttpd-specific and mixes presentation with data path. I like your scheme
> better.
>
> Paul Alfille
>
>
> On Sun, Sep 25, 2011 at 5:38 PM, Roberto Spadim <[email protected]>wrote:
>
>> hi guys, i created a new owhttpd but without json output (no html output)
>>
>> http://www.spadim.com.br/owhttpd-ajax.tgz
>>
>>
>> it's based on owfs-2.8p13, extract at:
>> owfs_root_source_directory/module/
>>
>> it will create a directory: (owhttpd-ajax)
>>
>> that's all :)
>> in future we could implement it with some options like
>> ?output=html
>> ?output=text
>> ?output=json
>> to make a single owhttpd with everything
>>
>> directories will return as a empty array []
>> yes/no will return false/true
>> writeonly/errors will return as null
>> structures will return as a array [ ..... ] with itens, in the same order
>> as html order
>>
>>
>> thanks :) that's all
>>
>>
>> --
>> Roberto Spadim
>> Spadim Technology / SPAEmpresarial
>>
>>
>> ------------------------------------------------------------------------------
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2dcopy2
>> _______________________________________________
>> Owfs-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
--
Roberto Spadim
Spadim Technology / SPAEmpresarial
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers