-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output the pocs.say
messages to Twitter (and possibly more)
#522
Comments
Awesome, thanks @jeremylan! Great that you are jumping in. For another project that subclasses POCS I wanted to get the slack feature working. Turns out it was dead simple. I haven't yet put out a PR for that but you can see it here (you setup the url via slack, which controls which channel it is sent to). It would definitely be a little cleaner if it were hidden away within some kind of The above code just assumes there is a Just a note, the config files are in Alternatively we could just have a separate config file (e.g. Slack issue: #28 |
Hi @wtgee thanks for the reply That's great, I'll work at my solution to integrate with the config files as you suggest and add both Twitter and Slack. I noticed in your code you added the code directly to the Which method would you prefer? If we go the subscriber route I could trigger it (something like SocialSubscriber class or similar) based on info in the config file. This subscriber could reside either in I'm also happy to do the separate config file if you think it's the cleanest approach. I'll then send you the PR for review, I'm just learning the system (& Python) so please bear with me, I am also working at this on my spare time so it may take a little while :) If you have time, could you also please have a quick look at the core dump error I get on my POCS installation? It only runs for a few minutes before quitting. Error details are on the forum thread. Talk soon and thank you |
Hi @wtgee I created the PR. Any feedback welcome as I'm new to the project & Python :) The only think I could not understand is, every time there is a network call (either for Twitter or Slack) I get an error when the libraries invoke However I could not figure out why this is happening, I tried several libraries and they all do it. The error output is below. Any idea welcome :) |
Awesome, thanks @jeremylan ! I'll take a look at the PR. The logging is probably related to #393, which has been hard to pin down. I was doing some work in the last few days where I was seeing this as well. Something related to loading logging from an outside module before loading POCS. The I'll get to PR in a few hours. Cheers! |
This feature was suggested by @jamessynge on the forums, see the discussion here:
https://forum.projectpanoptes.org/t/help-getting-started/71
Something that is not critical but will be really useful would be the ability to send a tweet for each of the “say” messages that the software posts; these are intended for human consumption, such as “Parking the mount” or “Observing HAT-9”.
I created a simple Python script that uses the
PanMessaging
class to subscribe to thePANCHAT
channel.I used the Tweepy library (http://www.tweepy.org/) to output the messages on a Twitter account I have for development.
It would be good now to get a little more requirements for me to keep working at this i.e.
Any suggestion welcome
Thanks
The text was updated successfully, but these errors were encountered: