You are not logged in.
I will stay away from Wayland and use conky v 1.9.0 for as long as I can.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@unklar
Another piece of good news for you, maybe even two.
1) It seems that there are no longer any problems with image sharpness on the Radio Swiss Pop website
2) The new script (audacious-stream-swiss-pop) can also use RadioTray-NG with minor changes (test1, test2, test3, paths...)
If people would know how little brain is ruling the world, they would die of fear.
Offline
@unklar
Another piece of good news for you, maybe even two.
1) It seems that there are no longer any problems with image sharpness on the Radio Swiss Pop website
2) The new script (audacious-stream-swiss-pop) can also use RadioTray-NG with minor changes (test1, test2, test3, paths...)
Thanks, I've already tried it.
Offline
Je cherchais le cours actuel de l'or pour un Conky et j'ai trouvé ce site web « compatible avec Linux » : https://www.gold.de/chartgenerator/
Il fournit une API gratuite au format json :
Cours de l'or, de l'argent, etc. gratuits – API JSON
Interface API au format JSON avec cours gratuits (or, argent, platine, palladium en euros et en dollars, taux de change EUR/USD) :
Interface :
https://api.edelmetalle.de/public.jsonRemarque : toutes les données sont fournies sans garantie, aucune assistance n'est fournie pour l'intégration. La mention « © GOLD.DE » ou similaire est obligatoire.
@loutch ; @marens, pourriez-vous vérifier si ma solution peut être appliquée ainsi ? Le cours est actualisé toutes les 30 secondes.
Merci !
------------------------
I was looking for the current gold price for a Conky and found this ‘Linux-friendly’ website: https://www.gold.de/chartgenerator/
It provides a free API in json format:
Free gold price, silver price, etc. – JSON API
API interface in JSON format with prices for free use (gold, silver, platinum, palladium in euros and dollars, EUR/USD exchange rate):
Interface:
https://api.edelmetalle.de/public.jsonPlease note: All data is provided without guarantee, no support for integration. Copyright notice “© GOLD.DE” or similar is required.
@loutch; @marens, could you please take a look and see if my solution can be used this way. The course is updated every 30 seconds.
Thanks!
script
#!/bin/bash
#gold.de
#put your GOLD.DE address API here
wget api.edelmetalle.de/public.json -O $HOME/.config/conky/gold/gold.json -o /dev/null
conkyrc
...
${font hack:size=12}${texeci 300 bash $HOME/.config/conky/gold/goldkurs1}© GOLD.DE
${alignc}${execpi 6 cat $HOME/.config/conky/gold/gold.json | jq -r '.gold_eur'} EUR/oz
${alignc}${execpi 6 cat $HOME/.config/conky/gold/gold.json | jq -r '.gold_usd'} USD/oz${font}
...
Offline
Hello
Funktioniert bei mir, habe dies nur hinzugefügt, um eine Datei zu haben, die ich überprüfen kann.
conkyrc
${alignc}Gold Unklar
${texeci 300 bash $HOME/.conky/Tahoe/gold/gold.sh}
mise @ jour ${execi 300 date -d "@$(jq -r .timestamp ~/.conky/Tahoe/gold/or)" +%H:%M}
${execpi 6 cat $HOME/.conky/Tahoe/gold/or | jq -r '.gold_eur'} EUR/once
${execpi 6 cat $HOME/.conky/Tahoe/gold/or | jq -r '.gold_usd'} USD/once
Taux de change usd-€ ${execpi 6 cat $HOME/.conky/Tahoe/gold/or | jq -r '.wechselkurs_usd_eur' | cut -c1-6}
gold.sh
#!/bin/bash
wget api.edelmetalle.de/public.json -O $HOME/.conky/Tahoe/gold/gold.json -o /dev/null
jq --raw-output . $HOME/.conky/Tahoe/gold/gold.json > $HOME/.conky/Tahoe/gold/or
exit
------------------------------------------------------------------
Works for me, just added this to get a file I can examine.
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
@unklar
Download:
$ wget "api.edelmetalle.de/public.json" -O "$HOME/.config/conky/gold/gold-raw" -o /dev/null
Extract:
$ cat $HOME/.config/conky/gold/gold-raw | awk -F',' '{print $2}' | awk -F':' '{print $2, "EUR/oz"}'
3254.08 EUR/oz
$ cat $HOME/.config/conky/gold/gold-raw | awk -F',' '{print $1}' | awk -F':' '{print $2, "USD/oz"}'
3815.25 USD/oz
Conky:
...
${execpi 600 wget "api.edelmetalle.de/public.json" -O "$HOME/.config/conky/gold/gold-raw" -o /dev/null}
${alignc}${execpi 60 cat $HOME/.config/conky/gold/gold-raw | awk -F',' '{print $2}' | awk -F':' '{print $2, "EUR/oz"}'}
${alignc}${execpi 60 cat $HOME/.config/conky/gold/gold-raw | awk -F',' '{print $1}' | awk -F':' '{print $2, "USD/oz"}'}
...
EDIT
The download interval of the ${execpi 600 wget... and ${execpi 60 cat... commands should be set so that they rarely overlap.
That's your job because I have no idea how often you need fresh data.
I tested 60/8.37 as an example:
...
${execpi 60 wget "api.edelmetalle.de/public.json" -O "$HOME/.config/conky/gold/gold-raw" -o /dev/null}
${alignc}${execpi 8.37 cat $HOME/.config/conky/gold/gold-raw | awk -F',' '{print $2}' | awk -F':' '{print $2, "EUR/oz"}'}
${alignc}${execpi 8.37 cat $HOME/.config/conky/gold/gold-raw | awk -F',' '{print $1}' | awk -F':' '{print $2, "USD/oz"}'}
...
Last edited by marens (Today 18:12:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline