It has been working after all! I checked the tables and database the web interface has broken since for Traccar but i am guessing i need to change the web.path to something else to make it work?
Announcement
Collapse
No announcement yet.
Is possible to read from mysql and put the value in a device
Collapse
X
-
Perfect!!. I'm not sure, but I think web.enable is standard enabled. But you have the option to change the port ofcourse. Afterwards the Windows service has to be restarted.
<entry key='web.enable'>true</entry>
<entry key='web.port'>1234</entry>
<entry key='web.path'>C:\Program Files (x86)\Traccar\web</entry>
Comment
-
I have tried that but not yet restarted machine so doing that as we speak... hopefully web interface will work again should do i thing!
Next challenge is homeseer is chucking up loads of errors relating to the script so will see if it can read the data properly after this restart
Getting closer lol
Cannot believe i spent HOURS yesterday basing my assumption of failure purely on web interface not working i feel so STUPID!
Comment
-
A Windows reboot for changing the conf file is not necessary I guess, but the Traccar service has to be restarted, because it will load the new config file.
The error will be probably related to the "Attributes" column from the Traccar "positions" table. Not every GPS track provide the same information.
Comment
-
https://pastebin.com/ciG5AYqA
If that means anything to you? still fighting with this stupid webinterface!
Comment
-
I'm not sure. Did you added the dll files to the settings.ini file in the Config folder from Homeseer(and restarted Homeseer)?
Something like this: ScriptingReferences=Newtonsoft.Json;Newtonsoft.Json.dll
I've added the dll in the root of Homeseer, but with newer plugins the dll file should be placed in the Bin folder as written in the last few sentences of my blog post.
Comment
-
Originally posted by Rutger View PostI'm not sure. Did you added the dll files to the settings.ini file in the Config folder from Homeseer(and restarted Homeseer)?
Something like this: ScriptingReferences=Newtonsoft.Json;Newtonsoft.Json.dll
I've added the dll in the root of Homeseer, but with newer plugins the dll file should be placed in the Bin folder as written in the last few sentences of my blog post.
Newtonsoft.Json;C:\Program Files (x86)\HomeSeer HS3\Bin\Scripting\Newtonsoft.Json.dll
Comment
-
I suggest to strip the script as short as possible.
Attached the same script where the JSON part will be skipped.
You can do the same for:
If myData.HasRows Then
While myData.Read
Dim address_PEUGEOT = MyData("address")
and use only one 1 MyData object and remove the rest from the script.
If this is working you can extend the script again, which will also not be an issue to overwrite other virtual devices (because write data to HS is done via static device-references).Attached Files
Comment
Comment