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.
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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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.
Moderator: mcrossley
- ConligWX
- Posts: 1631
- 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.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- 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.
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
if so you can setup cumulus to generate a txt file from its tags and have twidge read from it
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Twitter help in Linux.
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.
twidge update "<#forecast>"
or whatever.
Steve
- ConligWX
- Posts: 1631
- 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.
I managed to get it done like so: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.
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"
Code: Select all
# m h dom mon dow command
0 8,14,20 * * * root /root/forecast.sh
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 • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- 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.
Nice that you got that to work, Also forgot the Steve has custom commands built in im sure that would have worked also.
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21