Comments (6)
I did wonder after it stopped working in July 23 and it hadn't been fixed yet. Shame really, oh well I'll post the stats on mastodon instead. Thanks for the feedback Jim, been using pywws for longer than I can remember 😊
from pywws.
No, unless someone wants to pay Twitter $100 per month for pywws to be able to post messages.
from pywws.
I've looked into this and I believe the free account is allowed to post up to 1500 posts a month, so in theory if the user only tweeted hourly weather conditions, it'd equate to approx 740+ tweets a month.
I've managed to do a test tweet using tweepy and the new v2 api using the following code
import tweepy
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
ACCESS_KEY = ""
ACCESS_SECRET = ""
# Twitter API v2 --- Will be used to post the tweet
client_v2 = tweepy.Client(
consumer_key=CONSUMER_KEY,
consumer_secret=CONSUMER_SECRET,
access_token=ACCESS_KEY,
access_token_secret=ACCESS_SECRET
)
response = client_v2.create_tweet(text="hello world")
from pywws.
pywws has more than one user. If you create your own developer account and generate your own key/secret then you can post to Twitter. But if you share that key/secret (as pywws does) then all the users soon add up to more than 1500 posts per month.
from pywws.
Apologies, I'd always used pywws with my own twitter account in isolation.
from pywws.
There are two sets of key/secret pairs. The one corresponding to your user account, which is stored in weather.ini, and the consumer_key
and consumer_secret
which are stored in pywws/constants.py
. It is the latter that are shared between pywws users. You can obtain your own consumer_key
and consumer_secret
by registering as a Twitter developer and creating a set of credentials.
from pywws.
Related Issues (20)
- WH1080 suddenly fires alarms HOT 5
- version 21.3.0 is crashing after clocks change HOT 5
- pytz dependancy but not explicitly listed HOT 14
- 70.8mm of rain, turned into 7.8mm in pywws HOT 5
- mqtt is missing records HOT 1
- Feature request for mqtt: discovery for Home Assistant HOT 1
- Talk weather HOT 3
- pywws.livelog crashed with math domain error. Impossible to relaunch. HOT 1
- No 'rain' processing should occur if old status is 'lost connection' HOT 2
- new version of paho-mqtt breaks mqtt messaging within pywws HOT 2
- error processing hourly HOT 2
- can't run logdata - weather station issue?
- SQLite storage optimisation HOT 5
- libusb HOT 1
- [feature] Improve detection of WS3080 HOT 5
- logdata.py: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta' HOT 3
- Enhancement - check for excessive change in temp_out HOT 4
- Problem to run weatherstation.py "No USB libary found" HOT 14
- Can't change station read period HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywws.