Search found 7 matches

by rvhaasen
31 Mar 2015 14:40
Forum: RaZberry
Topic: how to append a file?
Replies: 0
Views: 1089

how to append a file?

what is the best way to append a file?
I can use fs.load() and fs.loadJSON() to load a file, add content and write it, but this is inefficient and does not scale.
by rvhaasen
31 Mar 2015 14:31
Forum: Recipes
Topic: [userModule] Xively
Replies: 4
Views: 4796

Re: [userModule] Xively

Hi Dolpheen, I did use Pachube (as Xively) a few years ago. Recently I picked it up again. It is a quick way to get your sensordata available in the cloud. Also there are several apps that can read Xively feeds. This weekend I installed a humidity/temperature sensor in the plant incubator of my 11 y...
by rvhaasen
26 Mar 2015 13:28
Forum: Recipes
Topic: [userModule] Xively
Replies: 4
Views: 4796

[userModule] Xively

I created a module that sends sensordata to the Xively webservice.
I you are interested you can get Xively from github

20150327: Moved to Recipes, and slightly modified by moderator
by rvhaasen
26 Mar 2015 13:19
Forum: RaZberry
Topic: Setting payload for http PUT request?
Replies: 2
Views: 1553

Re: Setting payload for http PUT request?

Thanks pofs, indeed the PUT does accept a body. I had i type in a header field. Now it works
by rvhaasen
24 Mar 2015 19:01
Forum: RaZberry
Topic: Setting payload for http PUT request?
Replies: 2
Views: 1553

Setting payload for http PUT request?

Is it possible to specify a body for a http PUT request? The documentation says that a body can only be set for a POST. I'm writing a module that logs data to the Xively webservice. Xively requires PUT request with the data in the body of the http request. If this is not possible I can create a loca...
by rvhaasen
23 Mar 2015 17:09
Forum: RaZberry
Topic: debugPrint and console.log don't output anything...
Replies: 1
Views: 1167

Re: debugPrint and console.log don't output anything...

Solved it: I though that the modules were started automaticaly. I just discovered that this is not the case: they have to be added manualy (eg from the home-automation UI)....
by rvhaasen
23 Mar 2015 00:34
Forum: RaZberry
Topic: debugPrint and console.log don't output anything...
Replies: 1
Views: 1167

debugPrint and console.log don't output anything...

I just started to understand the automation mechanism by adding custom log info to index.js using debugPrint. However I cannot see any output appearing in /var/log/z-way-server.log after restarting the server. What am I doing wrong? I tried changing the loglevel in config.xml to some other value, th...