added readme and dumps

This commit is contained in:
Timo Volkmann 2020-07-30 17:17:21 +02:00
parent 06433ac0fe
commit af25802d87
5 changed files with 150337 additions and 0 deletions

View File

@ -0,0 +1,5 @@
[{
"_id": "activeDevice",
"deviceId": "c1b1c870-30bd-416d-b4b1-d88689e35522",
"alias": "ESP-Timo"
}]

View File

@ -0,0 +1,31 @@
[{
"_id": "uQuyEqeJodmwouBdT",
"deviceId": "cb1d463d-71c6-4e8a-a397-b393c6c6d0c1",
"alias": "Timo's Chili",
"type": "Vegetables",
"mode": "Bloom"
},{
"_id": "NeTrAeSMbzyrExJm4",
"deviceId": "6ae0ae46-4776-4c46-86a8-8ee50e342102",
"alias": "ESP-Sebastian",
"type": "Vegetables",
"mode": "Growth"
},{
"_id": "HeZZFxg6fbMnA3Zer",
"deviceId": "1aa91e2f-943a-488b-822e-fcc684581827",
"alias": "ESP-Max",
"type": "Vegetables",
"mode": "Bloom"
},{
"_id": "bJR2P85aGYuDvWMut",
"deviceId": "c1b1c870-30bd-416d-b4b1-d88689e35522",
"alias": "ESP-Andy",
"type": "Vegetables",
"mode": "Growth"
},{
"_id": "8BPP8CNLK2Prmn3Qf",
"deviceId": "b0a4058e-1e3a-4b56-8ab3-871fba99bf5a",
"alias": "ESP-Sebastian-SensorCheck",
"type": "Cacti",
"mode": "Bloom"
}]

View File

@ -0,0 +1,61 @@
[{
"_id": {
"$oid": "5eff2729eecb69888cc2f50b"
},
"plantType": "Vegetables",
"dirtType": "Humus",
"data": {
"soilMoisture": {
"pwp": "25",
"fc": "44",
"sat": "69"
},
"light": {
"minLux": "500"
},
"temperature": {
"minTemp": "5",
"maxTemp": "35"
}
}
},{
"_id": {
"$oid": "5f01c516eecb69888cc2f50c"
},
"plantType": "Cacti",
"dirtType": "Sand",
"data": {
"soilMoisture": {
"pwp": "5",
"fc": "10",
"sat": "15"
},
"light": {
"minLux": "500"
},
"temperature": {
"minTemp": "10",
"maxTemp": "60"
}
}
},{
"_id": {
"$oid": "5f01c530eecb69888cc2f50d"
},
"plantType": "Flowers",
"dirtType": "Loam",
"data": {
"soilMoisture": {
"pwp": "14",
"fc": "28",
"sat": "42"
},
"light": {
"minLux": "500"
},
"temperature": {
"minTemp": "7",
"maxTemp": "30"
}
}
}]

150205
mongo_dumps/sensorData.json Normal file

File diff suppressed because it is too large Load Diff

35
readme.md Normal file
View File

@ -0,0 +1,35 @@
# Smart_Garden
## Requirements
- Node und NPM (see Meteor docs for minimum version)
- Meteor CLI installed on your Environment
- MongoDB running (you can use prepared database as defined below)
### How to use the "meteor" command in the GitBash console (Windows)
1. Create a new file named `.bashrc` in your user directory
2. Open the file and add the following: `alias meteor="cmd //c meteor"`
3. Save and close the `.bashrc` file
3. Open your ".bash_profile" file in the user directory (if you do not have this file, change something in you GitBash console like color or style, then the file will be created)
4. Go to the bottom of the file and add the following:
#### Allow usage of meteor command in git bash
``` bash
# Allow usage of meteor command in git bash
[ -f "$HOME/.bashrc" ]
source "$HOME/.bashrc"
```
5. Save and close the `.bash_profile` file
6. Congratulations! Now the meteor command can be used in the GitBash console.
## Preparation
- run `meteor npm install` in root directory.
- if you're using prepared database, continue to spin up your dev server
- customize connection string in `package.json` on line 5: MONGO_URL={connectionstring}
- import all jsons in folder `mongo_dumps` to your mongoDB. Name the collections as the filename indicates.
## Spin up development server
run `npm run start` in root directory.
If you're running Windows, make sure you use git-bash. otherwise you can't pass environment variables to cli-commands.