Hav someone been successful to persist LOCATION items?
/Mike
Hav someone been successful to persist LOCATION items?
/Mike
Until now only with rules:
Items:
Location GPSLocation “Location” <location> {channel=“gpstracker:tracker:xx:lastLocation”}
Number Latitude “Latitude”
Number Longitude “Longitude”
Rules:
rule “Split Coordinates”
when
Item GPSLocation received update
then
Latitude.postUpdate(GPSLocation.state.toString.split(‘,’).get(0))
Longitude.postUpdate(GPSLocation.state.toString.split(‘,’).get(1))
end
rule “System Start”
when
System started
then
val loctmp = new PointType(Latitude.state as DecimalType, Longitude.state as DecimalType)
GPSLocation.postUpdate(loctmp)
end
…get rid of all workarounds…
But most probably you have this already