I have managed to get the Flukso device image compiled and flashed onto the device - now I am trying to replicate the API server.
I hope that I am right is assuming that the API server receives the data from the device and it is written in Erland and WebMachine.
I am coming across several issues that I want to both point out for anyone following me and/or get help on if anyone has an answer,
Firstly, it appears that OpenWRT does not correctly return DNS values if they are on a private IP range. For example, if you set up api.yourdomain.com to point to 192.168.1.10, you will get an invalid response from dig or nslookup.
I had to create a entry in the /etc/hosts file - 192.168.1.10 api.yourdomain.com - just so ping will work.
Secondly, are there any instructions anywhere on how to set up the API server. At the moment I can get WebMachine working standalone, but when I run ./startup-dev.sh, I get a MySQL error. I have created a database and user with the matching passwords already. But no tables.
Where can I get the "logger" table structure required by the API?
Any pointers would be greatfully accepted.