[NUUG fiksgatami] Porting your FixMyStreet app to Norway?

Petter Reinholdtsen pere at hungry.com
Sun May 8 18:55:05 CEST 2011


[Thomas Forth 2011-04-11]
> Hi Petter,

Hi.  Sorry for my late reply.  We have been very busy with the
Norwegian fixmystreet site. :)

> Great to hear from you. There is some good news and some bad news,
> 
> 1. The Nokia N810 (and newer N900) run Maemo so my app will not run on them
> :( I have no experience of developing for this platform so I don't think I
> can fix this easily.

Oh.  Then I can't use it. :(

> 2. The code should be really easy to port to your server at
> http://www.fiksgatami.no/ for Symbian-based Nokia smartphones. I am
> happy to help with this, I also attach the source code if you would
> like to take a look at it. Just change the *.wgz to *.zip and unzip
> and you can see the source files, it's just a specialised webpage so
> the code is in javascript with the layout in html. Some specific
> device actions are called as Symbian-linked code. It will probably
> be easier for me to help quickly change the server name and
> implement some basic translation (I actually lived in Stavanger for
> 2 years when I was 4, but my Norwegian has all gone since then)
> rather than for you to do this yourself.

I had a look, and yeah, it seem like all that is required is to change
the import URL:

--- ./fixmystreet/basic.js-orig 2011-05-08 18:49:51.000000000 +0200
+++ ./fixmystreet/basic.js      2011-05-08 18:50:07.000000000 +0200
@@ -143,7 +143,7 @@
     //parameters = '?service=Nokia WRT app&subject='+problemSubject.getText()+'&detail='+problemDescription.getText()+'&name='+nameField.getText()+'&email='+emailAddress.getText()+'&phone='+phoneNumber.getText()+'&lat='+latitudeField.getText()+'&lon='+longitudeField.getText();
     //alert(parameters);

-    var postURL = 'http://www.fixmystreet.com/import';
+    var postURL = 'http://www.fikgsgatami.no/import';

     //alert(postURL);
     var file = imagePath.getText();

Some texts should be changed too, to reflect the fact that our site is
run by NUUG, while the UK site is run by mySociety.

Would it be possible for the app to select site automatically based on
location?  When in Norway, send to us, while when in UK, send to
fixmystreet.

Is it possible to get the Symbian app outside the app store?  I can't
even look at the app in the store.  I assume it is only available for
people in the UK. :(

Is the source available on some distributed version control system?

> I'm afraid I'm on holiday this week but let's sort out this out soon
> after that,
> 
> Thanks for getting in touch,

Thanks for getting back to me.

Cc back to the fiksgatami@ mailing list, to keep the rest of our
project informed on the status.

Happy hacking,
-- 
Petter Reinholdtsen



More information about the fiksgatami mailing list