Page 1 of 1

Posting to TWITTER from multiple weather stations

Posted: Fri 23 Feb 2018 10:36 pm
by n5pa
I have a Davis Vantage Pro 2 Wireless weather stations at both my home and at our farm, which is 120 miles (193 Kilometers) west of our home. I want to know if there is a way to feed into the Twitter feed the location that it is posting for. Our home is in Ellisville and our farm is in Meadville and I would like to be able to easily differentiate the tweets between the two locations.

Re: Posting to TWITTER from multiple weather stations

Posted: Sun 06 May 2018 6:33 am
by ExperiMentor
You can put any free text you like in the file 'twitter.txt' in your Cumulus directory. So you can easily include the Location info in the tweet.
(alternatively, you could set up 2 separate twitter accounts, 1 for each location).

My twitter.txt crams in more information than the default:
<#shortdayname> <#hour><#minute>: <#forecast>. <#temp>C (app: <#apptemp>C). Wind <#wdir> <#wspeed><#windunit>. Rain <#rfall><#rainunit>. Humidity <#hum>%. <#press><#pressunit> <#presstrend>
this gives a tweet like:
Weather @LiesbergDorf
May 3
Thu 1045: Becoming fine. 10.2C (app: 9.1C). Wind NW 0.2mph. Rain 4.2mm. Humidity 72%. 1001.1mb Rising slowly

But you need to be careful to not exceed the twitter character limit as Cumulus doesn't seem to check (then the tweet will fail and often Cumulus will crash). The limit is 140 characters (approximately - some things don't count). In the above you could change either <#shortdayname> or <#forecast> to be your locations, depending on how many characters you need.
For example:
NSW <#hour><#minute>: <#forecast>. <#temp>C (app: <#apptemp>C). Wind <#wdir> <#wspeed><#windunit>. Rain <#rfall><#rainunit>. Humidity <#hum>%. <#press><#pressunit> <#presstrend>

Re: Posting to TWITTER from multiple weather stations

Posted: Sun 06 May 2018 11:09 am
by steve
ExperiMentor wrote:But you need to be careful to not exceed the twitter character limit as Cumulus doesn't seem to check
It’s very difficult to do the check as the size that Cumulus sends does not necessarily correspond to the size that Twitter ends up with.