Weather sensor nodes, wifi mesh nodes and Open.Se.se ?

148 views
Skip to first unread message

Valent

unread,
Mar 13, 2012, 6:03:38 AM3/13/12
to Open.Sen.se Forum
Hi,
we have open source hardware and software project that has the goal of
total world domination via open wifi mesh nodes ;)

We use cheap wifi routers and build with them wifi mesh network with
multiple internet gateways for redundancy and share our fast internet
connections to rural places that don't have fast internet connections.

Wifi router are turned into Weather (and other sensor) nodes with a
little bit of hacking on the hardware and software. Software plaftorm
we use is well-known OpenWRT project and we use simple 1-wire sensors
that.

You can see temperature that our management and deployment server
collects here:
https://nodes.wlan-si.net/node/valent/

We currently have CPU issues so not all graphs are shown.

Now after this short introduction we would like to use Open.Sen.se for
our sensor data, so please point me in the right direction how to push
data to Open.Sen.se from linux command line.

If you have any questions please ask or if I wasn't clear enough
please just ask.

Cheers,
Valent.

Franck

unread,
Mar 13, 2012, 6:25:17 AM3/13/12
to Open.Sen.se Forum
Hi Valent,

Very nice project, love it.

Did you have a look at the developers documentation (http://
dev.sen.se) ? You can find information on how to publish events at
this location : http://dev.sen.se/device.html#publishing-events

Let me know if this helps

Franck

Alexandre Dubois

unread,
Mar 13, 2012, 9:09:44 AM3/13/12
to sens...@googlegroups.com
Hi Valent,

I also use open.sen.se throw linux cli, you can use curl with "-d" option which allow you to post json content ;)

E.g. :

curl 'http://api.sen.se/events/?sense_key='$apikey \
-X POST \
-H "Content-type: application/json" \
-d '[{"feed_id": '$feedHC',"value": '$indexHC'},{"feed_id": '$feedHP',"value": '$indexHP'}]'



Alex


2012/3/13 Franck <fra...@sen.se>



--
Alexandre DUBOIS

valent....@gmail.com

unread,
May 14, 2012, 3:11:07 PM5/14/12
to sens...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages