The purpose of this project is to follow your pet's habits. Put in your cat or dog neckless the sensors and get some informations about them (how much do they walk per day (not yet implemented), temperature, etc).
- Our project : http://1.iot-pirate.appspot.com/
- Take a look at our Wiki : Wiki
The Data collection for Internet of Things run on Google App Engine.
- Zolertia Z1 Zolertia website
- TI Sensortag TI website
- Raspberry PI RaspberryPi website
- AppEngine : Source code for your application AppEngine
- Contiki : Source code for your Z1 and Sensortag
- Localserver : Source code for your RaspberryPi
sudo apt-get install python python-pip
sudo pip install flask
pip install urllib3
pip install requests
- Retrieve the sources from our repository
- Copy the default directory
- Modify the config.cfgg file
Property | Description |
---|---|
auto_external | Set it to false if you have a domain name and write your domain url in "external" field |
external | Your domain name (if you got one) |
port | Flask port. It need to be open by your firewall |
distant_ip | App Engine application URL |
friendly_name | A simple name for your server |
Example:
[general]
auto_external: true
external:
port: 1234
distant_ip: http://1.iot-pirate.appspot.com
friendly_name: deruaz_home
- Modify the main to add the sensors (virtual or real sensors) Example:
# Add a virtual sensor
tools.add_sensor(Sensor_tag_virtual( 'Lassie', '23fa8287-a719-4c1b-8177-7ec829f6e08r', '6Lowpan', 0, "2015-12-05 11:03:06"))
# Add a real sensor (Sensortag)
tools.add_sensor(Sensor_tag_real("Simba", '01111111-a719-4c1b-8177-7ec829d6e02a', '6Lowpan', 1, "2013-04-05 11:03:06", "http://[aaaa::c30c:0:0:1560]/"))
- Make start.sh executable
sudo chmod +x start.sh
- Modify start.sh to run the main with the right .cfg file
sudo nano start.sh
- Run start.sh
./start.sh
If you need more informations about how to set up Instant Contiki and compile your Zolertia Z1 or Sensortag -> Wiki