piBeacon: 10- How to use plot beacon positions

Posted on
Wed Feb 20, 2019 6:07 am
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Re: piBeacon: 10- How to use plot beacon positions

Didn't see your later posts till now, but playing last night at home, setting all the Zs to 0 didn't help, but when I moved the x coordinate back and forth, 70 and under appeared, 71 through 74 sometimes appeared depending on the y, and anything 75+ never appeared... I'll check those logs tonight when I can get to the machine that the server's running on. But don't waste a lot of time on this if you've got other stuff to do; like I said earlier, I rarely used this feature and didn't even notice it was having problems till I started playing with new types of beacons.

Posted on
Wed Feb 20, 2019 9:29 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

I checked the code. And have not found any cut off besides x y max set in config.

So if you check the log file you should see
A if the plugin sends the device info to the plot pgm
B what the plot program does
- 1 receive which devices.
- 2 if it gets plotted
And the parameters used



Sent from my iPhone using Tapatalk

Posted on
Wed Feb 20, 2019 11:03 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

found it:
Code: Select all
         if pos[0] > Yscale :   continue
         if pos[1] < 0     :      continue

should be:
Code: Select all
         if pos[1] > Yscale :   continue
         if pos[1] < 0     :      continue

== tested x position against Ymax and not Xmax

and in my setup Ymax is bigger than Xmax so it never hit my setup

will post a fix


Karl

Posted on
Thu Feb 21, 2019 2:00 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

please check the latest release v7.103.273 for that bug fix .

Karl

Posted on
Sun Feb 24, 2019 6:24 am
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Re: piBeacon: 10- How to use plot beacon positions

