GBAtemp Private Message Notifier

Discussion in 'General Off-Topic Chat' started by Quantumcat, Oct 3, 2018.

  1. Quantumcat
    OP

    Quantumcat Dead and alive

    Moderator
    20
    GBAtemp Patron
    Quantumcat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 23, 2014
    Australia
    Canberra, Australia
    Couldn't think of a better forum to put this in so here it is.

    What does this do?
    Whenever you get a new private message, or a new reply in an existing private message, it will send you an SMS. You won't need to worry about missing out on anything important when you're either busy or not looking at the internet. Don't use it if either (a) your telco charges you money to receive text messages, or (b) you are on a very limited data plan on the internet that your PC uses (it refreshes the conversations page about every ten seconds). It should work on all operating systems but I only tested it on Windows.

    Code is here: https://github.com/quantumcat1/Temp-Notifier

    How do I use it?
    First of all, you need to sign up to a clickatell account. This is what lets you send free text messages to yourself. The reason it is free, is they charge you to send text messages to other people, but you can send free "test" messages to up to three pre-defined phone numbers (which will be you!).
    1. Go to clickatell.com
    2. Click Register in the top right
    3. Fill in the details - make sure to select the correct country, and just put in your mobile phone number like you normally would.
    4. Confirm your email address by clicking the link in the email they send you
    5. Login
    6. Click "Get started" under "Create an SMS integration to use in your own application"
    7. Click "Add test phones". Make sure to get the country correct and put in the number in international format (e.g. drop the leading zero). Probably will still work if you put it in normally, but that's what I did.
    8. Click "Add phone"
    9. Put in the code that gets sent to your phone
    10. Click "Finish"
    11. Scroll down and click "My first test integration"
    12. Click details, and copy the API key and save this somewhere
    Download the jar and user.txt from https://github.com/quantumcat1/Temp-Notifier/releases.

    You'll need Java installed to run it. To test if you have it, open a command window (type cmd into the Windows Start box and press Enter), and type "java -version" then Enter. If it says you have Java 1.8 or higher that's fine. If not, visit https://www.java.com/en/download/help/download_options.xml

    Now, open user.txt and replace the information. Add your username, password, api key from Clickatell and your mobile phone number in international format with no spaces. Leave the pipe characters ("|"). Don't add spaces.

    Open a command window and cd to where you put the jar and the text file. Type "java -jar TempNotifier.jar". To quit it, closing the command window should be enough, but just to make sure, go into Task Manager and look for any Java apps running (they'll have the coffee cup icon and be called something like Java(TM) executable), and close them.

    If you get any problems and you can't work them out please comment here. Also please comment if there's anything you'd like me to add and I'll put it in the to-do list.

    To-do list
    • Add error messages in English if something goes wrong
    • Do the same thing for Alerts
    • Don't send a text message if it is the user who replied
    • Add ability to send private messages via Discord rather than text messages
    • Add a spring boot version & instructions for hosting it so you don't have to have your computer on & using data
    If people are interested I can make this a webapp instead, so you don't have to run it on your computer. But I assume people will be wary about inputting their passwords into a website, so I didn't do this yet.
     
    Last edited by Quantumcat, Oct 3, 2018
  2. BORTZ

    BORTZ Switch Dawg

    Supervisor
    22
    GBAtemp Patron
    BORTZ is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 2, 2007
    United States
    Pittsburgh
    Gmail already notifies me when someone starts a new PM with me sooo
     
    Last edited by BORTZ, Oct 3, 2018
    smileyhead and gnmmarechal like this.
  3. smileyhead

    smileyhead 56709

    Member
    15
    Aug 31, 2015
    Hungary
    Hungary
    Emails and push notifications are a thing. There is no use for this.
     
  4. gnmmarechal

    gnmmarechal GBAtemp Guru

    Member
    13
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    erm this looks pretty weird, is it like that for a reason?
    upload_2018-10-3_14-30-2.
    Am I missing something here?
     
  5. cearp

    cearp 瓜老外

    Member
    16
    May 26, 2008
    Tuvalu
    Very cool idea :) Thank you!
     
  6. Minox

    Minox Thanks for the fish

    Former Staff
    13
    Aug 27, 2007
    Japan
    Seems like a code formatting choice. Functionally it does the same as System.out.println(""); but on more than one row.
     
  7. gnmmarechal

    gnmmarechal GBAtemp Guru

    Member
    13
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    Well yes, but it looks pretty darn ugly imo.
     
  8. Minox

    Minox Thanks for the fish

    Former Staff
    13
    Aug 27, 2007
    Japan
    I wouldn't format it like that either, but it's not my code and so long as it does what it's supposed to do I'm not one to complain.
     
    Seriel likes this.
  9. Flame

    Flame Me > You

    Moderator
    15
    GBAtemp Patron
    Flame is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 15, 2008
    make one for likes!

    likes make me happy.
     
    cearp and BORTZ like this.
  10. matpower

    matpower A Hero of Justice

    Member
    6
    May 5, 2012
    Brazil
    Kazamatsuri
    That's seems like a horrible idea on long term.

    You're also writing the password in plaintext, you should be more careful with that.

    And last, but not least, why write this? We have push notifications on mobile browsers and email notifications. I think RSS feeds still work too, but not sure if it applies to private messages.
     
    Chary and gnmmarechal like this.
  11. BORTZ

    BORTZ Switch Dawg

    Supervisor
    22
    GBAtemp Patron
    BORTZ is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 2, 2007
    United States
    Pittsburgh
    Mobile/chrome already does that too btw
     
    Last edited by BORTZ, Oct 3, 2018
  12. Flame

    Flame Me > You

    Moderator
    15
    GBAtemp Patron
    Flame is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 15, 2008
    but i need that big dong sound.

    Warning: Spoilers inside!
     
    BORTZ likes this.
  13. smileyhead

    smileyhead 56709

    Member
    15
    Aug 31, 2015
    Hungary
    Hungary
    Set yourself an appropriate notification sound then.
     
  14. Flame

    Flame Me > You

    Moderator
    15
    GBAtemp Patron
    Flame is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 15, 2008
    i want to have choice and my choice is to use a @Quantumcat app.
     
    Last edited by Flame, Oct 3, 2018
    Quantumcat and BORTZ like this.
  15. Olmectron

    Olmectron GBAtemp Addict

    Member
    9
    GBAtemp Patron
    Olmectron is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 31, 2012
    Mexico
    A game
    Good!

    I'll test it out later today.
     
    Quantumcat likes this.
  16. DinohScene

    DinohScene Feed Dino to the Sharks

    Moderator
    22
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Oct 11, 2011
    Antarctica
    Восторг
    I think it's great what you're doing @Quantumcat, it makes me appreciate this community a lot when users make specific temp related applications.
    Thank you so much for your effort!
     
    Quantumcat and cearp like this.
  17. Subtle Demise

    Subtle Demise h

    Member
    10
    Sep 17, 2009
    United States
    In my experience, the mobile push notifications don't notify for everything, and they turn themselves off after a while, and they don't seem to work at all on Windows 10. Anyway, this is just an option for people who want it.
     
    BORTZ likes this.
  18. Quantumcat
    OP

    Quantumcat Dead and alive

    Moderator
    20
    GBAtemp Patron
    Quantumcat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 23, 2014
    Australia
    Canberra, Australia
    Yeah I tried to make it look nicer by going ctrl shift F but it made some things weird. I'll fix it next time I make a change.
     
  19. Quantumcat
    OP

    Quantumcat Dead and alive

    Moderator
    20
    GBAtemp Patron
    Quantumcat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 23, 2014
    Australia
    Canberra, Australia
    Only an issue if you share your computer with others who use the Temp, and they also know where to look.

    My specific use case is having my desk at work be in a location that has terrible internet reception, but perfectly good phone reception. I can get alerted when there is something to look at and go to the break room to see, and not be looking at my phone at any other time.
     
  20. Olmectron

    Olmectron GBAtemp Addict

    Member
    9
    GBAtemp Patron
    Olmectron is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 31, 2012
    Mexico
    A game
    Just to make sure I'm trying this the correct way, the username and password are GBATemp's right?

    Edit: Just tested it up, yes, it's GBATemp's.

    No way to test it right now, but the JAR seems to be running alright. I guess I'll wait for any random PM.
     
    Last edited by Olmectron, Oct 3, 2018
Loading...