Malinko zapeklita vec ale da se to.
Zakladni syntaxe pro rss pres Conky vypada takhle;
${rss
http://forum.ubuntu.cz/index.php?type=rss;action=.xml 5 feed_title}
${rss
http://forum.ubuntu.cz/index.php?type=rss;action=.xml 5 item_titles 5}
V danem pripade tahame rss z tohohle fora kazdych 5 minut a tahame 5 prispevku
Co vsak kdyby rss bylo podmineno HTTP autentifikaci ?V pripade ze je podminka HTTP autentifikace, v tomhle pripade username a password jsou soucasti URL-ky .
Jak to tedy v praxi vypada ? Udelame si modelovou situaci za podminky ze nase username neobsahuje znak "@"Rekneme ze tohle forum by bylo podmineno HTTP autentifikaci a potrebovali by sme nasledujici udaje:
username: ubuntucz
password: heslo
Syntaxe musi vypadat takhle:http://[username]:[password]@[rss-url]
nase rss je http://forum.ubuntu.cz/index.php?type=rss;action=.xmlVyslednej stringhttp://
ubuntucz:heslo@forum.ubuntu.cz/index.php?type=rss;action=.xml
Rss pro Conky v tomhle pripade${rss http://
ubuntucz:heslo@forum.ubuntu.cz/index.php?type=rss;action=.xml 5 feed_title}
${rss http://
ubuntucz:heslo@forum.ubuntu.cz/index.php?type=rss;action=.xml 5 item_titles 5}
A ted situace za podminky ze nase username obsahuje znak "@"Rekneme ze tohle forum by bylo podmineno HTTP autentifikaci a potrebovali by sme nasledujici udaje:
username: uzivatel@mail.com
password: heslo
Syntaxe musi vypadat takhle:http://[username]:[password]@[rss-url]
nase rss je http://forum.ubuntu.cz/index.php?type=rss;action=.xmlVyslednej stringhttp://
uzivatel%40mail.com:heslo@forum.ubuntu.cz/index.php?type=rss;action=.xml
Rss pro Conky v tomhle pripade${rss http://
uzivatel%40mail.com:heslo@forum.ubuntu.cz/index.php?type=rss;action=.xml 5 feed_title}
${rss http://
uzivatel%40mail.com:heslo@forum.ubuntu.cz/index.php?type=rss;action=.xml 5 item_titles 5}
Nase username obsahovalo znak "@" ktery musi byt zapsanej zpusobem "%40" (bez tech uvozovek) z duvodu URL-encodingu @ znaku v poli username)Pozn. tenhle popis je zakladni syntaxe pro rss readery s HTTP autentifikaci, v pripade problemu se muzes pokusit zmenit take druhej @ znak na %40