Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Twitter help in Linux.

Share your Cumulus MX user interface here
User avatar
Toxic17
Posts: 542
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Twitter help in Linux.

Postby Toxic17 » Fri Jan 27, 2017 11:35 pm

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
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: Twitter help in Linux.

Postby jlmr731 » Sat Jan 28, 2017 12:39 am

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: 26245
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Twitter help in Linux.

Postby steve » Sat Jan 28, 2017 11:42 am

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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

User avatar
Toxic17
Posts: 542
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Twitter help in Linux.

Postby Toxic17 » Sat Jan 28, 2017 1:05 pm

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 Toxic17 on Sat Jan 28, 2017 5:31 pm, edited 1 time in total.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: Twitter help in Linux.

Postby jlmr731 » Sat Jan 28, 2017 3:08 pm

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


Return to “Customisation”

Who is online

Users browsing this forum: No registered users and 1 guest