Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Twitter help in Linux.

Share your Cumulus MX user interface here

Moderator: mcrossley

Post Reply
User avatar
ConligWX
Posts: 1573
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Twitter help in Linux.

Post by ConligWX »

Ok guys, I have twitter setup in CumulusMX and is updating my Twitter feed every hour. with Weather data.

I would however like to also post Forecasts as well and Since CumulusMX does not support this i thought of looking elsewhere.

I found an app called Twidge that allows you to post from command line.

very easy to setup.

from the command line, once you have setup the app with your twitter account you then only need to do the following.


[~] # twidge update "Cloudy skies with periods of light rain late. Low 3C. Winds light and variable. Chance of rain 60%."

and it posts directly onto the feed.

I would like to know if anyone has some linux commandline experience who could possible help me in getting a script to read a forecast text file (created by the <#forecast> or <#wsforecast> webtag and put it into the commandline.

twidge update "value" is all that is needed but I am unsure how to do this. anyone have any ideas?

once this is done just run the script via crontab say 2-4 hours and you now have a forecast feed too.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Twitter help in Linux.

Post by jlmr731 »

can twidge post from a file?
if so you can setup cumulus to generate a txt file from its tags and have twidge read from it
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Twitter help in Linux.

Post by steve »

And if it can't update from a file, just the command line, then include the command in the file which Cumulus processes:

twidge update "<#forecast>"

or whatever.
Steve
User avatar
ConligWX
Posts: 1573
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Twitter help in Linux.

Post by ConligWX »

steve wrote:And if it can't update from a file, just the command line, then include the command in the file which Cumulus processes:

twidge update "<#forecast>"

or whatever.
I managed to get it done like so:

ForecastT.txt processes <#wsforecast> to forecast.txt

Forecast script called by crontab.

Code: Select all

#!/bin/sh
value=`cat /CumulusMX/web/forecast.txt`
twidge update "Station Forecast: $value"
Crontab:

Code: Select all

# m h  dom mon dow   command
0 8,14,20 	* * *   root	/root/forecast.sh
this then posts Station forecast at 8am,2pm,8pm. the rest of the time I'm sleeping :lol:
Last edited by ConligWX on Sat 28 Jan 2017 5:31 pm, edited 1 time in total.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Twitter help in Linux.

Post by jlmr731 »

Nice that you got that to work, Also forgot the Steve has custom commands built in im sure that would have worked also.
Post Reply