Closed GoogleCodeExporter closed 9 years ago
Hi I can't really help you but what if you try to add in your .py file:
server.addMacro(led1_lit)
good luck anyways!!
Original comment by sebastie...@gmail.com
on 5 Jun 2013 at 1:55
Thank you for your information.
I tried "server.addMacro" function ,but it might be for 0.5.3 or before.
I have not found any way with both debug-mode and 0.6.0 .
I'm looking forward it is going to be fixed till version1.0 .
Original comment by nekobox...@gmail.com
on 6 Jun 2013 at 6:16
In conclusion, my macros in my python script worked fine with not only "-s (my
script).py" option but also "-c /etc/webiopi/config" option.
I had thought that "-c" option was not needed when using macros.
Because "setup()","loop()","destroy()" functions worked fine when I started
webiopi with only "sudo webiopi -s (my script).py".
So I don't doubt that all python functions are valid with "-s" option ,and
accessing to macro functions ,too.
I found that "-c" option is needed when using any macros and/or devices.
I can't understand why "normal functions are ok ,but macro functions are not
ok" yet.
(Both functions are in the same program ,and macros worked without any option
with version 0.5.3!)
But anyway ,I have found how to work my macros.
https://groups.google.com/forum/?fromgroups#!topic/webiopi/VlLMEtntyZs
Original comment by nekobox...@gmail.com
on 19 Jun 2013 at 2:31
Definitely a bug with the -s command switch.
Original comment by tro...@trouch.com
on 27 Nov 2013 at 9:30
atleast foe you a 404 but for me socker error 98
Original comment by easydo...@gmail.com
on 23 Dec 2013 at 4:38
Original comment by tro...@trouch.com
on 4 Jan 2014 at 9:00
Original comment by tro...@trouch.com
on 4 Jan 2014 at 9:01
This issue was closed by revision r1415.
Original comment by tro...@trouch.com
on 31 Jan 2014 at 12:12
i have a problem when calling macro from javascript.
404 returned from webiopi server
when calling a macro with POST method.
in console showing following error : POST
http://raspberrypi:8000/macros/setLightHours/12,15 [HTTP/1.0 404 setLightHours
Not Found 21ms]
check following link for code
https://code.google.com/p/webiopi/wiki/Tutorial_Macros
please help me
Original comment by npradeep...@gmail.com
on 13 Feb 2015 at 4:27
Original issue reported on code.google.com by
nekobox...@gmail.com
on 26 May 2013 at 7:29