source: stamper/etc/stamper.conf@ 60:ec70c7dc68b6

Last change on this file since 60:ec70c7dc68b6 was 60:ec70c7dc68b6, checked in by Borja Lopez <borja@…>, 9 years ago

Improvements on the code to push stamps to a remote collector server:

  • The collector server returns now a list of exposed api methods/urls after logging in. That means we do not need to set the url to the listener anymore (stamper can learn from the collector's response)
  • The collector handles fine now push actions to add/append stamps to its database, returning the number of stamps that are added, updated or deleted to/from the database. That means we can show a bit more information to the user after the push
  • The responses from the collector are json-encoded, so now we try to de-serialize the data, showing an error if that is not posible (badly-formatted json, error/exception, etc).
File size: 342 bytes
Line 
1#
2# stamper.conf - Stamper configuration file
3#
4
5[stamps]
6path = ~/.workstamps.json
7date_format = %%Y-%%m-%%d
8time_format = %%H:%%M:%%S
9datetime_format = %%Y-%%m-%%d %%H:%%M
10
11[sum]
12hours_day = 8
13
14[charts]
15path = ~/.workstamps-charts
16
17[collector]
18base_url = http://localhost:8000
19login_path = /stamper/login/
20user = CHANGEME
21password = SECRET
Note: See TracBrowser for help on using the repository browser.