Page 1 of 1

Problem with twitter.txt

Posted: Tue 27 Jul 2010 11:07 pm
by juaganmu
Hi,

I was twittering the weather conditions without problems and using the default way, no twitter.txt file was created on the installation folder.
Recently, I decided to create the twitter.txt file in order to translate the information. The file was created using the "Iso Latino 1 encoding" and what I included was:

Code: Select all

Temp: <#temp>°C Humitat: <#hum> Vent: <#wspeed> km/h Direc.Vent: <#wdir> Barometre: <#press> <#pressunit> Pluja hui: <#rfall> mm. Temp max: <#tempTH>ºC Temp min: <#tempTL>ºC
The text that appears on Twitter is the folliwing one:
Temp: «#temp»°C Humitat: «#hum» Vent: «#wspeed» km/h Direc.Vent: «#wdir» Barometre: «#press» «#pressunit» Pluja hui:

So I can't see the values, only the text.
Do you know if other character encoding should be used or if the code is not well formated?
Your cooperation would be helpful.
Thanks in advance

Joan

Re: Problem with twitter.txt

Posted: Wed 28 Jul 2010 7:22 am
by steve
I created an ISO Latin-1 twitter.txt file, pasted your code into it, and updated Twitter with it. This is the result:
twitter.png
If you can't see anything wrong with your file, perhaps you could zip it up and attach it here? You are using Cumulus 1.9.0, yes?

Re: Problem with twitter.txt

Posted: Wed 28 Jul 2010 9:28 am
by juaganmu
Sorry! I didn't read the message about the 1.9 version and twitter, now I'm using the 1.8.9 version, perhaps that's the problem. I'm going to update it tonight and see how it works.

Thanks,
Joan

Re: Problem with twitter.txt

Posted: Wed 28 Jul 2010 9:33 am
by steve
It shouldn't really matter, as far as this problem is concerned, as the code which processes the file is the same. But you should really switch anyway before we go any further, as 1.8.9 will stop working with Twitter soon.

Re: Problem with twitter.txt

Posted: Wed 28 Jul 2010 10:35 pm
by juaganmu
Hi,

I have updated to the 1.9 version, but the problem is still there.
I attach you my twitter.txt file to see if it can help.

Thanks!
Joan

Re: Problem with twitter.txt

Posted: Thu 29 Jul 2010 7:43 am
by steve
That still works fine for me. But you didn't zip it, so something may have happened to the file during upload or download.
twitter2.png
If you turn on debug logging, the Twitter response is logged to the Diags files. So please do that and then attach the latest diags file.

Re: Problem with twitter.txt

Posted: Fri 30 Jul 2010 2:26 pm
by juaganmu
Finally I have started twitting the weather conditions https://twitter.com/meteobenissa
But there's still a problem with the celcius degree codification.
Do you know what could be the problem?

Re: Problem with twitter.txt

Posted: Fri 30 Jul 2010 2:35 pm
by steve
Those characters are in your file, you need to remove them:
twitter3.png
Are you creating your twitter.txt file on a Mac - the zip file seems to have come from a Mac? Perhaps that is your problem.

Re: Problem with twitter.txt

Posted: Fri 30 Jul 2010 3:43 pm
by juaganmu
Thanks for your help!
Yes, I did it on a Mac, but I have switched now to a PC and I managed to delete these characters with Notepad++ and it's hex editor.
It should work now.

Kind regards,
Joan