Hallo alle zusammen,
ich habe eine Frage an unsere Programmierer.
Ich lasse von WSWIN eine XML-Datei erstellen, die so aussieht:
<!-- %openfile=cam.txt% -->
<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
<title>Wetterstation Castrop-Rauxel</title>
<link>http://www.emscherwetter.de</link>
<description>Wetterwerte der Station Castrop-Rauxel</description>
<language>de-de</language>
<item>
<title>Wetter Castrop-R. v. 18.09.2012, 17:01 Uhr</title>
<description>
<![CDATA[Temp:18,0 Feuchte:61 Regen heute:0,0 Trend: veränderlich]]>
</description>
<pubDate>Tue, 18 Sep 2012 15:01:00 +0200</pubDate>
</item>
</channel>
</rss>
Diese XML-Datei soll das Programm Twitterfeed (http://www.twitterfeed.com) alle 6 Stunden auf meinem Twitteraccount veröffentlichen, was es anfangs auch brav getan hat.
Doch dann stellte es einfach seinen Dienst mit dieser Fehlermeldung ein:
Your feed might be empty or missing publish dates or GUIDs. A feed needs to contain publish dates or GUIDs in order to work with twitterfeed, see help
Die "Help" besagt folgendes:
Twitterfeed says "We couldn't find valid date/time stamps or GUIDs on items"
There are two methods twitterfeed can use to determine if an item in a feed is new, and should be posted to twitter - by default this is done through the date/time that a blog post has been published, or (if you select the "Post new items based on ... GUID" option in the twitterfeed "advanced settings"), by a unique ID on each blog post. Which one you want to use depends a little on the type of RSS feed you have, but twitterfeed requires at least one of the two to be present in the feed - if neither are present, there is no way to tell if an item in a feed is new, and should be posted. If twitterfeed gives the message saying it can't find valid date/time stamps in your feed, try these steps:
Take a look at your feed - is there a date/time showing on every item in the feed? If not, you may be using an older version of RSS (0.92) which doesn't include publish dates. Your blog will probably provide the same feed in RSS 2.0 or Atom 1.0 format (both of which contain publish dates), so try and find the feed URL for the RSS 2.0 or Atom feed (see "How do I find my feed URL" above if you have difficulty finding the feed URLs)
The dates need to be in a specific, valid format in order to be read correctly. If your feed does contain date/time stamps but you still get the above message, try entering your feed URL at feedvalidator.org - this is a useful online tool which can show common problems with feeds, including invalid date formats.
If you have no pubDate elements in your feed at all, but the feed does have GUIDs (look for or elements in the source of the feed), then you should be able to select the "Post new items based on ... GUID" option in the twitterfeed "advanced settings", and twitterfeed will then use these IDs to determine what is new.
Hat nun von Euch jemand eine Ahnung, was das für mein Script bedeutet ?
Gibt es vielleicht, wenn nicht lösbar, eine Alternative zu Twitterfeed ?
ich bin da ziemlich unwissend auf diesem Gebiet.
Danke für Eure Mühe und dem Verbraten von Gehirnschmalz.
![]()