56
linuxxx
46d

That moment that you need something but your skillset isn't good enough to make it and your time is too limited to learn it.

I fucking hate those moments.

Comments
  • 15
    That’s the moment to swallow your pride and find somebody to ask for help?
  • 2
    ๐Ÿ“Œ I agree with @heyheni
  • 4
    @heyheni Oh pride isn't an issue right now, I just don't know many people who can do this and find it kinda weird to ask this on devRant...
  • 0
    @linuxxx ๐Ÿ˜ oh.
  • 0
    @heyheni that's right. Usually do that f*** error
  • 4
    Then you don't want it bad enough... Although my last want took Google and an entire team 5yrs to do...
  • 4
    @Wombat All I really need is an android app which sends my location to a server every x seconds. Interval, server url configurable ๐Ÿ˜„
  • 0
    @heyheni nice suggestion, but people expect me to solve their issues.
    when I ask them I need, help. they start laughing and even if I say seriously, they still don't help. Expect a few there who not helps, but at least give ideas that help me to do fast.
  • 1
    @linuxxx haha very good requirement you have
  • 0
    @linuxxx lol, the problem you’ll run into is how many people re willing to write an app n devRant that transmits location off device!!
  • 3
    @linuxxx dumb idea... set up a cron job in termux?
  • 1
    @heyheni How'd I do that on my android phone?
  • 1
    @FrodoSwaggins Fair enough ๐Ÿ˜„ I do have the backend ready but the app is just the issue..
  • 1
    maybe try a linux terminal emulator in android like Termux, which has an API that lets you communicate with android. (Termux can do it). Then is just a matter of writting a script that calls the gps command, copies the output of the terminal and sends it with curl or something (don't know if it's possible with Termux api tho).

    the api docs if you're interested: https://wiki.termux.com/wiki/...

    edit: @heyheni beat me to it
  • 1
    @balvinder294

    Here I am over here offering my meager help left and right.

    Everyone: not a soul ever takes me up on the offer.
  • 3
    here is a python3 script that should work on termux, the output of termux-location is JSON so you may want to parse it instead of sending it as plaintext:

    import subprocess

    cmd = ['termux-location']
    output = subprocess.Popen( cmd, stdout=subprocess.PIPE ).communicate()[0].decode()

    cmd = ['curl', f'-X POST -H \"Content-Type: text/plain\" -d {output}', '127.0.0.1']
    output = subprocess.Popen( cmd, stdout=subprocess.PIPE ).communicate()[0].decode()
    print(output)
  • 1
    @Kashmir issue right now is that termux is not returning any location data... It returns blank every time while I'm getting a location on my maps app ๐Ÿ˜ฌ
  • 1
    @linuxxx maybe it's a problem with permissions, if not check if the api part was correctly installed as you need a separated app and a pkg install, otherwise idunno :x
  • 2
    @Kashmir Nevermind, it works now! I just can't find info on the job scheduler api...
  • 2
    very cool!
  • 0
    @linuxxx dude, there are a few location-tracking apps on fdroid! There's one that integrates with nextcloud even (Phonetrack). Also a few others with custom backends if you wanna play with stuff. Don't remember the names atm though.
  • 1
    Hey @Kashmir does termux run uninteruped if your phone goes to standby and by android power saving functions?

    And it will probably drain the battery very quickly as the gps fix requires some juice to do?
  • 0
    @linuxxx found a few others: Trackbook, Hauk, Seguime, Traccar, GPSd Forwarder, mulogger.
    You can find them all in the Navigation section.
  • 1
    @endor I know! I just don't have enough android dev skills to customize them. I tried this with ulogger a while back but the app isn't requesting continuous location access so the second I put it on standby it stops.

    If this termux thing works, though, I could just make it a bash script...
  • 0
    @linuxxx look into the other apps I mentioned, they each have different features and ways to interact with a backend. At least one of them supports direct communication via UDP, and another one can interact with a Telegram bot, plus a bunch of other stuff, like continuous tracking.
  • 0
    This sounds like the Google service that tracks your location history all day....

    https://online-tech-tips.com/google...

    So that's like anti privacy?
  • 0
    And I think you need to create a background service...aka a big brother that's always watching u...

    https://github.com/codepath/...

    I think the Facebook app has a lot of those... Drains the battery
  • 1
    @heyheni as long as you don't kill the session i think it will keep running whatever script you started, but i don't know about the battery stuff, you can probably tune the script so it doesn't drain so much
  • 0
    @billgates Well, I don't have Google play services on my phone and my provider can track me regardless, so...
  • 0
    @linuxxx Are you rooted? If yes, you can simply use a sh script and a command.
  • 0
    This hits me on a spiritual level.
    I am a student and I want to learn a lot of things but can't do anything because I am bad at handling multiple things at once :'/
  • 1
    @nedjima handling multiple things at once ๐Ÿคจ. Try focusing on one thing. .... You probably know that right ?
  • 1
    @JosiasAurel the problem is that I can't because of my shitty school ๐Ÿ˜ž
  • 0
    @nedjima yay. I feel that. I don't like school - rather like coding but I must do it. So my skill drop abit when at school ๐Ÿ˜ข
Add Comment