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 uploads
Moderator: mcrossley
- raul_sbd
- Posts: 94
- Joined: Wed 16 Jan 2013 7:58 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 10
- Location: Glossop
- Contact:
Twitter uploads
Hi everyone,
Sorry if this is been asked before but does anyone knows how to set up Twitter uploads? I know there is an option in Cumulus web options to enter Twitter credentials but do you need anything else apart of a Twitter dedicated account?
Can you provide step by step instructions if there is the option for the uploads please?
Many Thanks!!
Sorry if this is been asked before but does anyone knows how to set up Twitter uploads? I know there is an option in Cumulus web options to enter Twitter credentials but do you need anything else apart of a Twitter dedicated account?
Can you provide step by step instructions if there is the option for the uploads please?
Many Thanks!!
- PaulMy
- Posts: 3849
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Twitter uploads
The Twitter updates from Cumulus stopped working several years ago due to some Twitter issue. However Twitter can be updated by Weathercloud, and Weathercloud is one of the third-party weather services that can be updated by Cumulus.
https://twitter.com/KomokaWeather
https://app.weathercloud.net/d0280022074#current
Enjoy,
Paul
https://twitter.com/KomokaWeather
https://app.weathercloud.net/d0280022074#current
Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- raul_sbd
- Posts: 94
- Joined: Wed 16 Jan 2013 7:58 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 10
- Location: Glossop
- Contact:
Re: Twitter uploads
Thank you Paul I have created the Weathercloud account now and linked my weather station in Cumulus Mx.. after that how do I do it to link to the Twitter account?PaulMy wrote: ↑Fri 26 Nov 2021 7:42 pm The Twitter updates from Cumulus stopped working several years ago due to some Twitter issue. However Twitter can be updated by Weathercloud, and Weathercloud is one of the third-party weather services that can be updated by Cumulus.
https://twitter.com/KomokaWeather
https://app.weathercloud.net/d0280022074#current
Enjoy,
Paul
- PaulMy
- Posts: 3849
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Twitter uploads
I expected this question but can't remember what I had to do as it has been a few yearsafter that how do I do it to link to the Twitter account?
I am sure there is a setting somewhere... I'll look again.
Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- raul_sbd
- Posts: 94
- Joined: Wed 16 Jan 2013 7:58 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 10
- Location: Glossop
- Contact:
Re: Twitter uploads
My bad Paul!! I have done it now
There it is ;
https://app.weathercloud.net/d6743448014
Many thanks for your help
There it is ;
https://app.weathercloud.net/d6743448014
Many thanks for your help
- PaulMy
- Posts: 3849
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Twitter uploads
Hi,
Glad you got it added.
Took a while but found the place to add Twitter and have attached in case someone else wants to give it a try.
Enjoy,
Paul
Glad you got it added.
Took a while but found the place to add Twitter and have attached in case someone else wants to give it a try.
Enjoy,
Paul
You do not have the required permissions to view the files attached to this post.
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 272
- Joined: Tue 28 May 2013 1:06 am
- Weather Station: Davis VP2 Plus
- Operating System: Raspian Buster (RPi 3b)
- Location: Tulsa, OK
Re: Twitter uploads
If you want to use a direct solution and not have to rely on WeatherCloud as a proxy, I use a Python script and cron (I use a RPI 3). It takes some configuration though. It's been so long since I configured it I might take a while to get it all together if anyone is interested.
EDIT: I think regardless if anyone says yes or no I will go ahead and provide details on how I did this.
Pre-requisites - *must* have Python 3 installed, and must install Twython (the Twitter wrapper for Python 3) The assumption here is that you are doing this using some form of Linux, whether it be a full-fledged version, or the Raspian OS. You must also generate consumer keys and access keys assigned to the app (in my instance I just have a generic). To do this visit https://dev.twitter.com
Once you have Python 3 and Twython imported (I believe you still do this by issuing the 'pip modulename' command), you create a python script to do what you need. I have mine and will provide it (with tokens masked of course but you'll get the idea).
You will need to create a template file that you generate using the web interval with the tags you want to include in the tweet. As an example, here's what I use (template filename is tweetT.txt) but you can include or exclude whatever you want:
Generate the file, and name it whatever you want, but make sure the file reference in the python script above is the path and filename to the file generated.
Once you've done this, I would suggest you test it first before you set to a schedule in a cron job.
Assuming you've named the python script 'twitter.py', issue the following command:
Be patient, it may take a few seconds to complete. There is no progress indicator, but as long as you don't see any error it should work. Once completed, this was what I saw after my test:
If there are any question, please reply here and I will answer them to the best of my ability.
EDIT: I think regardless if anyone says yes or no I will go ahead and provide details on how I did this.
Pre-requisites - *must* have Python 3 installed, and must install Twython (the Twitter wrapper for Python 3) The assumption here is that you are doing this using some form of Linux, whether it be a full-fledged version, or the Raspian OS. You must also generate consumer keys and access keys assigned to the app (in my instance I just have a generic). To do this visit https://dev.twitter.com
Once you have Python 3 and Twython imported (I believe you still do this by issuing the 'pip modulename' command), you create a python script to do what you need. I have mine and will provide it (with tokens masked of course but you'll get the idea).
Code: Select all
#!/usr/bin/env python
from twython import Twython
# delay 5 seconds
import time
time.sleep(5)
# Define constants
CONSUMER_KEY = 'xxxxxxxxxxxxxxxxxxxx'
CONSUMER_SECRET = 'xxxxxxxxxxxxxxxxxxxx'
ACCESS_KEY = 'xxxxxxxxxxxxxxxxxxxx'
ACCESS_SECRET ='xxxxxxxxxxxxxxxxxxxx'
# Create a copy of the Twython object with all our keys and secrets to allow easy commands.
api = Twython(CONSUMER_KEY,CONSUMER_SECRET,ACCESS_KEY,ACCESS_SECRET)
text = open('/path/to/generated/tweet.txt','rb') # Cumulus has been set to create tweet.txt by processing tweetT.txt
api.update_status(status=text)
# api.update_status is now deprecated, but works, and is simpler than the below [untested]
#twitter.update_status(status=text)
Code: Select all
Temp: <#temp>°F DP: <#dew>°F HtIdx: <#heatindex>°F High today: <#tempTH>°F @ <#TtempTH> Low today: <#tempTL>°F @ <#TtempTL> Wind: <#wdir> @ <#wspeed> mph Baro: <#press> inHg and <#presstrend> Rain Today <#rfall>in Rain for <#shortmonthname>: <#rmonth>in #okwx
Once you've done this, I would suggest you test it first before you set to a schedule in a cron job.
Assuming you've named the python script 'twitter.py', issue the following command:
Code: Select all
python3 twitter.py
If there are any question, please reply here and I will answer them to the best of my ability.
You do not have the required permissions to view the files attached to this post.
- dazza1223
- Posts: 867
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: Twitter uploads
is there one for Facebook page ? or can it be done in this way?
-
- Posts: 2
- Joined: Fri 20 Jan 2012 2:26 pm
- Weather Station: WH1080
- Operating System: WIndows 7
- Location: South Wales
Re: Twitter uploads
Apologies for thread bumping.
How do you create the twitter.txt output file please?
I guess it's somewhere under internet settings but can't find the right place.
TIA.
How do you create the twitter.txt output file please?
I guess it's somewhere under internet settings but can't find the right place.
TIA.
-
- Posts: 272
- Joined: Tue 28 May 2013 1:06 am
- Weather Station: Davis VP2 Plus
- Operating System: Raspian Buster (RPi 3b)
- Location: Tulsa, OK
Re: Twitter uploads
Extra web files. Not internet settings.
This is what I use, but you'll need to suit it for your needs. You shouldn't need to do anything but process the file. The python script should do all the work. Those pathnames obviously can be whatever you want to use. Also, if you're using Windows 7, I can't help much there as my example as stated is using Raspberry Pi (some form of Linux).
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2
- Joined: Fri 20 Jan 2012 2:26 pm
- Weather Station: WH1080
- Operating System: WIndows 7
- Location: South Wales
Re: Twitter uploads
Sorted thanks