Why do you need an installer?
Hello Tananaev, thanks for the feedback!
I made some modifications [SUNTECH] protocol file to work with the ST-340 model, basically the command return formatCommand (command, "SA200CMD; {% s}; 02; Enable1 \ r", Command.KEY_UNIQUE_ID);
to ST300CMD
and would need subustituir the 'SuntechProtocolEncoder.java' file not found an easier way to do this.
But I could already generate the installer. The question seia basically to clean the scritp and leave it to my need, ie not perciso to generate packages for other OS.
NOTE :. The confusion occurred because I did not know if some dependencies was to be installed on my OS (Ubuntu) or were necessary to create the installer for Windows. I did not want to have WINE installed on my OS.
Thank you!
I would recommend to just take a new JAR file and replace it on already installed Traccar. Building installer is very complicated and I wouldn't recommend it unless you know what you are doing.
sorry to highjack this tread, but is this also true for Windows?
So clean install of version 3.6, replace the traccer-server.jar file with the one that is compiled by netbeans?
I image I would have to recreate the database and change the configfile?
best regards
Fonnie
There might be some minor changes required to config file, but it should work without updating database.
I'm using the standard database, no SQL. but with netbeans it is located in my documents\Traccar\target
just copy it to c:\ProgramFiles (x86)\Traccar ?
my database is not that important, only testdata, no problem if I need to recreate one
best regards
Fonnie
Anton,
this is working like a charme, I'm very very impressed.
btw MEGASTEK MT-90x and MT-60X are both working (they use a simailar but not exactly the same protocol) your changes to the megastekprotocol are working
Best regards
Fonnie
Thanks for feedback. I will update the supported devices page.
Dear Tnanaev, I need a help with the code below. I'm trying to make the protocol work with the module Suntech ST-340, I noticed that the command beginning with [SA200CMD] does not work with this múdulo, or have to start [ST300CMD] for most of the commands.
I decided to try to implement the code below, but it has some errors, I can not solve.
...
When I run the program in #Netbeans he does not complete and says:
src/org/traccar/protocol/SuntechProtocolDecoder.java: [45] (regexp) RegexpSingleline: Line has trailing spaces.
Can you help me, or show the way?
I thank your attention!
Please try to format your comment in a readable way next time. I would recommend to use "pre" tag for code fragments.
As for the problem, it's exactly what the message says. You have trailing white spaces on the 45th line. You should remove them.
Thank you very much!
Actually the problem was void after the code, interesting Netbenas not show it before.
As the design / code formatting / issues will take care to follow the guidelines.
Thanks again!
"void after the code" = "trailing spaces"
I have added style check recently. It wasn't there before.
Hello good morning I have the same problem that you Turbovix could you guide me in how you solved it? I try to modify the SuntechProtocolEncoder.java file to change [SA200CMD] to [ST300CMD]. thank you
Hello Tananaev, need to know which files are not required to generate an installer for Ubuntu just because I do not need Windows or OSX, as well as be able to change the script.
I use #ubuntu 16.04LTS on my PC.
Thank you!