Well I thought that fixed it, but then when I checked this morning, I discovered that it only updated the png once; the document in the documents folder is 2 days old, even though when I turned logging back on, it indicates that piBeacon THINKS it's updating the file:
    tart @ 2019-02-24 05:28:23.413105
    u'imageYscale :70
    u'imageXscale :140
    u'imageDotsY :824
    u'imageText :text on Top
    u'imageTextColor :#000000
    u'imageTextPos :0,0
    u'imageTextRotation :0
    u'distanceUnits :1.0
    u'imageOutfile :/Users/jeff/Documents/INDIGOplotD/BeaconDisplay.png
    u'compressImag :True
    u'Zlevels :0,12
    u'beacon data:
    B8:27:EB:6B:88:C9 {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-0', u'symbolType': u'square', u'position': [64.0, 55.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-0'}
    B8:27:EB:F4:C3:A9 {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-3', u'symbolType': u'square', u'position': [105.0, 11.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-3'}
    B8:27:EB:6E:E9:C1 {u'distanceToRPI': 1.0, u'status': u'expired', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-1', u'symbolType': u'square', u'position': [67.0, 25.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-1'}
    00:EA:24:3B:CB:C4 {u'distanceToRPI': 2.0, u'status': u'up', u'symbolColor': u'#000000', u'symbolAlpha': u'0.5', u'name': u'Jeffs xy', u'symbolType': u'dot', u'position': [96.7, 36.9, 0.0], u'textColor': u'', u'nickName': u'Jeffs'}
    00:EA:24:45:4A:F4 {u'distanceToRPI': 2.1, u'status': u'up', u'symbolColor': u'#0000FF', u'symbolAlpha': u'0.5', u'name': u'Johns XY', u'symbolType': u'smallCircle', u'position': [64.0, 54.0, 0.0], u'textColor': u'#0000FF', u'nickName': u'Johns XY'}
    F4:BC:BD:C4:F2:F5 {u'distanceToRPI': 4.7, u'status': u'up', u'symbolColor': u'#00FFFF', u'symbolAlpha': u'0.5', u'name': u'Tile', u'symbolType': u'smallCircle', u'position': [67.7, 50.7, 0.0], u'textColor': u'#FF0000', u'nickName': u'Tile'}
    B8:27:EB:2C:8D:4B {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-2', u'symbolType': u'square', u'position': [95.0, 42.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-2'}
    3D:86:20:BD:A3:87 {u'distanceToRPI': 2.4, u'status': u'up', u'symbolColor': u'#00FF00', u'symbolAlpha': u'0.5', u'name': u'Nut', u'symbolType': u'smallCircle', u'position': [66.0, 54.1, 0.0], u'textColor': u'#FF0000', u'nickName': u'Nut'}
    B8:27:EB:A0:04:78 {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-4', u'symbolType': u'square', u'position': [40.0, 50.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-4'}
    u'textOffY :0.339805825243
    u'textOffX :0.424757281553
    time used 0.00 -- setup fig, ax
    time used 0.18 -- loading background image file
    time used 0.27 -- adding text
    time used 0.27 -- now loop though the beacons and add them
    RPI-0 R-0 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    RPI-3 R-3 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    RPI-1 R-1 color:#00F000 edgecolor:#00F000 symbol:square type:square distanceToRPI: 0.7 hatch: status:expired
    Jeffs xy Jeffs color:#000000 edgecolor:#000000 symbol:dot type:circle distanceToRPI: 0.1 hatch: status:up
    Johns XY Johns XY color:#0000FF edgecolor:#000000 symbol:smallcircle type:circle distanceToRPI: 0.3 hatch: status:up
    Tile Tile color:#00FFFF edgecolor:#000000 symbol:smallcircle type:circle distanceToRPI: 0.3 hatch: status:up
    RPI-2 R-2 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    Nut Nut color:#00FF00 edgecolor:#000000 symbol:smallcircle type:circle distanceToRPI: 0.3 hatch: status:up
    RPI-4 R-4 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    textDeltaX 0.509708737864
    time used 0.30 -- making the plot:
    24 05:38:31 savebeaconPositionsFile {u'B8:27:EB:6B:88:C9': {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbo
    makeNewBeaconPositionPlots .. beaconPositionsUpdated: 0
    makeNewBeaconPositionPlots cmd: /usr/bin/python2.7 '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/makeBeaconPositionPlots.py' '/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/plotPositions/' &

    start @ 2019-02-24 05:38:31.598188
    u'imageYscale :70
    u'imageXscale :140
    u'imageDotsY :824
    u'imageText :text on Top
    u'imageTextColor :#000000
    u'imageTextPos :0,0
    u'imageTextRotation :0
    u'distanceUnits :1.0
    u'imageOutfile :/Users/jeff/Documents/INDIGOplotD/BeaconDisplay.png
    u'compressImag :True
    u'Zlevels :0,12
    u'beacon data:
    B8:27:EB:6B:88:C9 {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-0', u'symbolType': u'square', u'position': [64.0, 55.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-0'}
    B8:27:EB:F4:C3:A9 {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-3', u'symbolType': u'square', u'position': [105.0, 11.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-3'}
    B8:27:EB:6E:E9:C1 {u'distanceToRPI': 1.0, u'status': u'expired', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-1', u'symbolType': u'square', u'position': [67.0, 25.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-1'}
    00:EA:24:3B:CB:C4 {u'distanceToRPI': 1.8, u'status': u'up', u'symbolColor': u'#000000', u'symbolAlpha': u'0.5', u'name': u'Jeffs xy', u'symbolType': u'dot', u'position': [96.7, 37.3, 0.0], u'textColor': u'', u'nickName': u'Jeffs'}
    00:EA:24:45:4A:F4 {u'distanceToRPI': 2.0, u'status': u'up', u'symbolColor': u'#0000FF', u'symbolAlpha': u'0.5', u'name': u'Johns XY', u'symbolType': u'smallCircle', u'position': [64.0, 54.0, 0.0], u'textColor': u'#0000FF', u'nickName': u'Johns XY'}
    F4:BC:BD:C4:F2:F5 {u'distanceToRPI': 4.6, u'status': u'up', u'symbolColor': u'#00FFFF', u'symbolAlpha': u'0.5', u'name': u'Tile', u'symbolType': u'smallCircle', u'position': [67.7, 50.7, 0.0], u'textColor': u'#FF0000', u'nickName': u'Tile'}
    B8:27:EB:2C:8D:4B {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-2', u'symbolType': u'square', u'position': [95.0, 42.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-2'}
    3D:86:20:BD:A3:87 {u'distanceToRPI': 2.2, u'status': u'up', u'symbolColor': u'#00FF00', u'symbolAlpha': u'0.5', u'name': u'Nut', u'symbolType': u'smallCircle', u'position': [66.0, 53.1, 0.0], u'textColor': u'#FF0000', u'nickName': u'Nut'}
    B8:27:EB:A0:04:78 {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-4', u'symbolType': u'square', u'position': [40.0, 50.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-4'}
    u'textOffY :0.339805825243
    u'textOffX :0.424757281553
    time used 0.00 -- setup fig, ax
    time used 0.16 -- loading background image file
    time used 0.25 -- adding text
    time used 0.25 -- now loop though the beacons and add them
    RPI-0 R-0 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    RPI-3 R-3 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    RPI-1 R-1 color:#00F000 edgecolor:#00F000 symbol:square type:square distanceToRPI: 0.7 hatch: status:expired
    Jeffs xy Jeffs color:#000000 edgecolor:#000000 symbol:dot type:circle distanceToRPI: 0.1 hatch: status:up
    Johns XY Johns XY color:#0000FF edgecolor:#000000 symbol:smallcircle type:circle distanceToRPI: 0.3 hatch: status:up
    Tile Tile color:#00FFFF edgecolor:#000000 symbol:smallcircle type:circle distanceToRPI: 0.3 hatch: status:up
    RPI-2 R-2 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    Nut Nut color:#00FF00 edgecolor:#000000 symbol:smallcircle type:circle distanceToRPI: 0.3 hatch: status:up
    RPI-4 R-4 color:#00F000 edgecolor:#000000 symbol:square type:square distanceToRPI: 0.7 hatch: status:up
    textDeltaX 0.509708737864
    time used 0.28 -- making the plot:

I searched the entire machine and can't find any more recent copies, although there were a couple of ancient ones in the indigo and indigo 7.0 directories...

Posted on
Sun Feb 24, 2019 6:46 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

could you open a terminal and run:
Code: Select all
 /usr/bin/python2.7 '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/makeBeaconPositionPlots.py' '/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/plotPositions/' &
and post any printout

Karl

Posted on
Sun Feb 24, 2019 8:30 am
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Re: piBeacon: 10- How to use plot beacon positions

    Last login: Sun Feb 24 08:33:00 on ttys000
    DS9:~ jeff$ /usr/bin/python2.7 '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/makeBeaconPositionPlots.py' '/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/plotPositions/' &
    [1] 94569
    DS9:~ jeff$ Traceback (most recent call last):
    File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/makeBeaconPositionPlots.py", line 250, in <module>
    plt.savefig((piPositionsDir+"beaconPositions.png").encode('utf8')) # this does not work ==> ,bbox_inches = 'tight', pad_inches = 0)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 561, in savefig
    return fig.savefig(*args, **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/figure.py", line 1421, in savefig
    self.canvas.print_figure(*args, **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backend_bases.py", line 2220, in print_figure
    **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backend_bases.py", line 1962, in print_png
    return agg.print_png(*args, **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backends/backend_agg.py", line 505, in print_png
    FigureCanvasAgg.draw(self)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backends/backend_agg.py", line 451, in draw
    self.figure.draw(self.renderer)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/figure.py", line 1034, in draw
    func(*args)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/axes.py", line 2086, in draw
    a.draw(renderer)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/text.py", line 563, in draw
    gc.set_foreground(self.get_color())
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backend_bases.py", line 921, in set_foreground
    self._rgb = colors.colorConverter.to_rgba(fg)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/colors.py", line 365, in to_rgba
    'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
    ValueError: to_rgba: Invalid rgba arg ""
    to_rgb: Invalid rgb arg ""
    could not convert string to float:



And just incidentally, it did update again once this morning about half an hour ago.

Posted on
Sun Feb 24, 2019 8:39 am
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Re: piBeacon: 10- How to use plot beacon positions

Found it looking at the above; Jeff's keys did not have a color set, so when he got home, the RGB of null killed the file generation. I set the color on that beacon and it;'s working now.

Posted on
Sun Feb 24, 2019 12:59 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

Will add some more checks to catch these


But if you open the device it should populate the colors w default values.
They should never be empty

But if you have never edited the device the prop might be empty.


Sent from my iPhone using Tapatalk

Posted on
Sun Feb 24, 2019 2:03 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

adding some more check and improved logging to plot positions:
logfile will look like this - and ALL errors should show up.
Code: Select all
makeNewBeaconPositionPlots ..   beaconPositionsUpdated: 6
makeNewBeaconPositionPlots cmd:  /usr/bin/python2.7 '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/makeBeaconPositionPlots.py' '/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/plotPositions/' &
plotPosition: ========= start @ 2019-02-24 13:59:44.712799  ===========
plotPosition: imageYscale        :30
plotPosition: imageXscale        :20
plotPosition: imageDotsY         :824
plotPosition: imageText          :3704 Stanford ave
plotPosition: imageTextColor     :#0F0F0F
plotPosition: imageTextPos       :0.5,34
plotPosition: imageTextRotation  :0
plotPosition: distanceUnits      :1.0
plotPosition: imageOutfile       :/users/karlwachs/plots/beacon.png
plotPosition: compressImage      :True
plotPosition: Zlevels            :0,5,10
plotPosition: textOffY           :0.145631067961
plotPosition: textOffX           :0.182038834951
plotPosition: beacon data:
plotPosition: 00:EA:24:20:D5:A4  {u'distanceToRPI': 4.8, u'status': u'up', u'symbolColor': u'#000000', u'symbolAlpha': u'0.5', u'name': u'b-xy-orange-1-60', u'symbolType': u'largeCircle', u'position': [89.6, 57.7, 5.0], u'textColor': u'#FF00FF', u'nickName': u'orange'}
...
plotPosition: 00:15:83:E5:12:D5  {u'distanceToRPI': 1.0, u'status': u'down', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-1', u'symbolType': u'square', u'position': [1.0, 3.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-1'}
plotPosition: time used 0.00 --   setup fig, ax
plotPosition: time used 0.17 --   loading background image file
plotPosition: time used 0.21 --   adding  text
plotPosition: time used 0.21 --   now loop though the beacons and add them
plotPosition: b-xy-orange-1-60            orange  color:#000000  edgecolor:#000000 symbol:largecircle type:circle   distanceToRPI:  1.2  hatch://  status:up
plotPosition: RPI-2                        R-2    color:#00F000  edgecolor:#000000 symbol:square      type:square   distanceToRPI:  0.7  hatch://  status:up
....
plotPosition: b-xy-volvo-keys-green-49    VG      color:#0F0F0F  status:up  use nickname text, no symbol
plotPosition: RPI-1                        R-1    color:#00F000  edgecolor:#00F000 symbol:square      type:square   distanceToRPI:  0.7  hatch:    status:down
plotPosition: Caption: text offset x= 0.22;   y=0.18
plotPosition: time used 0.24 --   making the plot:
plotPosition: time used 0.49 --   compressing the png file
plotPosition: time used 0.70 --   file sizes: original file: 131.5;  compressed file:  39.1  [KB]
plotPosition: time used 0.70 --   moving file to destination: /users/karlwachs/plots/beacon.png
plotPosition: time used 0.70 --   end  @ 2019-02-24 13:59:45.411490
24 14:00:03 savebeaconPositionsFile {u'B8:27:EB:20:90:32': {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbo

Posted on
Wed Jun 19, 2019 3:32 pm
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: piBeacon: 10- How to use plot beacon positions

Hi Karl,

Any ideas why my background plot png file is not being used? I just get blank plots generated. I have it here.

/Volumes/Macintosh SSHD/Users/simon/indigo/piBeacon/plotPositions/background.png

is that correct?

Thanks... Simon

Posted on
Wed Jun 19, 2019 5:45 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

the directory for the output file and the background file is the same. it is set in config

you can set debug position plot on and check this log file:
/Library/Application Support/Perceptive Automation/Indigo 7.3/Logs/com.karlwachs.piBeacon/plugin.log

then you should see something like this::
Code: Select all
18:43:20 makeNewBeaconPositionPlots cmd:  /usr/bin/python2.7 '/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/makeBeaconPositionPlots.py' '/Library/Application Support/Perceptive Automation/Indigo 7.3/Preferences/Plugins/com.karlwachs.piBeacon/plotPositions/' &
plotPosition: ========= start @ 2019-06-19 18:43:22.232706  ===========
plotPosition: imageYscale        :30
plotPosition: imageXscale        :20
plotPosition: imageDotsY         :824
plotPosition: imageText          :3xxx
plotPosition: imageTextColor     :#0F0F0F
plotPosition: imageTextPos       :0.5,34
plotPosition: imageTextRotation  :0
plotPosition: distanceUnits      :1.0
plotPosition: imageOutfile       :/users/karlwachs/plots/beacon.png
plotPosition: compressImage      :True
plotPosition: Zlevels            :0,5,10
plotPosition: textOffY           :0.145631067961
plotPosition: textOffX           :0.182038834951
plotPosition: beacon data:
plotPosition: 00:EA:24:20:D5:A4  {u'distanceToRPI': 0.5, u'status': u'expired', u'symbolColor': u'#000000', u'symbolAlpha': u'0.5', u'name': u'b-xy-orange-1-60', u'symbolType': u'square45', u'position': [8.0, 16.0, 5.0], u'textColor': u'#FF00FF', u'nickName': u'orange'}
plotPosition: B8:27:EB:20:90:32  {u'distanceToRPI': 1.0, u'status': u'up', u'symbolColor': u'#00F000', u'symbolAlpha': u'0.5', u'name': u'RPI-8', u'symbolType': u'square', u'position': [12.0, 18.0, 0.0], u'textColor': u'#008000', u'nickName': u' R-8'}
....
plotPosition: time used 0.00 --   setup fig, ax
plotPosition: time used 0.16 --   loading background image file
plotPosition: time used 0.20 --   adding  text
plotPosition: time used 0.20 --   now loop though the beacons and add them
plotPosition: b-xy-orange-1-60            orange  color:#000000  edgecolor:#000000 symbol:square45    type:square45 distanceToRPI:  0.7  hatch://  status:expired
plotPosition: RPI-8                        R-8    color:#00F000  edgecolor:#000000 symbol:square      type:square   distanceToRPI:  0.7  hatch:    status:up
plotPosition: b-xy-volvo-keys-turcoise    VT      color:#000000  edgecolor:#000000 symbol:square45    type:square45 distanceToRPI:  0.7  hatch:    status:expired


etc

karl

Posted on
Wed Jun 19, 2019 7:42 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

sorry I was wrong, that's the output directory. The background is loaded from:

/Library/Application Support/Perceptive Automation/Indigo 7.3/Preferences/Plugins/com.karlwachs.piBeacon/plotPositions/background.png


will add automatic search in that directory and image output directory for background.png

Karl

Posted on
Wed Jun 19, 2019 11:06 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 10- How to use plot beacon positions

added the background.png file location option in release 7.105.287 - set in config


Karl

Posted on
Thu Jun 20, 2019 12:03 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: piBeacon: 10- How to use plot beacon positions

Thanks. First post in this thread has a different folder to put it in.


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 4 guests