Twitter.txt: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
305 bytes added ,  09:23, 23 September 2015
no edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 28: Line 28:
Note:  
Note:  
*Twitter messages can not be more that 140 characters so bear this in mind when building your message.   
*Twitter messages can not be more that 140 characters so bear this in mind when building your message.   
*If you try to put 'accented' characters into the file, it will probably fail
*If you try to put 'accented' characters into the file, the Twitter update will probably fail
*Take into account the maximum length of any webtag; pay close attention to the [[Forecast_webtag|<#forecast>]] webtag if you use it as some of the text generated by it can be long.  If your eventual ''tweet'' is over 140 character it will be truncated by Cumulus.
*Take into account the maximum length of any webtag; pay close attention to the [[Forecast_webtag|<#forecast>]] webtag if you use it as some of the text generated by it can be long.  If your eventual ''tweet'' is over 140 character it will be truncated by Cumulus.
*If you want to include any Twitter 'hash tags' in your message, just add them as plain text, e.g. #hashtag
*If you want to include any Twitter 'hash tags' in your message, just add them as plain text, e.g. #hashtag
Line 38: Line 38:
The equivalent of the default 'tweet' as a <tt>twitter.txt</tt> file is as follows:
The equivalent of the default 'tweet' as a <tt>twitter.txt</tt> file is as follows:
  Wind <#wspeed> <#windunit> <#wdir>. Barometer <#press> <#pressunit>, <#presstrend>. Temperature <#temp> <#tempunit>. Rain today <#rfall> <#rainunit>. Humidity <#hum>%
  Wind <#wspeed> <#windunit> <#wdir>. Barometer <#press> <#pressunit>, <#presstrend>. Temperature <#temp> <#tempunit>. Rain today <#rfall> <#rainunit>. Humidity <#hum>%
You might find the degree symbol from <#tempunit> is displayed by Twitter as &amp;deg; in which case the simple solution is to 'hard code' your temperature units in the twitter.txt file rather than using the web tag. You should probably save your twitter.txt file as 'UTF-8 without BOM'.


[[Category: Configuration Files]]
[[Category: Configuration Files]]

Navigation menu