Commit 87f3c5c1 authored by alain's avatar alain 🐙
Browse files

update backend readme..

parent b1d2a1c9
......@@ -9,23 +9,28 @@
`gem install csv`
## to start
`brew services start redis`
(or `redis-server`)
ruby server.rb
`ruby server.rb`
## example calls
http://localhost:4567/sensor/204/pm10?start=2019-08-25&end=2019-08-31
`http://localhost:4567/sensor/204/pm10?start=2019-08-25&end=2019-08-31`
-> gives values between start and end for parameter pm10 of device with id 204
http://localhost:4567/sensor/204/pm10/csv?start=2019-08-25&end=2019-08-31
`http://localhost:4567/sensor/204/pm10/csv?start=2019-08-25&end=2019-08-31`
-> gives values between start and end for parameter pm10 of device with id 204 in csv format
http://localhost:4567/sensor/all
`http://localhost:4567/sensor/all`
-> gives last value of all devices for all paramters
http://localhost:4567/sensor/pm25
`http://localhost:4567/sensor/pm25`
-> gives last value of all devices for paramter pm25
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment