Chatbox not refreshing

Posted by fiftypoints 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Chatbox not refreshing
April 08, 2014 10:42PM
Finally got pi-ratebox mostly working. Upload works, download works, but chat only updates on refresh. If I try /chat.html, the box displays
ok
and nothing else. It only prints the proper chatlog if I refresh.

break.log shows this error after each post:
Traceback (most recent call last):
  File "/opt/piratebox/www/cgi-bin/psowrte.py", line 23, in <module>
    color = values["color"].value
  File "/usr/lib/python2.7/cgi.py", line 541, in __getitem__
    raise KeyError, key
KeyError: 'color'
I saw here that user lobalt had a similar problem, but it looks like no one found a solution. Any ideas?

Update: I got chat.html working by replacing /opt/piratebox/www/cgi-bin/psowrte.py with the one I found here. I'm working on getting the chatbox on index.html working too, I'll leave this post here in case someone else gets this problem.



Edited 2 time(s). Last edit at 04/08/2014 11:08PM by fiftypoints.
Re: Chatbox not refreshing
April 10, 2014 06:38PM
Hi fiftypoints,

we provide a updated version with PirateBox 1.0

regards Matthias