0
Commit Graph

31 Commits

Author SHA1 Message Date
Nicolas F
15f18812d5 observer: use == 0, not is 0
Who thought that was a good idea?
2019-07-29 16:51:52 +02:00
Nicolas F
da80e50022 observer: code style fixes 2019-07-24 09:23:36 +02:00
Nicolas F
07cb05f4d8 observer: don't divide by zero in RConObserver
If no tiles needed to be updated, RConObserver would divide by zero,
which is less than ideal.

Fixes #1422.
2019-07-12 17:37:58 +02:00
Nicolas F
50bd2a4303 observer: use bytes fp for JSObserver
Unbuffered I/O requires a bytes fp, so I guess we now just send
utf-8 encoded strings into that instead.

Fixes #1596.
2019-06-25 18:13:57 +02:00
Nicolas F
e348a548b6 Initial Python 3 port
Many things work, some don't. Notably, genPOI doesn't work, and
there's some signedness comparison stuff going on in the C extension.

This also completely drops support for Python 2, as maintaining a C
extension for both Python 2 and 3 is a pain and not worth it for the
9 months that Python 2 is still going to be supported upstream.

The documentation needs to be adjusted as well.

All of the few tests we have pass, and rendering a map works, both
with a configuration file and without. We can also use optimizeimages.

Concerns #1528.
2019-03-17 17:57:07 +01:00
Nicolas F
336850ea04 observer: drastic code style fixes
I've used pycodestyle to find pep8 violations, and isort to fix import
sorting.

Currently we're looking at a max line length of 80, but I think we may
want to raise this to 100 because 80 is a pain in the butt.
2019-03-02 15:32:25 +01:00
Willem Mulder
4efb9f2d89 Make JSObserver work with Leaflet. Fixes #1451. 2018-10-08 19:45:57 +02:00
Andrew Chin
68430335c8 JSObserver: Add missing string formatting param 2015-12-27 15:04:32 -05:00
Nicolas F
c6830a35db Added RCon Observer
It does the rcons! And the observings!
2014-10-06 21:40:09 +02:00
Andrew Chin
924d396758 Show an ETA when using the plain text logger
Closes #1088
2014-08-19 22:49:33 -04:00
Andrew Chin
7d87d25658 Fix ServerAnnounceObserver typo 2014-04-15 11:22:41 -04:00
Aaron Griffith
2584328ba3 quick and dirty fix for progressbar assertion error 2013-12-28 16:27:26 -05:00
Ean McLaughlin
8559d8e59f ServerAnnounceObserver.update() updates last_update 2013-12-09 22:46:42 -07:00
Aaron Griffith
df732bfa25 Revert "Merge remote-tracking branch 'exhuma/master', PR #963"
This reverts commit e26727943f, reversing
changes made to 7bbb077704.
2013-12-02 07:40:00 -05:00
Michel Albert
4112b5a72e Using a dedicated logger inside overviewer_core. 2013-07-28 15:04:51 +02:00
Andrew Chin
5445466ec4 JSObserver will show ETA, and the 'renderComplete' message will persist
Closes #784
Closes #786
2013-01-23 21:14:29 -05:00
Andrew Chin
1980c3aee1 Fixed type in Multiplexing Observer 2012-06-10 20:39:42 -04:00
Andrew Chin
03b10797c9 Merge branch 'JSObserver' of github.com:tswsl1989/Minecraft-Overviewer into JSObserver 2012-06-10 15:00:31 -04:00
Thomas Lake
2ef6951e28 Make JSObserver throw a more helpful error if path not valid 2012-05-25 20:38:32 +01:00
Thomas Lake
c05d628723 Correct 'if x in messages' to 'if "x" in messages' 2012-05-25 19:15:54 +01:00
Thomas Lake
9e8f933956 Update JSObserver (reliability, features, config)
* Should now hide/show the div reliably
* Message can now be customised by supplying a dict in the config file
2012-05-25 19:07:23 +01:00
aheadley
16acdd47d4 add ServerAnnounce and Multiplexing observers
Conflicts:

	overviewer_core/observer.py
2012-04-21 21:48:49 -04:00
Thomas Lake
62322b452a Keep file open and flush changes
Suggested by aheadley in IRC
2012-04-18 22:04:19 +01:00
Thomas Lake
806e517e98 Fix tab/spaces in observer.py 2012-04-18 21:39:21 +01:00
Thomas Lake
ed01a3cf07 Minor tweaks for JSObserver 2012-04-09 00:23:15 +01:00
Thomas Lake
8ec3518eb2 Fix missing bracket in observer.py 2012-04-08 23:09:45 +01:00
Thomas Lake
55df1bcf78 Add new Javascript observer
Output render progress onto the rendered map using Javascript
A minimum period between updates can be specified
2012-04-08 23:03:26 +01:00
aheadley
e34d35e4fd fix progress bar prompt clobbering 2012-03-26 23:13:33 -04:00
aheadley
a7d6ee81bb make progress bar more like wgets 2012-03-18 19:46:54 -04:00
aheadley
fb7500e063 comments! 2012-03-17 15:04:02 -04:00
aheadley
f3d23fb8f8 clean up observer code 2012-03-17 14:34:57 -04:00