Giter Site home page Giter Site logo

Comments (19)

aliengospel avatar aliengospel commented on May 25, 2024 4

Pretty simple - just follow these steps:

  1. Update online.js and replace with your URL: const surl='https://yourwebsite.com/api.php?user='+user+'&curd='+curd+'&t1='+t1+'&t2='+t2+'&t='+t
  2. Update main.js with the same URL
  3. Update manifest.json permissions, add your domain to allow communication between the browser and your domain
  4. Code for api.php:

header('Access-Control-Allow-Origin: *');

//Establish database connection
$configs = include('config.php');

//Get parameters from URL
$user = htmlspecialchars($_GET["user"]);
$curd = htmlspecialchars($_GET["curd"]);
$t1 = htmlspecialchars($_GET["t1"]);
$t2 = htmlspecialchars($_GET["t2"]);
$t = htmlspecialchars($_GET["t"]);

//Change date format from ddmmyyyy to yyyy-mm-dd
$curd = preg_replace('/^.*(\d{2})(\d{2})(\d{4})$/', '$1-$2-$3', $curd);
$curd = date("Y-m-d", strtotime($curd) );

//Insert into database
$sql = "INSERT INTO your_db_table (user_number, login_date, login_time, logout_time, online_time) VALUES ('$user', '$curd', '$t1', '$t2', '$t')";
mysqli_query($conn, $sql);

//Close database connection
$conn->close();

//Exit gracefully
exit();

Enjoy!

Regards,
Abbas

from whatsapp-monitor.

aliengospel avatar aliengospel commented on May 25, 2024 2

Would it make more sense to have a database installed on your local machine (say mySQL for example) and have the script push logs to the database directly in addition to spitting out records to the console?

from whatsapp-monitor.

aliengospel avatar aliengospel commented on May 25, 2024 2

Works like a charm! Besides pointing the url to my api endpoint, I had to "allow" the endpoint in manifest.json else I was running into CORS errors. Thanks for your help Rizwan!

from whatsapp-monitor.

Rantun avatar Rantun commented on May 25, 2024 1

Can you also complement the requirement with include in the output the date of the log, for instance:
WhatsApp Monitor,Multiple,6/18/2020
Name, Time , Status, Date
Alex,11:24:37, online, 6/18/2020
Tommy, 14:33:21, online, 6/19/2020

Thanks

from whatsapp-monitor.

Baricanac avatar Baricanac commented on May 25, 2024 1

I see the automatic update for WhatsApp Monitor version 2.2 has come through for both the Firefox add-on and Google Chrome extension. The first thing I noticed was that I could not export the logfile for my already ongoing monitoring which was enabled way before the (automatic) update came through. So that means anything I logged before that has been lost in between the time I exported and saved the last logfile by hand until the moment the update was performed. Which urges me to once again request for the automatic export of the logfile(s) instead of needing to do it by hand.

I had to restart the browser to re-enable WhatsApp Monitor logging due to this.

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024 1

Hey @Baricanac i can understand your problem we will definitely work on auto-download feature before updating extension I forget to visit issues in Github and Google is very strict regarding update new package they rejected 5 times for the update extension.

I hope someone will fork and add or I will consider it in next update with more reliable and improved version.

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024 1

I see the automatic update for WhatsApp Monitor version 2.2 has come through for both the Firefox add-on and Google Chrome extension. The first thing I noticed was that I could not export the logfile for my already ongoing monitoring which was enabled way before the (automatic) update came through. So that means anything I logged before that has been lost in between the time I exported and saved the last logfile by hand until the moment the update was performed. Which urges me to once again request for the automatic export of the logfile(s) instead of needing to do it by hand.

I had to restart the browser to re-enable WhatsApp Monitor logging due to this.

don't take tension you can access your history
https://whatsappanalysis.in/online go official website and login and take your data backup in csv format

from whatsapp-monitor.

Baricanac avatar Baricanac commented on May 25, 2024 1

@rizwansoaib could you please reintroduce the full timestamps, for example "whatsapp-monitor_22-8-2020_13-05-48.csv", back in the logfile naming? Now if something would happpen with the browser/application/electricity/internet connection or you name it and if I were to restart the logging it will mess up/overwrite the previous logfile that has the same filename of that day. For example if I had "whatsapp-monitor_22-8-2020.csv" saved and kept on saving it would be named "whatsapp-monitor_22-8-2020(1).csv" and so on. But if I were to restart logging for whatever reason like previously mentioned, it would result in the new logfile being named "whatsapp-monitor_22-8-2020.csv" once again. The previous logfile naming prevented confusion if something like that were to occur. And it was easier to just keep on logging once again that way. Thanks for the hard work!

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024 1

@Baricanac wait for next update naming will definitely add.

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024 1

from whatsapp-monitor.

guyzahead avatar guyzahead commented on May 25, 2024 1

the best feature ever. rizwan thanks. i could track someone special's activity and understand their actions. thanks mate

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024 1

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024

e,6/18/2020

Hey @Rantun now multple contacts tracking is very easy you don't need to always open just do whatever you want your history will record

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024

@aliengospel it's my pleasure

from whatsapp-monitor.

aliengospel avatar aliengospel commented on May 25, 2024

Evidently, you have spent a lot of time on this. Much appreciated!

Best Regards,
Abbas Ali

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024

from whatsapp-monitor.

Jana438 avatar Jana438 commented on May 25, 2024

Hi Rizwan,
I had some issues that when using multiple monitoring , sometimes history is not saved in csv. Do I need to have an active screen on the mobile (I am using PC and mobile) or is it required that Whatsapp web is always in front and no screensaver? Or can mobile be on the normal whats app chat overview? Regards,
Jana

from whatsapp-monitor.

Baricanac avatar Baricanac commented on May 25, 2024

Works like a charm! Besides pointing the url to my api endpoint, I had to "allow" the endpoint in manifest.json else I was running into CORS errors. Thanks for your help Rizwan!

Would you be willing to explain (in detail) on how you achieved this setup with a database?

from whatsapp-monitor.

rizwansoaib avatar rizwansoaib commented on May 25, 2024

@Baricanac please go through discussion section and add feature request for v2.3 if there is not listed.

from whatsapp-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.