Re: Connection Refused Errors connecting to CouchDB 2.0

2017-06-22 Thread Noel Quintos
Hi Doug, In my case, I set bind_address to 0.0.0.0 under Section "chttpd". I am using it under windows, though, and not sure if it makes any difference. On Wed, Jun 21, 2017 at 8:50 PM, Doug Snyder wrote: > I've been waiting over a week to get any reply, with no success. I'm trying > to get a b

Re: Return web request via GET with a specific format

2017-05-08 Thread Noel Quintos
Sorry, correction in Step 1. Second to the last line should read: light = Lightning(information=dict(attributes=dict(timestamp = datetime.now(), longitude = 30.4, latitude = 18.9, description='cloud to ground'))) On Mon, May 8, 2017 at 10:07 AM, Noel Quintos wrote: > I ha

Re: Return web request via GET with a specific format

2017-05-08 Thread Noel Quintos
I had a hard time installing couchapp (my machine is not connected to the internet) but finally got that working, and I would say it is worth the effort. My problem is solved and here is what I did, just in case somebody out there have the same problem at hand. 1. I used python couchdb module to

Re: Return web request via GET with a specific format

2017-05-04 Thread Noel Quintos
I managed to save a list function as shown below in the last row: $ curl http://172.16.54.8:5984/lightning/_all_docs\?include_docs\=true {"total_rows":4,"offset":0,"rows":[ {"id":"94fdb18c0294e666f94cea2f53014830","key":"94fdb18c0294e666f94cea2f53014830","value":{"rev":"8-06e54ccb86e59676d5926cae

Re: Return web request via GET with a specific format

2017-05-03 Thread Noel Quintos
Thanks Aurelien! I will take a look and try it out. On Wed, May 3, 2017 at 9:34 AM, Aurélien Bénel wrote: > > Formatting a view is done with a *`list`* function. > > http://docs.couchdb.org/en/latest/couchapp/ddocs.html#list-functions > >> Yes, it looks like "list" is what I am looking for. I am

Re: Return web request via GET with a specific format

2017-05-03 Thread Noel Quintos
Hi Aurelien! Yes, it looks like "list" is what I am looking for. I am very new with CouchDB and just using Fauxton. I don't see there any method of creating list under Design Document (it does allow me to create views, however). How do you create this manually, via Fauxton, if possible? Thanks! O

Re: Return web request via GET with a specific format

2017-05-03 Thread Noel Quintos
draft/show.html > > You would just output it in JSON, rather than HTML like the example shows. > > On Tue, May 2, 2017, 15:50 Noel Quintos wrote: > > > Hi! > > > > We have a 3rd party client who expect values to be

Return web request via GET with a specific format

2017-05-02 Thread Noel Quintos
Hi! We have a 3rd party client who expect values to be returned (after a GET request) in this format: *[* *{* "attributes": *{* "intensity": *-12*, "description": "Ground to cloud.", "strike_time": "20