AbrahamW skrev:
Hi,

I’m very happy to find the “Worx Landroid development” thread (in English) here. My target is to integrate the WG796E into my Smart-Home-System to monitor it and to send commands to the mower triggered by weather or other conditions.
...
...
What Smart Home system are you using?

I use Fibaro HC2 ver 3.6. Seems that the Fibaro extensions for working with JSON effectively from LUA is restricted to Virtual Devices and not usable in scenes (at least in v3.6). I don't dare to upgrade to ver 4.x yet as there still are a lot things broken, but I hesitate to do any significant work-arounds in v3.6 as some of the API:s has changed in v4.0.

Short term I'd like to see things like the 796E battery percentage, but on a longer timeframe I'd like to use the HC2 to e g decide if it is dry enough to move the lawn (the rain sensor is a bit unreliable).
 
  • Gilla
henq
  • Laddar…
I'm making a better mobile app for iOS parsing all the data instead. I would really like to understand what the "settaggi" unkown parameters are. Some of them are being set but it's very trick to find out. I also wonder if someone tried to set the different settings.

// alarmi
var alarms = ["blade blocked", // 0
"repositioning error", // 1
"wire bounced", // 2
"blade blocked", // 3
"outside wire stopped", // 4
"mower lifted", // 5
"alarm 6", // 6
"upside down", // 7
"alarm 8", // 8
"collision sensor blocked", // 9
"mower tilted", // 10
"charge error", // 11
"battery error"] // 12

// settagi
var settings = ["setting 0",
"unknown 1",
"unknown 2",
"unknown 3",
"unknown 4",
"charging", // 5
"unknown 6",
"unknown 7",
"unknown 8",
"unknown 9",
"unknown 10", // 10
"start",
"stop",
"charging completed",
"manual stop",
"going home", // 15
"unknown 16",
"unknown 17",
"unknown 18",
"unknown 19",
"unknown 20", // 20
"unknown 21",
"unknown 22",
"unknown 23",
"unknown 24",
"unknown 25", // 25
"unknown 26",
"unknown 27",
"unknown 28",
"unknown 29",
"unknown 30"] // 30

IMG_0834.jpg
Inloggade ser högupplösta bilder
Skapa konto
Gratis och tar endast 30 sekunder
 
  • Gilla
polestar
  • Laddar…
Using swift the "settaggi" parameters can be successfully set. The below code is working for me in a Swift playground.

let params = ["data" : "[[\"settaggi\",11,1]]" ]

Alamofire.request(.POST, "http://111.222.333.444/jsondata.cgi", parameters: params)
.authenticate(user: "admin", password: "1234")
.responseJSON { (request, response, data, error) in

if(data != nil) {
println("success")
}
else {
println("error");
}
}
 
Hi! I have still some problems to configure my environment based on Mattias Jiderhamns nice work...I have managed to configure everything except to get the Mosquitto...which refuses to execute based on the OpenSSL stuff. The recommended link to right OpenSSL library is down...and using OpenSSLs own DLLs crashes the Mosquitto.exe...

ANGR77
 
Angr77 skrev:
Hi! I have still some problems to configure my environment based on Mattias Jiderhamns nice work...I have managed to configure everything except to get the Mosquitto...which refuses to execute based on the OpenSSL stuff. The recommended link to right OpenSSL library is down...and using OpenSSLs own DLLs crashes the Mosquitto.exe...
How ironic. Anyway, I put the install file at http://jiderhamn.se/Win32OpenSSL_Light-1_0_2c.exe , hopefully just temporarily until the original server gets back online.
 
  • Gilla
Angr77
  • Laddar…
Many thanks Mattias!
Finally Mosquitto did now start properly. (e.g. a black CMD window...no text etc) I am starting Mosquitto manually (right/wrong) It seems like NodeJS sees it and starts to send information to the message que. However - it does not seems like the Domotics is able to receive any information - even if it has been configurated properly. I am running everything on the same PC system so I am guessing I don't need to set any special logons, password or ports...except the receiving service.


Best Regards

Angr77
 
I'm reverse engineering the firmware file, using IDA and loads it with an offset of 0x9000.

wg791 uses a LPC1768. It seams to be programmed in KEIL ARM. test-version is downloadable, and keygen is easy obtainable.

I'll publish some images inside the WG791.

WG791 have references for other models too inside firmware.

No great accomplishment yet, only that it does not check any check-sum and accepts changes without complaint.
 
Angr77 skrev:
However - it does not seems like the Domotics is able to receive any information - even if it has been configurated properly. I am running everything on the same PC system so I am guessing I don't need to set any special logons, password or ports...except the receiving service.
1: Make sure you run the latest version of the app, as there have been many improvements. Either do "git pull" in your local directory or start all over with delete + "git clone" + edit config.
2: Check the Log in Domoticz
3: Edit the .js files and remove any "//" in front of "console.log" to get additional log output to see what the app is up to.
 
  • Gilla
Angr77
  • Laddar…
:) It was actually working this morning. The Domotics webpage dashboard was completly black this morning when the web server was receiving data. After stopping the app...and when going back to the domotics web page and bringing up the "utility page" I do see the received data. So it was working. I have now updated to the last GIT package...I do see that you have added Domotics Devices.:) So I am guessing that I have finally have reached the "hello world" stage!
 
  • Gilla
mattiasj78
  • Laddar…
I can just say that the app is working great! :)

Some small issues which I am guessing you already seen. The Battery_Charge Level is Always 100% when the Landroid is working...no...now it jumped to 92%. I thought it was only showing status when charging. Fun to see the alerts when the system is boucing the wire.

I am guessing that we have a great work in front of us to determine what the Landroid is sending out...
 
Redigerat:
For Domoticz, what kind of hardware should be selected (e.g. RFXcom (I do know that RFXcom is not applicable in this case))
 
Exile82 skrev:
For Domoticz, what kind of hardware should be selected (e.g. RFXcom (I do know that RFXcom is not applicable in this case))
There is no need to manually set up any hardware in Domoticz. prepare-domotics.bat will set up the MQTT broker "hardware", and the app itself (run.bat) will create virtual devices.
 
Mattias - the last build looks fantastic! Nice to see that the Worx Landroid Message text status got log function. The app feels stable. The only thing which needs some special attention is that you need to start Mosquitto manually before executing the run script. (For beginners) Otherwise every comes up directly in Domotics / just to add to the dashboard.

Mattias - what do you think about posting everything to a Raspberry PI. Is looks like most of the three apps do support debian. Any experience?

Keep up the good work!

Best Regards

Angr77
 
Okay. I will let you guys work on this without interruptions. I will continue to follow though
 
Vi vill skicka notiser för ämnen du bevakar och händelser som berör dig.