NEWS
Magic Mirror zusammen mit IOBroker
-
@mrjeschke ok danke Dir.. ja Nano der interne Editor bei Linux.. ich probier’s mal danke Dir
Ähhm das kommt wenn ich crontab -e eingebe! Was wähle ichda?
pi@MagicMirror-live:~$ crontab -e no crontab for pi - using an empty one Select an editor. To change later, run 'select-editor'. 1. /bin/nano <---- easiest 2. /usr/bin/vim.tiny 3. /bin/ed Choose 1-3 [1]:
-
@kusselin
Da will er wissen mit welchem Editor du es bearbeiten möchtest.
Nimm 1 für nano. -
@mrjeschke klappt net
wenn ich 192.168.200.74:8080 eingebe keine Verbindung...minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any'). # # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command @reboot /home/pi/mm.sh
da liegt mein MagicMirror
/home/pi/MagicMirror
Wasn das jetzt noch nachdem ich crontab beendet habe??
pi@MagicMirror-live:~$ crontab -e No modification made
-
@kusselin
Was sagtcrontab -l
-
@mrjeschke sagte in Magic Mirror zusammen mit IOBroker:
crontab -l
pi@MagicMirror-live:~$ crontab -l # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any'). # # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command @reboot /home/pi/mm.sh pi@MagicMirror-live:~$
-
-
-
@homoran hab den ganzen container rebootet ...ist das nicht o.k.?
-
@mrjeschke sagte in Magic Mirror zusammen mit IOBroker:
cat ~/mm.sh
pi@MagicMirror-live:~$ ls -la ~/mm.sh -rw-rw-r-- 1 pi pi 32 Oct 18 19:26 /home/pi/mm.sh pi@MagicMirror-live:~$ cat ~/mm.sh cd ~/MagicMirror npm run server pi@MagicMirror-live:~$
ich muss dazusagen das ich beid der Eingabe vorhin wo du sagtest ich solle 1 auswählen ein [c] davor hatte und keine Zahl mehr eintragen konnte..kam wahrscheinlich vom Strg+C immer machen....hab dann putty zugemacht udn neu aufgemacht....dann crontab -e eingegeben udn dann dachte ich das ich wieder zu der Auswahl kommen würde - war aber nicht so...dann hat sich gleich der Editor geöffnet..
weiss net ob es daran liegt?
kann man das nochmal rückgängig machen?
Anscheimed ist da was verlorengegangen...so kann ichs mir nur vorstellen....sorry
-
@kusselin
Du hast die Datei nicht ausführbar gemachtchmod +r ~/mm.sh
-
@mrjeschke scheisse...auf was man bei Linux alles achten muss...voll krass...
jetzt läufts...
und jetzt macht der crontab bzw die datei merkt jetzt...achtuung ein reboot war jetzt weider starten...also ist jetzt wenn ich einen reboot mache immer MM verfügbar..richtig?Frage noch....was hat das ausführen jetzt gebracht.....chmod +r ?
was bedeutet das +r?
vorher das verstehe ich so konnte man nicht auf die mm.sh zugreifen richtig?
-
@kusselin
Das +r bedeutet das man die Datei ausführen darf, also das es ein Programm ist das man starten darf. Wie eine exe unter WIndows (ok nur in etwa)
Für crontab kannst du mal eingebenrm ~/.selected_editor
Dann sollte beim nächten mal die Abfrage wieder kommen.
Edit: Ja richtig, bei jedem booten wird jetzt der MM gestartet. -
@mrjeschke perfekt.. danke Dir