Thank you very much, I was buys since I asked, but yesterday I tried
and it works like a charm! I got both curl and wget to post data. I'm
just amazed by both
sen.se techology, cudos to making it so simple yet
powerful, and with
sen.se community for providing extremely fast and
accurate responses.
If anybody is interested in using wget syntax is quite similar, for example:
wget
http://api.sen.se/events/?sense_key=API_KEY \
--post-data '[{"feed_id": 'FEED_ID',"value": 'VALUE'}]' \
--header 'Content-Type: application/json' -O -
Just word of caution, if you are using openwrt (as I did) to keep your
sanity, just install wget package, even if you already have it. wget
command comes as part of openwrt system tools, but included wget
command is lacking most of additional commands, so "--post-data"
option is missing, and you can't send data to
sen.se. So just install
it via "opkg update && opkg install wget" and if your device has
enough free space it will be installed.
Cheers,
Valent.