This is my first attempt at a daemon to collect data from the SP-2101W and write a rrd file from it. It’s in C source and is tested to compile on Ubuntu and Fedora.
Warning: the daemon will query your device once per second, which makes the device become unresponsive after 2 days. I assume the web server fills up the log file system which causes something to crash. Use with caution, or change the default query interval to something like 5 minutes.
I am not able to compile Edimaxd on Ubuntu 14.3. I get several undefined reference errors from function: initcurl , process , exitcurl, parseCallback, initrrd and updaterrd. Any suggestions.
The code I compiled for finding the sp-2101w smart plugs works perfectly…
Thanks,
Sounds like you aren’t linking with all neccesary libraries?
cc -o edimaxd edimaxd.c -lrrd -lcurl -lxml2 -lexpat
works for me. Of course, the devel packages of these libraries need to be installed.
Thank you,
with cc -o edimaxd edimaxd.c -lrrd -lcurl -lxml2 -lexpat
I compiled successfully