unfortunately it still doesn’t work what am I doing
wrong?!
cron info
on sh file
off sh file
error logfile:
unfortunately it still doesn’t work what am I doing
wrong?!
cron info
on sh file
off sh file
error logfile:
@evroom Thanks for your explanation, I have made adjustments and will check tonight if it works. I will report this back. Thanks for the effort.
I thought it was right but now the rights on the sh files are set to 0777 and also on the folders
I also did a test to see if I could execute the sh files, this works tonight the cron should execute it, let me know if it works
i created two files
off.sh and on.sh
they contain the following lines
wlr-randr --output HDMI-A-1 --off
wlr-randr --output HDMI-A-1 --on
i also created a folder
with the following rights:
cmod 777
the cron contains the following lines:
unfortunately this does not work what is wrong?
# Schakel display uit zondag - donderdag om 22.00
00 22 * * 0-4 /home/username/MagicMirror/config/hdmionoff/off.sh>> /home/username/MagicMirror/config/hdmionoff/mof.log 2>&1
# Schakel display uit vrijdag - zaterdag om 22.45
45 22 * * 5,6 /home/username/MagicMirror/config/hdmionoff/off.sh>> /home/username/MagicMirror/config/hdmionoff/mof.log 2>&1
# Zet het scherm aan maandag - vrijdag om 7u00
00 07 * * 1-5/home/username/MagicMirror/config/hdmionoff/on.sh>> /home/username/MagicMirror/config/hdmionoff/mon.log 2>&1
# Zet het scherm aan zaterdag - zondag om 8u00
00 08 * * 6,0/home/username/MagicMirror/config/hdmionoff/on.sh>> /home/username/MagicMirror/config/hdmionoff/mon.log 2>&1
@Sam-0 thanks I will test it and share the result with you
Re: [Cron Job Question](/tI used a cron job to turn my screen off and on I still want to do this I understand that the addressing of the monitor has changed and now only the code below works:
00 22 * * 0-4 wlr-randr --output HDMI-A-1 --off
45 22 * * 5,6 wlr-randr --output HDMI-A-1 --off
00 07 * * 1-5 wlr-randr --output HDMI-A-1 --on
00 08 * * 6,0 wlr-randr --output HDMI-A-1 --onopic/16967/cron-job-question)
i see that running the commands:
wlr-randr --output HDMI-A-1 --off
wlr-randr --output HDMI-A-1 --on
works fine
only putting this in cron and making it work didn’t work. i think i need to point the above cron job to files to have it run by cronjob can someone give a good example of what this looks like
ok I continued searching and now have the following config which seems to work at the moment disabled: false,
module: “weather”,
position: “top_right”,
header: “Weather Forecast”,
config:
{
// See 'Configuration options' for more information.
apiKey: "fnotmyapikey sampletestttghfhghfhfghfhghh",
lat: 52.0575,
lon: 4.4931,
apiVersion: ‘2.5’,
weatherEndpoint: “/weather”,
I added
the following values
apiVersion:
‘2.5’,
weatherEndpoint: “/weather”,
@sdetweil ok I continued searching and now have the following config which seems to work at the moment disabled: false,
module: “weather”,
position: “top_right”,
header: “Weather Forecast”,
config:
{
// See 'Configuration options' for more information.
apiKey: "fnotmyapikey sampletestttghfhghfhfghfhghh",
lat: 52.0575,
lon: 4.4931,
apiVersion: ‘2.5’,
weatherEndpoint: “/weather”,
@sdetweil I read the topic maybe my English is not so good that I do not understand it well can you indicate what I am doing wrong I have now adjusted the following
disabled: false,
module: “weather”,
position: “top_right”,
header: “Weather Forecast”,
config:
{
// See ‘Configuration options’ for more information.
apiKey: “ghgjhgjhgjghjgjfghchghf”,
lat: 52.0575,
lon: 4.4931,
} },
@Sam-0 I have made some changes and now I get a different message, this is what I have in my config now, can anyone help me with what still needs to be done? config:
{
// See ‘Configuration options’ for more information.
weatherProvider: “openweathermap”,
apiKey: “drtdgrdgfgfdgdfgfdgfdtestmmmmmmm”,
lat: 52.0575,
lon: 4.4931,
apiBase:‘https://api.openweathermap.org/data/’,
weatherEndpoint:‘/onecall’,
} },
message on mm invalid that NAN