Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
#24 FIWARE extended Orion version with Rush
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Nov 10, 2015
1 parent 4fbf27c commit f3a8a37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/fiware/client/Sensors_UL20/stress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

RANGE=12
while true
do
echo "Press [CTRL+C] to stop.."
# http://tldp.org/LDP/abs/html/randomvar.html
temperature=$RANDOM
let "temperature %= $RANGE"

# temperature=12
python SendObservation.py DavisDev "temp|${temperature}#pos|52.152435,5.37241"

sleep 4
done
1 change: 1 addition & 0 deletions src/fiware/docker/restart.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

YAML=iotarush.yaml

docker-compose -f ${YAML} stop
docker rm -v $(docker ps -a -q -f status=exited)
docker-compose -f ${YAML} up -d
Expand Down

0 comments on commit f3a8a37

Please sign in to comment.