Search found 30 matches

by EricM
Sun Jun 17, 2018 6:06 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7
Replies: 12
Views: 36936

Re: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7

Still works in 11.2.3, but you will need to replace the '1' in the following line with the UUID of the admin user. if ( $this->getCurrentUserObject()->getId() == '1') { A lazy way to find your UUID is to use the following line of code, put it above the check and then read the result: file_put_conten...
by EricM
Thu May 25, 2017 4:28 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7
Replies: 12
Views: 36936

Re: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7

Note: The above modifications still work in 10.6, but I noticed updates can no longer be manually downloaded from sourceforge.

I get them from here:
https://www.timetrex.com/onsite_communi ... p=download
by EricM
Sat Dec 26, 2015 5:26 pm
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7
Replies: 12
Views: 36936

Re: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7

Note: The above modifications still work in 9.0.5, but the station line that needs to be commented out looks slightly different.

Code: Select all

$data['station_id'] = $current_station->getId();
by EricM
Thu Sep 10, 2015 4:46 am
Forum: Developers
Topic: Weekly Lockup - backup_database
Replies: 6
Views: 11199

Re: Weekly Lockup - backup_database

Update: It looks like everything has settled down into a nice regular load cycle. I'm not sure why I was getting high loads towards the end of the week initially, but it's gone now.
by EricM
Thu Sep 03, 2015 11:21 am
Forum: Developers
Topic: Weekly Lockup - backup_database
Replies: 6
Views: 11199

Re: Weekly Lockup - backup_database

Upgrading Postgre to 9.3 and using the tweaks I posted in the installation forums seems to have fixed my problem and made Timetrex run smoother in general.

http://forums.timetrex.com/viewtopic.php?f=1&t=6946

Thanks for the suggestion.
by EricM
Wed Aug 19, 2015 3:54 am
Forum: Installation Help
Topic: php.ini suggested settings?
Replies: 3
Views: 6125

Re: php.ini suggested settings?

As a final tweak, PostgreSQL seems to work better once tuned for your amount of system ram. This can be done by running your config file through pgtune sudo apt-get install pgtune pgtune -i /etc/postgresql/9.3/main/postgresql.conf -o /etc/postgresql/9.3/main/postgresql.NEW Inspect the new file, repl...
by EricM
Mon Aug 17, 2015 5:45 am
Forum: Installation Help
Topic: php.ini suggested settings?
Replies: 3
Views: 6125

Re: php.ini suggested settings?

For anyone else trying to install via zip, I would highly suggest keeping a copy of the Linux installer on hand to use as a reference. The zip installer doesn't include some of the scripts like backup_database and is rather light on installation documentation. Below is the installation checklist I m...
by EricM
Thu Aug 13, 2015 5:33 am
Forum: Installation Help
Topic: php.ini suggested settings?
Replies: 3
Views: 6125

php.ini suggested settings?

I recently migrated my TimeTrex installation from a VM running 32 bit Ubuntu 12 LTS which had Timetrex installed with the Linux installer to a new VM running 64 bit Ubuntu 14 LTS that has TimeTrex installed via zip file. So far the results have been very promising, punches that used to take 4.5 seco...
by EricM
Tue Aug 11, 2015 5:53 am
Forum: Developers
Topic: Weekly Lockup - backup_database
Replies: 6
Views: 11199

Re: Weekly Lockup - backup_database

Thanks for the quick reply! I didn't realize the Linux installer had been depreciated. I set up a test VM running 64 bit Ubuntu with PostgreSQL 9.3.9 & PHP 5.5.9 and am currently restoring a copy of our database. Assuming everything works well in testing I'll move it into production next week. T...
by EricM
Mon Aug 10, 2015 8:23 am
Forum: Developers
Topic: Weekly Lockup - backup_database
Replies: 6
Views: 11199

Re: Weekly Lockup - backup_database

PostgreSQL 8.3.3 on Ubuntu, it's what the Timetrex installer set up. It's on a Dell T110 w/ X3440 CPU, the Timetrex VM is running in Proxmox and is given 4GB ram and a 2 core CPU via KVM32. When I say lock up, I mean Timerex & Postgre will appear to work normally for a short period of time after...
by EricM
Mon Aug 10, 2015 7:45 am
Forum: Developers
Topic: Weekly Lockup - backup_database
Replies: 6
Views: 11199

Weekly Lockup - backup_database

It appears that the CronJobFactory system built into Timetrex doesn't wait for backup_database to complete before starting new jobs. If backup_database takes longer than a minute, this can cause it to overlap into other jobs. If backup_database overlaps into the running of PurgeDatabase (in MiscWeek...
by EricM
Mon Jul 27, 2015 9:03 am
Forum: Developers
Topic: Maximium Size of timetrex.log
Replies: 4
Views: 8455

Re: Maximium Size of timetrex.log

Right, that's what I normally do, but I've been trying to catch a bug that only exhibited itself about once a week and discovered this other logging bug along the way.

As a temporary fix I set up an extra cron job to delete the logs daily.
by EricM
Mon Jul 27, 2015 8:02 am
Forum: Developers
Topic: Maximium Size of timetrex.log
Replies: 4
Views: 8455

Re: Maximium Size of timetrex.log

It seems to be a limit in all 32 bit versions of PHP, including the version bundled with Timetrex. It's a rather rare issue, but it's useful to note because once the log file hit the limit, Timetrex stopped responding and I had to manually restart it. Restarting the timetrex service seemed to force ...
by EricM
Mon Jul 27, 2015 7:35 am
Forum: Developers
Topic: Maximium Size of timetrex.log
Replies: 4
Views: 8455

Maximium Size of timetrex.log

It seems like the log file (timetrex.log) has a maximum size of 2,147,483,647 bytes. I've only hit the limit with extremely verbose logging turned on in a heavy use environment. Normally the logs would rotate far before that. I'm not sure if this is a limit in my version of PHP or Timetrex, but it's...
by EricM
Mon Jun 22, 2015 8:21 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7
Replies: 12
Views: 36936

Re: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7

Note: I found out this morning that v8 has an automatic update feature that is turned on by default. This does not play well with modified versions of timetrex. To fix the warnings, I manually updated to 8.0.8 using the Linux installer from sourceforge, re-applied my modifications, and then disabled...
by EricM
Mon Jun 08, 2015 6:08 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7
Replies: 12
Views: 36936

Re: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7

If you aren't comfortable with setting it up yourself, I'd suggest either sticking to the default installation, or paying for the professional version and buying a solution.

You don't want to run into a problem down the road and be unable to fix it.
by EricM
Wed Jun 03, 2015 6:37 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7
Replies: 12
Views: 36936

Re: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7

I used barcode scanners that show up as a keyboard, so anything (barcode, RFID, etc) that can type into the console will work. The barcodes themselves are simply the employee number printed out with a few leading zeros. For more permanent employees we make plastic cards on an Fargo ID printer. Temps...
by EricM
Mon Jun 01, 2015 7:33 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7
Replies: 12
Views: 36936

DIY Stand Alone Barcode Punch Station - Timetrex v8.0.7

I was going to update my old punch station post, but it looks like it is so old it's now locked ( http://forums.timetrex.com/viewtopic.php?f=5&t=5899 ). The instructions from the old post still work in V8.0.7. To upgrade my v7 installation, I simply ran the official update, and then applied the ...
by EricM
Wed Mar 05, 2014 7:44 am
Forum: Developers
Topic: Punching Via Email
Replies: 1
Views: 8054

Re: Punching Via Email

I found a few quirks in the script over the last year. Here is the current version: <?php //connect to gmail require_once('Zend/Mail/Storage/Pop3.php'); $mail = new Zend_Mail_Storage_Pop3(array('host' => 'pop.gmail.com', 'port' => 995, 'user' => 'USERNAME', 'password' => 'PASSWORD', 'ssl' => 'SSL'))...
by EricM
Wed Mar 05, 2014 5:35 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station
Replies: 9
Views: 32588

Re: DIY Stand Alone Barcode Punch Station

I recently upgraded from a 5.x version of TimeTrex (on an old Windows XP install) to 7.3.1 (on an Ubuntu 12.04 LTS VM in Proxmox) without any problems. I would like to note that this modification still works in TimeTrex 7.3.1, but there are a few minor changes. In APIAuthentication, change two insta...
by EricM
Tue Jul 02, 2013 10:56 am
Forum: Developers
Topic: APIAuthentication
Replies: 2
Views: 6463

Re: APIAuthentication

Unfortunately, I think the official solution is to pay for one of the fancier versions of TimeTrex.

So far my DIY solution is working well with the free version, we are doing several hundred barcode punches a day with my stand alone stations.
by EricM
Thu Mar 28, 2013 5:34 am
Forum: Developers
Topic: Punching Via Email
Replies: 1
Views: 8054

Punching Via Email

Some of the salesmen in my company wanted to punch in and out while on the go, so I made a little script to handle punches via Email. This script requires that a users login name in timetrex is the same as their email username. To get the script to work in the free version of Timetrex, you need to f...
by EricM
Thu Mar 28, 2013 5:19 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station
Replies: 9
Views: 32588

Re: DIY Stand Alone Barcode Punch Station

I looked into releasing an image, but I can't be sure that I've sanitized all of my personal information off of the image... The directions posted above are very complete, I would suggest just following those. Feel free to ask if you need any clarifications. Here is the most updated version of my pu...
by EricM
Wed Feb 06, 2013 11:35 am
Forum: Developers
Topic: DIY Stand Alone Barcode Punch Station
Replies: 9
Views: 32588

DIY Stand Alone Barcode Punch Station

I wanted a standalone punch station for the free version of Timetrex but it didn't look like anything was available, so I made one myself from a Raspberry Pi ($35) and a Metrologic MS3580 QuantumT Orbit Scanner ($50). The plan is to give each employee a barcode with their employee number on it. If t...
by EricM
Mon Jan 21, 2013 3:39 pm
Forum: Help
Topic: StationID API Problems
Replies: 10
Views: 6332

Re: StationID API Problems

In APIAuthentication I made it so that only user_id one can switchusers by changing if ( $this->getPermissionObject()->Check('company','view') AND $this->getPermissionObject()->Check('company','login_other_user') ) { to if ( $this->getCurrentUserObject()->getId() == '1') { Then in APIPunch I changed...