raspishake / rsudp

Continuous visual display, sudden motion monitoring, and historical replay of Raspberry Shake data
https://raspishake.github.io/rsudp/
GNU General Public License v3.0
52 stars 30 forks source link

When station changes locations, rsudp uses first location in inventory for region lookup #46

Closed iannesbitt closed 1 year ago

iannesbitt commented 1 year ago

Example:

<location 0>
  <region: MAINE>
</location 0>
<location 1>
  <region: NEW YORK>
</location 1>

rsudp region: MAINE

Solution: change get_inventory() to look for the last [-1] station location (instead of [0]) in the inventory to draw coordinates from. Code location: https://github.com/raspishake/rsudp/blob/master/rsudp/raspberryshake.py#L519

iannesbitt commented 1 year ago

Tested and working