This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
projects:bewaesserung:installation [2021/03/29 14:20] ferdi |
projects:bewaesserung:installation [2021/03/31 12:09] (current) ferdi |
||
|---|---|---|---|
| Line 121: | Line 121: | ||
| npm run serve | npm run serve | ||
| - | | + | |
| + | | ||
| App running at: | App running at: | ||
| Local: | Local: | ||
| Network: http:// | Network: http:// | ||
| + | installed gimp and inkscape\\ | ||
| + | |||
| + | open a new window:\\ | ||
| + | {{: | ||
| + | Activate the virtual environment: | ||
| + | source bin/ | ||
| + | starte django webserver: | ||
| + | python3 manage.py runserver localhost: | ||
| + | jetzt kann die Seite localhost: | ||
| + | {{: | ||
| + | |||
| + | Installiere Visual Studio Code:\\ | ||
| + | sudo snap install --classic code | ||
| + | |||
| + | Habe in netatmofetch.py den usernamen und passwort eingetragen. | ||
| + | Beim ausführen von / | ||
| + | |||
| + | ./ | ||
| + | Timestamp Datei erzeugt und auf 0 gesetzt. | ||
| + | error invalid_grant https:// | ||
| + | None | ||
| + | Traceback (most recent call last): | ||
| + | File " | ||
| + | with open(csv_file_path, | ||
| + | FileNotFoundError: | ||
| + | |||
| + | Habe jetzt den richtigen login für netatmo von Prof.Nebe und habe ihn in netatmofetch.py eingetragen.\\ | ||
| + | Wenn ich jetzt netatmo_first_import.sh ausführe: | ||
| + | ./ | ||
| + | bekomme ich folgende Meldung: | ||
| + | Timestamp Datei erzeugt und auf 0 gesetzt. | ||
| + | [] | ||
| + | Traceback (most recent call last): | ||
| + | File " | ||
| + | with open(csv_file_path, | ||
| + | FileNotFoundError: | ||
| + | Ich habe die Datei netatmo_station.csv mit \\ | ||
| + | touch netatmo_station.csv | ||
| + | erzeugt.\\ | ||
| + | Jetzt bekomme ich | ||
| + | Timestamp Datei erzeugt und auf 0 gesetzt. | ||
| + | [] | ||
| + | Einträge werden in die Datenbank übertragen... | ||
| | | ||
| + | 0 Einträge Übertragen | ||
| + | Bin noch einmal zurück in IP15_Bewaesserung/ | ||
| + | ~/ | ||
| + | (django-vue) fablab@fablab-OptiPlex-7010: | ||
| + | (django-vue) fablab@fablab-OptiPlex-7010: | ||
| + | usage: csv_to_database.py [-h] [-i] [-gt] [-w] | ||
| + | optional arguments: | ||
| + | -h, --help | ||
| + | -i, --init | ||
| + | -gt, --get-timestamp | ||
| + | -w, --write | ||
| + | |||
| + | Habe den cronjob gestartet: | ||
| + | python3 manage.py crontab add | ||
| + | no crontab for fablab | ||
| + | adding cronjob: (73bb14f920c56753f62140cb4e1eee0b) -> ('*/15 * * * *', ' | ||
| + | |||
| + | sensorda**t**a.py ausgeführt | ||
| + | |||
| + | python3 sensordata.py | ||
| + | Trying to connect to: eu.thethings.network: | ||
| + | Connected with result code: 0 | ||
| + | Subscribed to topic: +/ | ||
| + | |||
| + | === Mi. 31.03.2021 === | ||
| + | Der chronjob scheint zu laufen: | ||
| + | Schreibe Daten in die Datenbank... | ||
| + | Daten erfolgreich in die Datenbank Geschrieben! | ||
| + | TOPIC: hsrw_iotlab_lse01/ | ||
| + | PAYLOAD: {' | ||
| + | | ||
| + | Unter http:// | ||
| + | Leider habe ich das Passwort nicht. | ||
| + | Habe mit\\ | ||
| + | python3 manage.py createsuperuser | ||
| + | einen superuser erstellt.\\ | ||
| + | Jetzt klappt der Login:\\ | ||
| + | {{: | ||
| + | {{: | ||