Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Or you can delete the resume file from /etc/initramfs-tools/conf.d/resume especially if it contains the wrong or non existing uuid device.. which is what was included on the ISO's when this developed.. I have no idea how that file was created or originated..

:D

Thanks for posting this.. I meant to once I resolved it on the ISO build but for got about it
22
Zenity & Yad / Re: PMRP UI yad
« Last post by hakerdefo on May 07, 2017, 09:17:22 PM »
This is for misko and filip. I hope it will be useful  :)

A small script for controlling mpv via the JSON IPC

JSON IPC

Cheers!!!
23
Then try and add the following line right at the top (Right after the interpreter line),

Code: [Select]
export LC_ALL=C

The beginning of the pmwf will look something like this after the changes,

Code: [Select]
#!/usr/bin/env bash
###################
export LC_TIME=C
export LC_ALL=C
local_latitude=
local_longitude=
local_unit=
api_key=
local_rm=$(which rm)

Cheers!!!
24
No change.
25
Zenity & Yad / Re: PMRP UI yad
« Last post by filip on May 07, 2017, 08:36:44 PM »
@Filip
Thanks.  :)
mpv - That's a great idea! mpv has a remote (somewhere :)) ), I will dig into documentation.

Between the couch cushions perhaps!?  ;D :D :D

Joke aside, I did take a quick look @docs/google, but didn't find anything. The "bad" here is that MPV has support for real remote controlers ( the hardware ones ), which is the main hit on Google, making the shell "remote" we need here hard to find... And the docs are longer then the Bible...  ;D

Close to tray - It's easy to close it, bringing it back is another story  :D  :D  :D
                          Will see about that. It's a good option to have a radio that stays out of the way.

"Kill to tray" ;D ;D

Maybe if there is an easy way to keep information about current station/log etc somewhere it might be doable with something like ( untested, just a thought ):

Code: [Select]
function main() {

if [[ "$LOG_AND_CURRENT_STATION_AND_OTHER_DATA" = true ]]
# main dialog stuff in here with the "--button=Close!close:1" & "DATA" appended somehow
else
# main dialog stuff in here with the "--button=Close!close:1"
fi

RET=$?
if [[ "$RET" == 1 ]]; then
WIN_VISIBLE=false
else
WIN_VISIBLE=true
fi
}
export main
main

function window_toggle() {
# called on tray left click
if [[ "$WIN_VISIBLE" = true ]]; then
main
fi
}

The bad side with the above is that you cannot click the tray icon to toggle the window. In other words, window needs to be closed the usual ways, and can only be brought back from tray with the "on tray" click.
Hope it helps some. :)
Cheers!
26
This is a locale issue. You can easily fix it by adding the following line at the top of the pmwf script,

Code: [Select]
export LC_TIME=C

Cheers!!!
27
Fixed a couple typos on my part -

in terminal still failes with:

Code: [Select]
date: invalid date ‘@’
date: invalid date ‘@’
date: invalid date ‘@’
28
Yes, I just plugged them in from my original script.

That api_key value should still work shouldn't it? Looks like the main change was switching to wget from curl.

ran it in a terminal and get this error:

Code: [Select]
conky: window type - desktop
conky: drawing to created window (0x1600001)
conky: drawing to double buffer
conky: forked to background, pid is 1369

date: invalid date ‘@’
date: invalid date ‘@’
date: invalid date ‘@’
awk: cmd. line:1: BEGIN {print  * 3.6}
awk: cmd. line:1:               ^ syntax error
awk: cmd. line:1: BEGIN {print  * 3.6}
awk: cmd. line:1:               ^ syntax error
awk: cmd. line:1: BEGIN {print  * 3.6}
awk: cmd. line:1:               ^ syntax error
awk: cmd. line:1: BEGIN {print  * 3.6}
awk: cmd. line:1:               ^ syntax error

29
From version 0.128 of initramfs-tools, the boot code waits for a suspend/resume device to appear, rather than checking just once. If the configured or automatically selected resume device is not available at boot time, this results in a roughly 30 second delay. Solution? It's easy  8)
Open "/etc/initramfs-tools/initramfs.conf" file in text-editor as root and add the following line to it,

Code: [Select]
RESUME=none

Save the file. Next run the following command in terminal-emulator,

Code: [Select]
sudo update-initramfs -u -k all

Voila! Boot delay is gone  8)

Cheers!!!
30
Will add the forecast for current day asap!
The updated script is not working for you?
Did you edit the script and add the values to the following variables,

Code: [Select]
local_latitude=
local_longitude=
local_unit=
api_key=

Cheers!!!
Pages: 1 2 [3] 4 5 ... 10