Comments (19)
Pretty simple - just follow these steps:
- 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
- Update main.js with the same URL
- Update manifest.json permissions, add your domain to allow communication between the browser and your domain
- 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 = 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.
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.
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.
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.
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.
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.
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.
@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.
@Baricanac wait for next update naming will definitely add.
from whatsapp-monitor.
from whatsapp-monitor.
the best feature ever. rizwan thanks. i could track someone special's activity and understand their actions. thanks mate
from whatsapp-monitor.
from whatsapp-monitor.
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.
@aliengospel it's my pleasure
from whatsapp-monitor.
Evidently, you have spent a lot of time on this. Much appreciated!
Best Regards,
Abbas Ali
from whatsapp-monitor.
from whatsapp-monitor.
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.
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.
@Baricanac please go through discussion section and add feature request for v2.3 if there is not listed.
from whatsapp-monitor.
Related Issues (20)
- Extension no longer working: "Phone number shared via url is invalid" error message HOT 8
- Not able to monitor with desktop app HOT 1
- WhatsApp monitor not working after latest update HOT 12
- Firefox support for whtsapp monitor v2.8 included Manifest V3 early 2023 possible release
- Unable to use old Notification Key with v2.8 - HOT 6
- Unable to use old Notification Key with v2.8 - "undefined" HOT 11
- WAPI.createGroup error HOT 1
- Wrong sorting order on the website and charts are not working due to that HOT 3
- WhatsApp monitor freezes after some time HOT 8
- The chrome extension stops working HOT 5
- After last Whatsapp Web Update, the WOL and CSV downloadbuttons in UI disappeared HOT 14
- WhatApp monitor no longer works HOT 5
- wpmonitor.tech is down :( HOT 7
- Problem detecting online if contact hides last seen HOT 1
- checkNumberStatus function is not working as expected(in WAPI.js)
- incorrect filename for files generated between midnight and 1am
- wpmonitor.online not working HOT 3
- The Add-in does not launch anymore in whatsapp web. After starting the addin and clicking ok, there is nothing in the whatsapp web top bar. It started since yesterday. Anybody else experienced this? HOT 11
- https://wpmonitor.online/ not work again HOT 8
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 whatsapp-monitor.